You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by st...@apache.org on 2013/09/29 09:20:13 UTC

svn commit: r1527279 [26/28] - in /openoffice/branches/ia2: ./ extras/l10n/source/ast/ extras/l10n/source/bg/ extras/l10n/source/cs/ extras/l10n/source/da/ extras/l10n/source/de/ extras/l10n/source/el/ extras/l10n/source/es/ extras/l10n/source/eu/ extr...

Modified: openoffice/branches/ia2/main/sw/source/core/bastyp/init.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/bastyp/init.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/bastyp/init.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/bastyp/init.cxx Sun Sep 29 07:19:52 2013
@@ -317,44 +317,39 @@ SfxItemInfo __FAR_DATA aSlotTab[] =
     { 0, SFX_ITEM_POOLABLE },                           // RES_TXTATR_UNKNOWN_CONTAINER
     { 0, SFX_ITEM_POOLABLE },                           // RES_TXTATR_DUMMY5
 
-	{ 0, 0 },											// RES_TXTATR_FIELD
-	{ 0, 0 },											// RES_TXTATR_FLYCNT
-	{ 0, 0 },											// RES_TXTATR_FTN
+    { 0, 0 },                                           // RES_TXTATR_FIELD
+    { 0, 0 },                                           // RES_TXTATR_FLYCNT
+    { 0, 0 },                                           // RES_TXTATR_FTN
     { 0, SFX_ITEM_POOLABLE },                           // RES_TXTATR_DUMMY4
     { 0, SFX_ITEM_POOLABLE },                           // RES_TXTATR_DUMMY3
-	{ 0, SFX_ITEM_POOLABLE },							// RES_TXTATR_DUMMY1
-	{ 0, SFX_ITEM_POOLABLE },							// RES_TXTATR_DUMMY2
+    { 0, SFX_ITEM_POOLABLE },                           // RES_TXTATR_DUMMY1
+    { 0, SFX_ITEM_POOLABLE },                           // RES_TXTATR_DUMMY2
 
-	{ SID_ATTR_PARA_LINESPACE, SFX_ITEM_POOLABLE }, 	// RES_PARATR_LINESPACING
-	{ SID_ATTR_PARA_ADJUST, SFX_ITEM_POOLABLE }, 		// RES_PARATR_ADJUST
-	{ SID_ATTR_PARA_SPLIT, SFX_ITEM_POOLABLE }, 		// RES_PARATR_SPLIT
-	{ SID_ATTR_PARA_ORPHANS, SFX_ITEM_POOLABLE },  		// RES_PARATR_ORPHANS
-	{ SID_ATTR_PARA_WIDOWS, SFX_ITEM_POOLABLE }, 		// RES_PARATR_WIDOWS
-	{ SID_ATTR_TABSTOP, SFX_ITEM_POOLABLE }, 			// RES_PARATR_TABSTOP
-	{ SID_ATTR_PARA_HYPHENZONE, SFX_ITEM_POOLABLE }, 	// RES_PARATR_HYPHENZONE
-	{ FN_FORMAT_DROPCAPS, 0 },							// RES_PARATR_DROP
-	{ SID_ATTR_PARA_REGISTER, SFX_ITEM_POOLABLE },		// RES_PARATR_REGISTER
-    // --> OD 2008-03-04 #refactorlists#
-    // RES_PARATR_NUMRULE is now poolable
+    { SID_ATTR_PARA_LINESPACE, SFX_ITEM_POOLABLE }, 	// RES_PARATR_LINESPACING
+    { SID_ATTR_PARA_ADJUST, SFX_ITEM_POOLABLE }, 		// RES_PARATR_ADJUST
+    { SID_ATTR_PARA_SPLIT, SFX_ITEM_POOLABLE }, 		// RES_PARATR_SPLIT
+    { SID_ATTR_PARA_ORPHANS, SFX_ITEM_POOLABLE },  		// RES_PARATR_ORPHANS
+    { SID_ATTR_PARA_WIDOWS, SFX_ITEM_POOLABLE }, 		// RES_PARATR_WIDOWS
+    { SID_ATTR_TABSTOP, SFX_ITEM_POOLABLE }, 			// RES_PARATR_TABSTOP
+    { SID_ATTR_PARA_HYPHENZONE, SFX_ITEM_POOLABLE }, 	// RES_PARATR_HYPHENZONE
+    { FN_FORMAT_DROPCAPS, 0 },							// RES_PARATR_DROP
+    { SID_ATTR_PARA_REGISTER, SFX_ITEM_POOLABLE },		// RES_PARATR_REGISTER
     { SID_ATTR_PARA_NUMRULE, SFX_ITEM_POOLABLE },       // RES_PARATR_NUMRULE
-    // <--
-	{ SID_ATTR_PARA_SCRIPTSPACE, SFX_ITEM_POOLABLE },	// RES_PARATR_SCRIPTSPACE
-	{ SID_ATTR_PARA_HANGPUNCTUATION, SFX_ITEM_POOLABLE },// RES_PARATR_HANGINGPUNCTUATION
+    { SID_ATTR_PARA_SCRIPTSPACE, SFX_ITEM_POOLABLE },	// RES_PARATR_SCRIPTSPACE
+    { SID_ATTR_PARA_HANGPUNCTUATION, SFX_ITEM_POOLABLE },// RES_PARATR_HANGINGPUNCTUATION
 
-	{ SID_ATTR_PARA_FORBIDDEN_RULES, SFX_ITEM_POOLABLE },// RES_PARATR_FORBIDDEN_RULES
+    { SID_ATTR_PARA_FORBIDDEN_RULES, SFX_ITEM_POOLABLE },// RES_PARATR_FORBIDDEN_RULES
     { SID_PARA_VERTALIGN, SFX_ITEM_POOLABLE },          // RES_PARATR_VERTALIGN
     { SID_ATTR_PARA_SNAPTOGRID, SFX_ITEM_POOLABLE },    // RES_PARATR_SNAPTOGRID
     { SID_ATTR_BORDER_CONNECT, SFX_ITEM_POOLABLE },     // RES_PARATR_CONNECT_BORDER
 
-	{ SID_ATTR_PARA_OUTLINE_LEVEL, SFX_ITEM_POOLABLE }, // RES_PARATR_OUTLINELEVEL //#outline level,zhaojianwei
+    { SID_ATTR_PARA_OUTLINE_LEVEL, SFX_ITEM_POOLABLE }, // RES_PARATR_OUTLINELEVEL //#outline level,zhaojianwei
 
-	// --> OD 2008-02-19 #refactorlists#
     { 0, SFX_ITEM_POOLABLE },                           // RES_PARATR_LIST_ID
     { 0, SFX_ITEM_POOLABLE },                           // RES_PARATR_LIST_LEVEL
     { 0, SFX_ITEM_POOLABLE },                           // RES_PARATR_LIST_ISRESTART
     { 0, SFX_ITEM_POOLABLE },                           // RES_PARATR_LIST_RESTARTVALUE
     { 0, SFX_ITEM_POOLABLE },                           // RES_PARATR_LIST_ISCOUNTED
-    // <--
 
     { 0, SFX_ITEM_POOLABLE },							// RES_FILL_ORDER
 	{ 0, SFX_ITEM_POOLABLE }, 							// RES_FRM_SIZE
@@ -524,29 +519,30 @@ void _InitCore()
 	aAttrTab[ RES_CHRATR_DUMMY2 - POOLATTR_BEGIN ] = new SfxBoolItem( RES_CHRATR_DUMMY2 );
 // CharakterAttr - Dummies
 
-    aAttrTab[ RES_TXTATR_AUTOFMT- POOLATTR_BEGIN ] = new SwFmtAutoFmt;
-    aAttrTab[ RES_TXTATR_INETFMT - POOLATTR_BEGIN ] = new SwFmtINetFmt( aEmptyStr, aEmptyStr );
     aAttrTab[ RES_TXTATR_REFMARK - POOLATTR_BEGIN ] = new SwFmtRefMark( aEmptyStr );
     aAttrTab[ RES_TXTATR_TOXMARK - POOLATTR_BEGIN ] = new SwTOXMark;
-	aAttrTab[ RES_TXTATR_CHARFMT- POOLATTR_BEGIN ] = new SwFmtCharFmt( 0 );
-    aAttrTab[ RES_TXTATR_CJK_RUBY - POOLATTR_BEGIN ] = new SwFmtRuby( aEmptyStr );
-    aAttrTab[ RES_TXTATR_UNKNOWN_CONTAINER - POOLATTR_BEGIN ] = new SvXMLAttrContainerItem( RES_TXTATR_UNKNOWN_CONTAINER );
     aAttrTab[ RES_TXTATR_META - POOLATTR_BEGIN ] = SwFmtMeta::CreatePoolDefault(RES_TXTATR_META);
     aAttrTab[ RES_TXTATR_METAFIELD - POOLATTR_BEGIN ] = SwFmtMeta::CreatePoolDefault(RES_TXTATR_METAFIELD);
+    aAttrTab[ RES_TXTATR_AUTOFMT- POOLATTR_BEGIN ] = new SwFmtAutoFmt;
+    aAttrTab[ RES_TXTATR_INETFMT - POOLATTR_BEGIN ] = new SwFmtINetFmt( aEmptyStr, aEmptyStr );
+    aAttrTab[ RES_TXTATR_CHARFMT- POOLATTR_BEGIN ] = new SwFmtCharFmt( 0 );
+    aAttrTab[ RES_TXTATR_CJK_RUBY - POOLATTR_BEGIN ] = new SwFmtRuby( aEmptyStr );
+    aAttrTab[ RES_TXTATR_UNKNOWN_CONTAINER - POOLATTR_BEGIN ] = new SvXMLAttrContainerItem( RES_TXTATR_UNKNOWN_CONTAINER );
 
     aAttrTab[ RES_TXTATR_FIELD- POOLATTR_BEGIN ] = new SwFmtFld;
-	aAttrTab[ RES_TXTATR_FLYCNT - POOLATTR_BEGIN ] = new SwFmtFlyCnt( 0 );
+    aAttrTab[ RES_TXTATR_FLYCNT - POOLATTR_BEGIN ] = new SwFmtFlyCnt( 0 );
     aAttrTab[ RES_TXTATR_FTN - POOLATTR_BEGIN ] = new SwFmtFtn;
 
 // TextAttr - Dummies
     aAttrTab[ RES_TXTATR_DUMMY4 - POOLATTR_BEGIN ] = new SfxBoolItem( RES_TXTATR_DUMMY4 );
     aAttrTab[ RES_TXTATR_DUMMY3 - POOLATTR_BEGIN ] = new SfxBoolItem( RES_TXTATR_DUMMY3 );
-	aAttrTab[ RES_TXTATR_DUMMY1 - POOLATTR_BEGIN ] = new SfxBoolItem( RES_TXTATR_DUMMY1 );
-	aAttrTab[ RES_TXTATR_DUMMY2 - POOLATTR_BEGIN ] = new SfxBoolItem( RES_TXTATR_DUMMY2 );
+    aAttrTab[ RES_TXTATR_DUMMY1 - POOLATTR_BEGIN ] = new SfxBoolItem( RES_TXTATR_DUMMY1 );
+    aAttrTab[ RES_TXTATR_DUMMY2 - POOLATTR_BEGIN ] = new SfxBoolItem( RES_TXTATR_DUMMY2 );
     aAttrTab[ RES_TXTATR_DUMMY5 - POOLATTR_BEGIN ] = new SfxBoolItem( RES_TXTATR_DUMMY5 );
 // TextAttr - Dummies
-	aAttrTab[ RES_CHRATR_BIDIRTL - POOLATTR_BEGIN ] = new SfxInt16Item( RES_CHRATR_BIDIRTL, sal_Int16(-1) );
-	aAttrTab[ RES_CHRATR_IDCTHINT - POOLATTR_BEGIN ] = new SfxInt16Item( RES_CHRATR_IDCTHINT, sal_Int16(-1) );
+
+    aAttrTab[ RES_CHRATR_BIDIRTL - POOLATTR_BEGIN ] = new SfxInt16Item( RES_CHRATR_BIDIRTL, sal_Int16(-1) );
+    aAttrTab[ RES_CHRATR_IDCTHINT - POOLATTR_BEGIN ] = new SfxInt16Item( RES_CHRATR_IDCTHINT, sal_Int16(-1) );
 
     aAttrTab[ RES_PARATR_LINESPACING- POOLATTR_BEGIN ] = new SvxLineSpacingItem( LINE_SPACE_DEFAULT_HEIGHT, RES_PARATR_LINESPACING );
     aAttrTab[ RES_PARATR_ADJUST- POOLATTR_BEGIN ] = new SvxAdjustItem( SVX_ADJUST_LEFT, RES_PARATR_ADJUST );

Modified: openoffice/branches/ia2/main/sw/source/core/crsr/crstrvl.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/crsr/crstrvl.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/crsr/crstrvl.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/crsr/crstrvl.cxx Sun Sep 29 07:19:52 2013
@@ -629,9 +629,9 @@ void lcl_MakeFldLst( _SetGetExpFlds& rLs
 	bool bSubType = nSubType != USHRT_MAX;
 	for( SwFmtFld* pFmtFld = aIter.First(); pFmtFld; pFmtFld = aIter.Next() )
 		if( 0 != ( pTxtFld = pFmtFld->GetTxtFld() ) &&
-			( !bChkInpFlag || ((SwSetExpField*)pTxtFld->GetFld().GetFld())
+			( !bChkInpFlag || ((SwSetExpField*)pTxtFld->GetFmtFld().GetField())
 								->GetInputFlag() ) &&
-			(!bSubType || (pFmtFld->GetFld()->GetSubType()
+			(!bSubType || (pFmtFld->GetField()->GetSubType()
 								& 0xff ) == nSubType ))
 		{
 			SwCntntFrm* pCFrm;
@@ -1118,7 +1118,7 @@ sal_Bool SwCrsrShell::GetContentAtPos( c
                     pTxtAttr = pTxtNd->GetTxtAttrForCharAt(
                             aPos.nContent.GetIndex(), RES_TXTATR_FIELD );
 					const SwField* pFld = pTxtAttr
-											? pTxtAttr->GetFld().GetFld()
+											? pTxtAttr->GetFmtFld().GetField()
 											: 0;
 					if( SwContentAtPos::SW_CLICKFIELD & rCntntAtPos.eCntntAtPos &&
 						pFld && !pFld->HasClickHdl() )
@@ -1544,7 +1544,7 @@ const SwPostItField* SwCrsrShell::GetPos
         {
             SwTxtAttr* pTxtAttr = pTxtNd->GetTxtAttrForCharAt(
                     pCursorPos->nContent.GetIndex(), RES_TXTATR_FIELD );
-            const SwField* pFld = pTxtAttr ? pTxtAttr->GetFld().GetFld() : 0;
+            const SwField* pFld = pTxtAttr ? pTxtAttr->GetFmtFld().GetField() : 0;
             if ( pFld && pFld->Which()== RES_POSTITFLD )
             {
                 pPostItFld = static_cast<const SwPostItField*>(pFld);

Modified: openoffice/branches/ia2/main/sw/source/core/crsr/findtxt.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/crsr/findtxt.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/crsr/findtxt.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/crsr/findtxt.cxx Sun Sep 29 07:19:52 2013
@@ -57,9 +57,13 @@ using namespace util;
 
 String *ReplaceBackReferences( const SearchOptions& rSearchOpt, SwPaM* pPam );
 
-String& lcl_CleanStr( const SwTxtNode& rNd, xub_StrLen nStart,
-			          xub_StrLen& rEnde, SvULongs& rArr, String& rRet,
-                      bool bRemoveSoftHyphen )
+String& lcl_CleanStr(
+    const SwTxtNode& rNd,
+    xub_StrLen nStart,
+    xub_StrLen& rEnde,
+    SvULongs& rArr,
+    String& rRet,
+    const bool bRemoveSoftHyphen )
 {
 	rRet = rNd.GetTxt();
 	if( rArr.Count() )
@@ -121,14 +125,14 @@ String& lcl_CleanStr( const SwTxtNode& r
             const SwTxtAttr* pHt = (*pHts)[n];
             if ( pHt->HasDummyChar() && (nStt >= nStart) )
             {
-	    		//JP 17.05.00: Task 75806 ask for ">=" and not for ">"
-       			switch( pHt->Which() )
-        		{
-	        	case RES_TXTATR_FLYCNT:
-		        case RES_TXTATR_FTN:
-   			    case RES_TXTATR_FIELD:
-		        case RES_TXTATR_REFMARK:
-   			    case RES_TXTATR_TOXMARK:
+                //JP 17.05.00: Task 75806 ask for ">=" and not for ">"
+                switch( pHt->Which() )
+                {
+                case RES_TXTATR_FLYCNT:
+                case RES_TXTATR_FTN:
+                case RES_TXTATR_FIELD:
+                case RES_TXTATR_REFMARK:
+                case RES_TXTATR_TOXMARK:
                 case RES_TXTATR_META:
                 case RES_TXTATR_METAFIELD:
                     {
@@ -140,28 +144,28 @@ String& lcl_CleanStr( const SwTxtNode& r
                         //				wir sie einfach.
                         //				Fuer das Ende merken wir uns die Ersetzungen und entferenen
                         //				hinterher alle am Stringende (koenten ja 'normale' 0x7f drinstehen
-   			    		sal_Bool bEmpty = RES_TXTATR_FIELD != pHt->Which() ||
+                        sal_Bool bEmpty = RES_TXTATR_FIELD != pHt->Which() ||
                             !(static_cast<SwTxtFld const*>(pHt)
-                                ->GetFld().GetFld()->ExpandField(true).Len());
-	    			    if ( bEmpty && nStart == nAkt )
-   			    		{
-    			    		rArr.Insert( nAkt, rArr.Count() );
-	    			    	--rEnde;
-		    			    rRet.Erase( nAkt, 1 );
-   			    		}
-    			    	else
-   		    			{
-    		    			if ( bEmpty )
-	    		    			aReplaced.Insert( nAkt, aReplaced.Count() );
-		    		    	rRet.SetChar( nAkt, '\x7f' );
-   			    		}
-   				    }
-       				break;
-   			    default:
+                                ->GetFmtFld().GetField()->ExpandField(true).Len());
+                        if ( bEmpty && nStart == nAkt )
+                        {
+                            rArr.Insert( nAkt, rArr.Count() );
+                            --rEnde;
+                            rRet.Erase( nAkt, 1 );
+                        }
+                        else
+                        {
+                            if ( bEmpty )
+                                aReplaced.Insert( nAkt, aReplaced.Count() );
+                            rRet.SetChar( nAkt, '\x7f' );
+                        }
+                    }
+                    break;
+                default:
                     ASSERT( false, "unknown case in lcl_CleanStr" )
-		    	    break;
-		        }
-	        }
+                    break;
+                }
+            }
             ++n;
         }
 
@@ -200,7 +204,7 @@ xub_StrLen GetPostIt(xub_StrLen aCount,c
 			aIndex++;
 			const SwTxtAttr* pTxtAttr = (*pHts)[i];
 			if ( (pTxtAttr->Which()==RES_TXTATR_FIELD) &&
-					(pTxtAttr->GetFld().GetFld()->Which()==RES_POSTITFLD))
+					(pTxtAttr->GetFmtFld().GetField()->Which()==RES_POSTITFLD))
 			{
 				aCount--;
 				if (!aCount)
@@ -213,7 +217,7 @@ xub_StrLen GetPostIt(xub_StrLen aCount,c
 	{
 		const SwTxtAttr* pTxtAttr = (*pHts)[i];
 		if ( (pTxtAttr->Which()==RES_TXTATR_FIELD) &&
-				(pTxtAttr->GetFld().GetFld()->Which()==RES_POSTITFLD))
+				(pTxtAttr->GetFmtFld().GetField()->Which()==RES_POSTITFLD))
 			break;
 		else
 			aIndex++;
@@ -308,7 +312,7 @@ sal_uInt8 SwPaM::Find( const SearchOptio
 					xub_StrLen aPos = *(*pHts)[i]->GetStart();
 					const SwTxtAttr* pTxtAttr = (*pHts)[i];
 					if ( (pTxtAttr->Which()==RES_TXTATR_FIELD) &&
-								(pTxtAttr->GetFld().GetFld()->Which()==RES_POSTITFLD))
+								(pTxtAttr->GetFmtFld().GetField()->Which()==RES_POSTITFLD))
 					{
 						if ( (aPos >= nStart) && (aPos <= nEnde) )
 							aNumberPostits++;
@@ -391,7 +395,7 @@ sal_uInt8 SwPaM::Find( const SearchOptio
 						if ( (bSrchForward && (GetPostIt(aLoop + aIgnore,pHts) < pHts->Count()) ) || ( !bSrchForward && (aLoop!=0) ))
 						{
 							const SwTxtAttr* pTxtAttr = bSrchForward ?  (*pHts)[GetPostIt(aLoop+aIgnore,pHts)] : (*pHts)[GetPostIt(aLoop+aIgnore-1,pHts)];
-							if ( pPostItMgr && pPostItMgr->SearchReplace(((SwTxtFld*)pTxtAttr)->GetFld(),rSearchOpt,bSrchForward) )
+							if ( pPostItMgr && pPostItMgr->SearchReplace(((SwTxtFld*)pTxtAttr)->GetFmtFld(),rSearchOpt,bSrchForward) )
 							{
 								bFound = true ;
 								break;

Modified: openoffice/branches/ia2/main/sw/source/core/doc/doc.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/doc/doc.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/doc/doc.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/doc/doc.cxx Sun Sep 29 07:19:52 2013
@@ -1082,7 +1082,7 @@ struct _PostItFld : public _SetGetExpFld
     
     SwPostItField* GetPostIt() const
     { 
-        return (SwPostItField*) GetFld()->GetFld().GetFld();
+        return (SwPostItField*) GetTxtFld()->GetFmtFld().GetField();
     }
 };
 
@@ -1100,7 +1100,7 @@ sal_uInt16 _PostItFld::GetPageNo( 
     //Bereichs ermittelt werden.
     rVirtPgNo = 0;
     sal_uInt16 nPos = GetCntnt();
-    SwIterator<SwTxtFrm,SwTxtNode> aIter( GetFld()->GetTxtNode() );
+    SwIterator<SwTxtFrm,SwTxtNode> aIter( GetTxtFld()->GetTxtNode() );
     for( SwTxtFrm* pFrm = aIter.First(); pFrm;  pFrm = aIter.Next() )
     {
         if( pFrm->GetOfst() > nPos ||
@@ -1232,7 +1232,7 @@ void SwDoc::CalculatePagesForPrinting(
     bool bIsPDFExport,
     sal_Int32 nDocPageCount )
 {
-    const sal_Int32 nContent = rOptions.getIntValue( "PrintContent", 0 );
+    const sal_Int64 nContent = rOptions.getIntValue( "PrintContent", 0 );
     const bool bPrintSelection = nContent == 2;
 
     // properties to take into account when calcualting the set of pages
@@ -1593,7 +1593,7 @@ void SwDoc::CalculatePagePairsForProspec
     // 0 -> print all pages (default if aPageRange is empty)
     // 1 -> print range according to PageRange
     // 2 -> print selection
-    const sal_Int32 nContent = rOptions.getIntValue( "PrintContent", 0 );
+    const sal_Int64 nContent = rOptions.getIntValue( "PrintContent", 0 );
     if (0 == nContent)
     {
         // set page range to print to 'all pages'
@@ -1666,7 +1666,9 @@ void SwDoc::CalculatePagePairsForProspec
 
     // dann sorge mal dafuer, das alle Seiten in der richtigen
     // Reihenfolge stehen:
-    sal_uInt16 nSPg = 0, nEPg = aVec.size(), nStep = 1;
+    sal_uInt16 nSPg = 0;
+    sal_uInt32 nEPg = aVec.size();
+    sal_uInt16 nStep = 1;
     if ( 0 == (nEPg & 1 ))      // ungerade gibt es nicht!
         --nEPg;
 
@@ -1754,7 +1756,7 @@ void SwDoc::UpdateDocStat( SwDocStat& rS
                 if (pFmtFld->IsFldInDoc())
                 {
                     SwPostItField const * const pField(
-                        static_cast<SwPostItField const*>(pFmtFld->GetFld()));
+                        static_cast<SwPostItField const*>(pFmtFld->GetField()));
                     rStat.nAllPara += pField->GetNumberOfParagraphs();
                 }
             }
@@ -1867,25 +1869,25 @@ const SwFmtRefMark* SwDoc::GetRefMark( s
 	// OS 25.06.96: ab jetzt wird immer die Anzahl der Referenzen returnt
 sal_uInt16 SwDoc::GetRefMarks( SvStringsDtor* pNames ) const
 {
-	const SfxPoolItem* pItem;
-	const SwTxtRefMark* pTxtRef;
+    const SfxPoolItem* pItem;
+    const SwTxtRefMark* pTxtRef;
 
-	sal_uInt32 nMaxItems = GetAttrPool().GetItemCount2( RES_TXTATR_REFMARK );
-	sal_uInt32 nCount = 0;
-	for( sal_uInt32 n = 0; n < nMaxItems; ++n )
-		if( 0 != (pItem = GetAttrPool().GetItem2( RES_TXTATR_REFMARK, n )) &&
-			0 != (pTxtRef = ((SwFmtRefMark*)pItem)->GetTxtRefMark()) &&
-			&pTxtRef->GetTxtNode().GetNodes() == &GetNodes() )
-		{
-			if( pNames )
-			{
-				String* pTmp = new String( ((SwFmtRefMark*)pItem)->GetRefName() );
-				pNames->Insert( pTmp, nCount );
-			}
-			nCount ++;
-		}
+    const sal_uInt32 nMaxItems = GetAttrPool().GetItemCount2( RES_TXTATR_REFMARK );
+    sal_uInt16 nCount = 0;
+    for( sal_uInt32 n = 0; n < nMaxItems; ++n )
+        if( 0 != (pItem = GetAttrPool().GetItem2( RES_TXTATR_REFMARK, n )) &&
+            0 != (pTxtRef = ((SwFmtRefMark*)pItem)->GetTxtRefMark()) &&
+            &pTxtRef->GetTxtNode().GetNodes() == &GetNodes() )
+        {
+            if( pNames )
+            {
+                String* pTmp = new String( ((SwFmtRefMark*)pItem)->GetRefName() );
+                pNames->Insert( pTmp, nCount );
+            }
+            ++nCount;
+        }
 
-	return nCount;
+    return nCount;
 }
 
 bool SwDoc::IsLoaded() const
@@ -2463,8 +2465,8 @@ sal_Bool SwDoc::ConvertFieldsToText()
             if (!bSkip)
             {
                 sal_Bool bInHeaderFooter = IsInHeaderFooter(SwNodeIndex(*pTxtFld->GetpTxtNode()));
-                const SwFmtFld& rFmtFld = pTxtFld->GetFld();
-                const SwField*  pField = rFmtFld.GetFld();
+                const SwFmtFld& rFmtFld = pTxtFld->GetFmtFld();
+                const SwField*  pField = rFmtFld.GetField();
 
                 //#i55595# some fields have to be excluded in headers/footers
                 sal_uInt16 nWhich = pField->GetTyp()->Which();
@@ -2696,7 +2698,7 @@ SwField * SwDoc::GetField(const SwPositi
 {
     SwTxtFld * const pAttr = GetTxtFld(rPos);
 
-    return (pAttr) ? const_cast<SwField *>( pAttr->GetFld().GetFld() ) : 0;
+    return (pAttr) ? const_cast<SwField *>( pAttr->GetFmtFld().GetField() ) : 0;
 }
 
 SwTxtFld * SwDoc::GetTxtFld(const SwPosition & rPos)

Modified: openoffice/branches/ia2/main/sw/source/core/doc/docfld.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/doc/docfld.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/doc/docfld.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/doc/docfld.cxx Sun Sep 29 07:19:52 2013
@@ -446,7 +446,7 @@ void SwDoc::UpdateTblFlds( SfxPoolItem* 
             {
 				if( pFmtFld->GetTxtFld() )
 				{
-					SwTblField* pFld = (SwTblField*)pFmtFld->GetFld();
+					SwTblField* pFld = (SwTblField*)pFmtFld->GetField();
 
 					if( pUpdtFld )
 					{
@@ -532,7 +532,7 @@ void SwDoc::UpdateTblFlds( SfxPoolItem* 
                 // mba: do we really need this "optimization"? Is it still valid?
 				SwTblField* pFld;
 				if( !pFmtFld->GetTxtFld() || (nsSwExtendedSubType::SUB_CMD &
-					(pFld = (SwTblField*)pFmtFld->GetFld())->GetSubType() ))
+					(pFld = (SwTblField*)pFmtFld->GetField())->GetSubType() ))
 					continue;
 
 				// muss neu berechnet werden (und ist keine textuelle Anzeige)
@@ -1070,11 +1070,11 @@ String lcl_GetDBVarName( SwDoc& rDoc, Sw
 void lcl_CalcFld( SwDoc& rDoc, SwCalc& rCalc, const _SetGetExpFld& rSGEFld,
 						SwNewDBMgr* pMgr )
 {
-	const SwTxtFld* pTxtFld = rSGEFld.GetFld();
+	const SwTxtFld* pTxtFld = rSGEFld.GetTxtFld();
 	if( !pTxtFld )
 		return ;
 
-	const SwField* pFld = pTxtFld->GetFld().GetFld();
+	const SwField* pFld = pTxtFld->GetFmtFld().GetField();
 	const sal_uInt16 nFldWhich = pFld->GetTyp()->Which();
 
 	if( RES_SETEXPFLD == nFldWhich )
@@ -1196,11 +1196,11 @@ void SwDoc::FldsToExpand( SwHash**& ppHa
 	const _SetGetExpFldPtr* ppSortLst = pUpdtFlds->GetSortLst()->GetData();
 	for( ; nLast; --nLast, ++ppSortLst )
 	{
-		const SwTxtFld* pTxtFld = (*ppSortLst)->GetFld();
+		const SwTxtFld* pTxtFld = (*ppSortLst)->GetTxtFld();
 		if( !pTxtFld )
 			continue;
 
-		const SwField* pFld = pTxtFld->GetFld().GetFld();
+		const SwField* pFld = pTxtFld->GetFmtFld().GetField();
 		switch( pFld->GetTyp()->Which() )
 		{
 		case RES_SETEXPFLD:
@@ -1341,29 +1341,28 @@ void SwDoc::UpdateExpFlds( SwTxtFld* pUp
 		{
 			//!SECTION
 
-//			if( pGFld->IsInBodyTxt() )
             SwSbxValue aValue = aCalc.Calculate(
                                         pSect->GetCondition() );
             if(!aValue.IsVoidValue())
                 pSect->SetCondHidden( aValue.GetBool() );
-			continue;
-		}
+            continue;
+        }
 
-		SwTxtFld* pTxtFld = (SwTxtFld*)(*ppSortLst)->GetFld();
-		if( !pTxtFld )
-		{
-			ASSERT( !this, "was ist es denn nun" );
-			continue;
-		}
+        SwTxtFld* pTxtFld = (SwTxtFld*)(*ppSortLst)->GetTxtFld();
+        if( !pTxtFld )
+        {
+            ASSERT( !this, "was ist es denn nun" );
+            continue;
+        }
 
-		SwFmtFld* pFmtFld = (SwFmtFld*)&pTxtFld->GetFld();
-		SwField* pFld = pFmtFld->GetFld();
+        SwFmtFld* pFmtFld = (SwFmtFld*)&pTxtFld->GetFmtFld();
+        const SwField* pFld = pFmtFld->GetField();
 
-		switch( nWhich = pFld->GetTyp()->Which() )
-		{
-		case RES_HIDDENTXTFLD:
-		{
-			SwHiddenTxtField* pHFld = (SwHiddenTxtField*)pFld;
+        switch( nWhich = pFld->GetTyp()->Which() )
+        {
+        case RES_HIDDENTXTFLD:
+        {
+            SwHiddenTxtField* pHFld = (SwHiddenTxtField*)pFld;
             SwSbxValue aValue = aCalc.Calculate( pHFld->GetPar1() );
             sal_Bool bValue = !aValue.GetBool();
             if(!aValue.IsVoidValue())
@@ -1372,11 +1371,11 @@ void SwDoc::UpdateExpFlds( SwTxtFld* pUp
                 // Feld Evaluieren
                 pHFld->Evaluate(this);
             }
-		}
-		break;
-		case RES_HIDDENPARAFLD:
-		{
-			SwHiddenParaField* pHPFld = (SwHiddenParaField*)pFld;
+        }
+        break;
+        case RES_HIDDENPARAFLD:
+        {
+            SwHiddenParaField* pHPFld = (SwHiddenParaField*)pFld;
             SwSbxValue aValue = aCalc.Calculate( pHPFld->GetPar1() );
             sal_Bool bValue = aValue.GetBool();
             if(!aValue.IsVoidValue())
@@ -1682,17 +1681,15 @@ const SwDBData& SwDoc::GetDBDesc()
                     case RES_DBNUMSETFLD:
                     case RES_DBSETNUMBERFLD:
                     {
-			            SwIterator<SwFmtFld,SwFieldType> aIter( rFldType );
-			            for( SwFmtFld* pFld = aIter.First(); pFld; pFld = aIter.Next() )
+                        SwIterator<SwFmtFld,SwFieldType> aIter( rFldType );
+                        for( SwFmtFld* pFld = aIter.First(); pFld; pFld = aIter.Next() )
                         {
                             if(pFld->IsFldInDoc())
                             {
                                 if(RES_DBFLD == nWhich)
-                                    aDBData =
-                                        (static_cast < SwDBFieldType * > (pFld->GetFld()->GetTyp()))
-                                            ->GetDBData();
+                                    aDBData = (static_cast < SwDBFieldType * > (pFld->GetField()->GetTyp()))->GetDBData();
                                 else
-                                    aDBData = (static_cast < SwDBNameInfField* > (pFld->GetFld()))->GetRealDBData();
+                                    aDBData = (static_cast < SwDBNameInfField* > (pFld->GetField()))->GetRealDBData();
                                 break;
                             }
                         }
@@ -1704,7 +1701,7 @@ const SwDBData& SwDoc::GetDBDesc()
     }
     if(!aDBData.sDataSource.getLength())
         aDBData = GetNewDBMgr()->GetAddressDBName();
-	return aDBData;
+    return aDBData;
 }
 
 void SwDoc::SetInitDBFields( sal_Bool b )
@@ -1762,7 +1759,7 @@ void SwDoc::GetAllUsedDB( SvStringsDtor&
 		if( !pTxtFld || !pTxtFld->GetTxtNode().GetNodes().IsDocNodes() )
 			continue;
 
-		const SwField* pFld = pFmtFld->GetFld();
+		const SwField* pFld = pFmtFld->GetField();
 		switch( pFld->GetTyp()->Which() )
 		{
 			case RES_DBFLD:
@@ -1937,7 +1934,7 @@ void SwDoc::ChangeDBFields( const SvStri
 		if( !pTxtFld || !pTxtFld->GetTxtNode().GetNodes().IsDocNodes() )
 			continue;
 
-		SwField* pFld = pFmtFld->GetFld();
+		SwField* pFld = pFmtFld->GetField();
 		sal_Bool bExpand = sal_False;
 
 		switch( pFld->GetTyp()->Which() )
@@ -2096,18 +2093,18 @@ void SwDoc::SetFixFields( bool bOnlyTime
 	{
 		SwFieldType* pFldType = GetSysFldType( aTypes[ nStt ] );
 		SwIterator<SwFmtFld,SwFieldType> aIter( *pFldType );
-		for( SwFmtFld* pFld = aIter.First(); pFld; pFld = aIter.Next() )
+		for( SwFmtFld* pFmtFld = aIter.First(); pFmtFld; pFmtFld = aIter.Next() )
 		{
-			if( pFld && pFld->GetTxtFld() )
+			if( pFmtFld && pFmtFld->GetTxtFld() )
 			{
 				sal_Bool bChgd = sal_False;
 				switch( aTypes[ nStt ] )
 				{
 				case RES_DOCINFOFLD:
-					if( ((SwDocInfoField*)pFld->GetFld())->IsFixed() )
+					if( ((SwDocInfoField*)pFmtFld->GetField())->IsFixed() )
 					{
 						bChgd = sal_True;
-						SwDocInfoField* pDocInfFld = (SwDocInfoField*)pFld->GetFld();
+						SwDocInfoField* pDocInfFld = (SwDocInfoField*)pFmtFld->GetField();
 						pDocInfFld->SetExpansion( ((SwDocInfoFieldType*)
 									pDocInfFld->GetTyp())->Expand(
 										pDocInfFld->GetSubType(),
@@ -2118,10 +2115,10 @@ void SwDoc::SetFixFields( bool bOnlyTime
 					break;
 
 				case RES_AUTHORFLD:
-					if( ((SwAuthorField*)pFld->GetFld())->IsFixed() )
+					if( ((SwAuthorField*)pFmtFld->GetField())->IsFixed() )
 					{
 						bChgd = sal_True;
-						SwAuthorField* pAuthorFld = (SwAuthorField*)pFld->GetFld();
+						SwAuthorField* pAuthorFld = (SwAuthorField*)pFmtFld->GetField();
 						pAuthorFld->SetExpansion( ((SwAuthorFieldType*)
 									pAuthorFld->GetTyp())->Expand(
 												pAuthorFld->GetFormat() ) );
@@ -2129,10 +2126,10 @@ void SwDoc::SetFixFields( bool bOnlyTime
 					break;
 
 				case RES_EXTUSERFLD:
-					if( ((SwExtUserField*)pFld->GetFld())->IsFixed() )
+					if( ((SwExtUserField*)pFmtFld->GetField())->IsFixed() )
 					{
 						bChgd = sal_True;
-						SwExtUserField* pExtUserFld = (SwExtUserField*)pFld->GetFld();
+						SwExtUserField* pExtUserFld = (SwExtUserField*)pFmtFld->GetField();
 						pExtUserFld->SetExpansion( ((SwExtUserFieldType*)
 									pExtUserFld->GetTyp())->Expand(
 											pExtUserFld->GetSubType(),
@@ -2141,20 +2138,20 @@ void SwDoc::SetFixFields( bool bOnlyTime
 					break;
 
 				case RES_DATETIMEFLD:
-					if( ((SwDateTimeField*)pFld->GetFld())->IsFixed() )
+					if( ((SwDateTimeField*)pFmtFld->GetField())->IsFixed() )
 					{
 						bChgd = sal_True;
-						((SwDateTimeField*)pFld->GetFld())->SetDateTime(
+						((SwDateTimeField*)pFmtFld->GetField())->SetDateTime(
                                                     DateTime(Date(nDate), Time(nTime)) );
 					}
 					break;
 
 				case RES_FILENAMEFLD:
-					if( ((SwFileNameField*)pFld->GetFld())->IsFixed() )
+					if( ((SwFileNameField*)pFmtFld->GetField())->IsFixed() )
 					{
 						bChgd = sal_True;
 						SwFileNameField* pFileNameFld =
-							(SwFileNameField*)pFld->GetFld();
+							(SwFileNameField*)pFmtFld->GetField();
 						pFileNameFld->SetExpansion( ((SwFileNameFieldType*)
 									pFileNameFld->GetTyp())->Expand(
 											pFileNameFld->GetFormat() ) );
@@ -2164,7 +2161,7 @@ void SwDoc::SetFixFields( bool bOnlyTime
 
 				// Formatierung anstossen
 				if( bChgd )
-					pFld->ModifyNotification( 0, 0 );
+					pFmtFld->ModifyNotification( 0, 0 );
 			}
 		}
 	}
@@ -2243,7 +2240,7 @@ void SwDoc::ChangeAuthorityData( const S
 
 void SwDocUpdtFld::InsDelFldInFldLst( sal_Bool bIns, const SwTxtFld& rFld )
 {
-	sal_uInt16 nWhich = rFld.GetFld().GetFld()->GetTyp()->Which();
+    const sal_uInt16 nWhich = rFld.GetFmtFld().GetField()->GetTyp()->Which();
 	switch( nWhich )
 	{
 	case RES_DBFLD:
@@ -2381,7 +2378,7 @@ void SwDocUpdtFld::_MakeFldList( SwDoc& 
 		if( !pTxtFld || !pTxtFld->GetTxtNode().GetNodes().IsDocNodes() )
 			continue;
 
-		const SwField* pFld = pFmtFld->GetFld();
+		const SwField* pFld = pFmtFld->GetField();
 		switch( nWhich = pFld->GetTyp()->Which() )
 		{
 			case RES_DBSETNUMBERFLD:
@@ -2396,7 +2393,6 @@ void SwDocUpdtFld::_MakeFldList( SwDoc& 
 				break;
 
 			case RES_SETEXPFLD:
-                /// OD 04.10.2002 #102894#
                 /// fields of subtype <string> have also been add
                 /// for calculation (eGetMode == GETFLD_CALC).
                 /// Thus, add fields of subtype <string> in all modes
@@ -2558,12 +2554,12 @@ void SwDocUpdtFld::GetBodyNode( const Sw
 	// bei GetExp.-/DB.-Felder immer das BodyTxtFlag setzen
 	if( RES_GETEXPFLD == nFldWhich )
 	{
-		SwGetExpField* pGetFld = (SwGetExpField*)rTFld.GetFld().GetFld();
+		SwGetExpField* pGetFld = (SwGetExpField*)rTFld.GetFmtFld().GetField();
 		pGetFld->ChgBodyTxtFlag( bIsInBody );
 	}
 	else if( RES_DBFLD == nFldWhich )
 	{
-		SwDBField* pDBFld = (SwDBField*)rTFld.GetFld().GetFld();
+		SwDBField* pDBFld = (SwDBField*)rTFld.GetFmtFld().GetField();
 		pDBFld->ChgBodyTxtFlag( bIsInBody );
 	}
 
@@ -2707,8 +2703,8 @@ bool SwDoc::UpdateFld(SwTxtFld * pDstTxt
 
     sal_Bool bTblSelBreak = sal_False;
 
-    SwFmtFld * pDstFmtFld = (SwFmtFld*)&pDstTxtFld->GetFld();
-    SwField * pDstFld = pDstFmtFld->GetFld();
+    SwFmtFld * pDstFmtFld = (SwFmtFld*)&pDstTxtFld->GetFmtFld();
+    SwField * pDstFld = pDstFmtFld->GetField();
     sal_uInt16 nFldWhich = rSrcFld.GetTyp()->Which();
     SwNodeIndex aTblNdIdx(pDstTxtFld->GetTxtNode());
 

Modified: openoffice/branches/ia2/main/sw/source/core/docnode/nodes.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/docnode/nodes.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/docnode/nodes.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/docnode/nodes.cxx Sun Sep 29 07:19:52 2013
@@ -319,12 +319,17 @@ void SwNodes::ChgNode( SwNodeIndex& rDel
                                 {
                                     SwTxtFld* pTxtFld =
                                         static_cast<SwTxtFld*>(pAttr);
-									rNds.GetDoc()->InsDelFldInFldLst( !bToUndo, *pTxtFld );
+                                    rNds.GetDoc()->InsDelFldInFldLst( !bToUndo, *pTxtFld );
 
-									const SwFieldType* pTyp = pTxtFld->GetFld().GetFld()->GetTyp();
-									if ( RES_POSTITFLD == pTyp->Which() )
-									{
-										rNds.GetDoc()->GetDocShell()->Broadcast( SwFmtFldHint( &pTxtFld->GetFld(), pTxtFld->GetFld().IsFldInDoc() ? SWFMTFLD_INSERTED : SWFMTFLD_REMOVED ) );
+                                    const SwFieldType* pTyp = pTxtFld->GetFmtFld().GetField()->GetTyp();
+                                    if ( RES_POSTITFLD == pTyp->Which() )
+                                    {
+                                        rNds.GetDoc()->GetDocShell()->Broadcast(
+                                            SwFmtFldHint(
+                                                &pTxtFld->GetFmtFld(),
+                                                ( pTxtFld->GetFmtFld().IsFldInDoc()
+                                                  ? SWFMTFLD_INSERTED
+                                                  : SWFMTFLD_REMOVED ) ) );
 									}
 									else
 									if( RES_DDEFLD == pTyp->Which() )

Modified: openoffice/branches/ia2/main/sw/source/core/edit/edattr.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/edit/edattr.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/edit/edattr.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/edit/edattr.cxx Sun Sep 29 07:19:52 2013
@@ -463,7 +463,7 @@ sal_Bool lcl_IsNoEndTxtAttrAtPos( const 
                          // defined as weak-script ?
             if ( RES_TXTATR_FIELD == pAttr->Which() )
             {
-                const SwField* const pFld = pAttr->GetFld().GetFld();
+                const SwField* const pFld = pAttr->GetFmtFld().GetField();
                 if (pFld)
                 {
                     sExp += pFld->ExpandField(true);

Modified: openoffice/branches/ia2/main/sw/source/core/edit/edfld.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/edit/edfld.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/edit/edfld.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/edit/edfld.cxx Sun Sep 29 07:19:52 2013
@@ -273,7 +273,7 @@ SwField* SwEditShell::GetCurFld() const
         (pCrsr->End()->nContent.GetIndex() -
          pCrsr->Start()->nContent.GetIndex()) <= 1)
 	{
-		pCurFld = (SwField*)pTxtFld->GetFld().GetFld();
+		pCurFld = (SwField*)pTxtFld->GetFmtFld().GetField();
 		// TabellenFormel ? wandel internen in externen Namen um
 		if( RES_TABLEFLD == pCurFld->GetTyp()->Which() )
 		{
@@ -311,7 +311,7 @@ SwTxtFld* lcl_FindInputFld( SwDoc* pDoc,
 		for( n = 0; n < nMaxItems; ++n )
 			if( 0 != (pItem =
                       pDoc->GetAttrPool().GetItem2( RES_TXTATR_FIELD, n ) )
-				&& ((SwFmtFld*)pItem)->GetFld() == &rFld )
+				&& ((SwFmtFld*)pItem)->GetField() == &rFld )
 			{
 				pTFld = ((SwFmtFld*)pItem)->GetTxtFld();
 				break;
@@ -390,8 +390,8 @@ void SwEditShell::UpdateFlds( SwField &r
 
 					if( 0 != (pTxtFld = GetDocTxtFld( pCurStt )) )
 					{
-						pFmtFld = (SwFmtFld*)&pTxtFld->GetFld();
-						pCurFld = pFmtFld->GetFld();
+						pFmtFld = (SwFmtFld*)&pTxtFld->GetFmtFld();
+						pCurFld = pFmtFld->GetField();
 
 						// bei gemischten Feldtypen
 						if( pCurFld->GetTyp()->Which() !=

Modified: openoffice/branches/ia2/main/sw/source/core/edit/edfldexp.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/edit/edfldexp.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/edit/edfldexp.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/edit/edfldexp.cxx Sun Sep 29 07:19:52 2013
@@ -63,13 +63,13 @@ sal_Bool SwEditShell::IsFieldDataSourceA
                 case RES_DBFLD:
                 {
                     SwIterator<SwFmtFld,SwFieldType> aIter( rFldType );
-                    SwFmtFld* pFld = aIter.First();
-                    while(pFld)
+                    SwFmtFld* pFmtFld = aIter.First();
+                    while(pFmtFld)
                     {
-                        if(pFld->IsFldInDoc())
+                        if(pFmtFld->IsFldInDoc())
                         {
                             const SwDBData& rData =
-                                    ((SwDBFieldType*)pFld->GetFld()->GetTyp())->GetDBData();
+                                    ((SwDBFieldType*)pFmtFld->GetField()->GetTyp())->GetDBData();
 							try
 							{
 								return xDBContext->getByName(rData.sDataSource).hasValue();
@@ -80,7 +80,7 @@ sal_Bool SwEditShell::IsFieldDataSourceA
 								return sal_False;
 							}
                         }
-                        pFld = aIter.Next();
+                        pFmtFld = aIter.Next();
                     }
                 }
                 break;

Modified: openoffice/branches/ia2/main/sw/source/core/fields/authfld.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/fields/authfld.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/fields/authfld.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/fields/authfld.cxx Sun Sep 29 07:19:52 2013
@@ -325,7 +325,7 @@ sal_uInt16	SwAuthorityFieldType::GetSequ
             if(!pTxtFld || !pTxtFld->GetpTxtNode())
 			{
 #ifdef DBG_UTIL
-                if(nHandle == ((SwAuthorityField*)pFmtFld->GetFld())->GetHandle())
+                if(nHandle == ((SwAuthorityField*)pFmtFld->GetField())->GetHandle())
 					bCurrentFieldWithoutTextNode = sal_True;
 #endif
 				continue;
@@ -381,7 +381,7 @@ sal_uInt16	SwAuthorityFieldType::GetSequ
 		{
 			const SwTOXSortTabBase& rBase = *aSortArr[i];
 			SwFmtFld& rFmtFld = ((SwTOXAuthority&)rBase).GetFldFmt();
-			SwAuthorityField* pAFld = (SwAuthorityField*)rFmtFld.GetFld();
+			SwAuthorityField* pAFld = (SwAuthorityField*)rFmtFld.GetField();
 			m_pSequArr->Insert(pAFld->GetHandle(), i);
 		}
 		aSortArr.DeleteAndDestroy(0, aSortArr.Count());

Modified: openoffice/branches/ia2/main/sw/source/core/fields/cellfml.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/fields/cellfml.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/fields/cellfml.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/fields/cellfml.cxx Sun Sep 29 07:19:52 2013
@@ -164,7 +164,7 @@ double SwTableBox::GetValue( SwTblCalcPa
 
 			rCalcPara.rCalc.SetCalcError( CALC_NOERR );	// wieder zuruecksetzen
 
-			const SwField* pFld = pTxtFld->GetFld().GetFld();
+			const SwField* pFld = pTxtFld->GetFmtFld().GetField();
 			switch( pFld->GetTyp()->Which()  )
 			{
 			case RES_SETEXPFLD:

Modified: openoffice/branches/ia2/main/sw/source/core/fields/dbfld.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/fields/dbfld.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/fields/dbfld.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/fields/dbfld.cxx Sun Sep 29 07:19:52 2013
@@ -159,18 +159,18 @@ sal_Bool SwDBFieldType::PutValue( const 
 			{
 				sColumn = sTmp;
 				SwIterator<SwFmtFld,SwFieldType> aIter( *this );
-				SwFmtFld* pFld = aIter.First();
-				while(pFld)
+				SwFmtFld* pFmtFld = aIter.First();
+				while(pFmtFld)
 				{
 					// Feld im Undo?
-					SwTxtFld *pTxtFld = pFld->GetTxtFld();
+					SwTxtFld *pTxtFld = pFmtFld->GetTxtFld();
 					if(pTxtFld && pTxtFld->GetTxtNode().GetNodes().IsDocNodes() )
 					{
-						SwDBField* pDBField = (SwDBField*)pFld->GetFld();
+						SwDBField* pDBField = (SwDBField*)pFmtFld->GetField();
 						pDBField->ClearInitialized();
 						pDBField->InitContent();
  					}
-					pFld = aIter.Next();
+					pFmtFld = aIter.Next();
 				}
 			}
 		}
@@ -460,17 +460,17 @@ sal_Bool SwDBField::PutValue( const uno:
         if(GetTyp())
         {
             SwIterator<SwFmtFld,SwFieldType> aIter( *GetTyp() );
-            SwFmtFld* pFld = aIter.First();
-            while(pFld)
+            SwFmtFld* pFmtFld = aIter.First();
+            while(pFmtFld)
             {
-                SwTxtFld *pTxtFld = pFld->GetTxtFld();
-                if(pTxtFld && (SwDBField*)pFld->GetFld() == this )
+                SwTxtFld *pTxtFld = pFmtFld->GetTxtFld();
+                if(pTxtFld && (SwDBField*)pFmtFld->GetField() == this )
                 {
                     //notify the change
-                    pTxtFld->NotifyContentChange(*pFld);
+                    pTxtFld->NotifyContentChange(*pFmtFld);
                     break;
                 }
-                pFld = aIter.Next();
+                pFmtFld = aIter.Next();
             }
         }
     }

Modified: openoffice/branches/ia2/main/sw/source/core/fields/docufld.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/fields/docufld.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/fields/docufld.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/fields/docufld.cxx Sun Sep 29 07:19:52 2013
@@ -2313,7 +2313,7 @@ sal_uInt16 SwRefPageGetFieldType::MakeSe
 void SwRefPageGetFieldType::UpdateField( SwTxtFld* pTxtFld,
 										_SetGetExpFlds& rSetList )
 {
-	SwRefPageGetField* pGetFld = (SwRefPageGetField*)pTxtFld->GetFld().GetFld();
+	SwRefPageGetField* pGetFld = (SwRefPageGetField*)pTxtFld->GetFmtFld().GetField();
 	pGetFld->SetText( aEmptyStr );
 
 	// dann suche mal das richtige RefPageSet-Field
@@ -2329,9 +2329,9 @@ void SwRefPageGetFieldType::UpdateField(
 
 		if( nLast-- )
 		{
-			const SwTxtFld* pRefTxtFld = rSetList[ nLast ]->GetFld();
+			const SwTxtFld* pRefTxtFld = rSetList[ nLast ]->GetTxtFld();
 			const SwRefPageSetField* pSetFld =
-						(SwRefPageSetField*)pRefTxtFld->GetFld().GetFld();
+						(SwRefPageSetField*)pRefTxtFld->GetFmtFld().GetField();
 			if( pSetFld->IsOn() )
 			{
 				// dann bestimme mal den entsp. Offset
@@ -2355,7 +2355,7 @@ void SwRefPageGetFieldType::UpdateField(
 		}
 	}
 	// dann die Formatierung anstossen
-	((SwFmtFld&)pTxtFld->GetFld()).ModifyNotification( 0, 0 );
+	((SwFmtFld&)pTxtFld->GetFmtFld()).ModifyNotification( 0, 0 );
 }
 
 /*--------------------------------------------------------------------
@@ -2426,9 +2426,9 @@ void SwRefPageGetField::ChangeExpansion(
 	if( !nLast-- )
 		return ;		// es gibt kein entsprechendes Set - Feld vor mir
 
-	const SwTxtFld* pRefTxtFld = aTmpLst[ nLast ]->GetFld();
+	const SwTxtFld* pRefTxtFld = aTmpLst[ nLast ]->GetTxtFld();
 	const SwRefPageSetField* pSetFld =
-						(SwRefPageSetField*)pRefTxtFld->GetFld().GetFld();
+						(SwRefPageSetField*)pRefTxtFld->GetFmtFld().GetField();
     Point aPt;
     const SwCntntFrm* pRefFrm = pRefTxtFld ? pRefTxtFld->GetTxtNode().getLayoutFrm( pFrm->getRootFrm(), &aPt, 0, sal_False ) : 0;
     if( pSetFld->IsOn() && pRefFrm )
@@ -2438,7 +2438,7 @@ void SwRefPageGetField::ChangeExpansion(
 		sal_uInt16 nDiff = pPgFrm->GetPhyPageNum() -
 							pRefFrm->FindPageFrm()->GetPhyPageNum() + 1;
 
-		SwRefPageGetField* pGetFld = (SwRefPageGetField*)pFld->GetFld().GetFld();
+		SwRefPageGetField* pGetFld = (SwRefPageGetField*)pFld->GetFmtFld().GetField();
 		sal_uInt32 nTmpFmt = SVX_NUM_PAGEDESC == pGetFld->GetFormat()
 							? pPgFrm->GetPageDesc()->GetNumType().GetNumberingType()
 							: pGetFld->GetFormat();

Modified: openoffice/branches/ia2/main/sw/source/core/fields/expfld.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/fields/expfld.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/fields/expfld.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/fields/expfld.cxx Sun Sep 29 07:19:52 2013
@@ -534,8 +534,8 @@ void SwSetExpFieldType::Modify( const Sf
 void SwSetExpFieldType::SetSeqFormat(sal_uLong nFmt)
 {
 	SwIterator<SwFmtFld,SwFieldType> aIter(*this);
-	for( SwFmtFld* pFld = aIter.First(); pFld; pFld = aIter.Next() )
-		pFld->GetFld()->ChangeFormat( nFmt );
+	for( SwFmtFld* pFmtFld = aIter.First(); pFmtFld; pFmtFld = aIter.Next() )
+		pFmtFld->GetField()->ChangeFormat( nFmt );
 }
 
 sal_uLong SwSetExpFieldType::GetSeqFormat()
@@ -543,7 +543,7 @@ sal_uLong SwSetExpFieldType::GetSeqForma
 	if( !GetDepends() )
 		return SVX_NUM_ARABIC;
 
-	SwField *pFld = ((SwFmtFld*)GetDepends())->GetFld();
+	SwField *pFld = ((SwFmtFld*)GetDepends())->GetField();
 	return pFld->GetFormat();
 }
 
@@ -562,10 +562,10 @@ extern void InsertSort( SvUShorts& rArr,
 	SwIterator<SwFmtFld,SwFieldType> aIter( *this );
 	const SwTxtNode* pNd;
 	for( SwFmtFld* pF = aIter.First(); pF; pF = aIter.Next() )
-		if( pF->GetFld() != &rFld && pF->GetTxtFld() &&
+		if( pF->GetField() != &rFld && pF->GetTxtFld() &&
 			0 != ( pNd = pF->GetTxtFld()->GetpTxtNode() ) &&
 			pNd->GetNodes().IsDocNodes() )
-			InsertSort( aArr, ((SwSetExpField*)pF->GetFld())->GetSeqNumber() );
+			InsertSort( aArr, ((SwSetExpField*)pF->GetField())->GetSeqNumber() );
 
 
 	// teste erstmal ob die Nummer schon vorhanden ist:
@@ -605,7 +605,7 @@ sal_uInt16 SwSetExpFieldType::GetSeqFldL
 		{
             _SeqFldLstElem* pNew = new _SeqFldLstElem(
                     pNd->GetExpandTxt( 0, (*pF->GetTxtFld()->GetStart()) + 1 ),
-                    ((SwSetExpField*)pF->GetFld())->GetSeqNumber() );
+                    ((SwSetExpField*)pF->GetField())->GetSeqNumber() );
 			rList.InsertSort( pNew );
 		}
 

Modified: openoffice/branches/ia2/main/sw/source/core/fields/fldlst.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/fields/fldlst.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/fields/fldlst.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/fields/fldlst.cxx Sun Sep 29 07:19:52 2013
@@ -60,14 +60,14 @@ SwInputFieldList::SwInputFieldList( SwEd
         if( RES_SETEXPFLD == nType || RES_INPUTFLD == nType || RES_DROPDOWN == nType )
 		{
 			SwIterator<SwFmtFld,SwFieldType> aIter( *pFldType );
-			for( SwFmtFld* pFld = aIter.First(); pFld; pFld = aIter.Next() )
+			for( SwFmtFld* pFmtFld = aIter.First(); pFmtFld; pFmtFld = aIter.Next() )
 			{
-				const SwTxtFld* pTxtFld = pFld->GetTxtFld();
+				const SwTxtFld* pTxtFld = pFmtFld->GetTxtFld();
 
 				//	nur InputFields und interaktive SetExpFlds bearbeiten
                 //  and DropDown fields
 				if( !pTxtFld || ( RES_SETEXPFLD == nType &&
-					!((SwSetExpField*)pFld->GetFld())->GetInputFlag()))
+					!((SwSetExpField*)pFmtFld->GetField())->GetInputFlag()))
 					continue;
 
 				const SwTxtNode& rTxtNode = pTxtFld->GetTxtNode();
@@ -107,9 +107,9 @@ sal_uInt16 SwInputFieldList::Count() con
 
 SwField* SwInputFieldList::GetField(sal_uInt16 nId)
 {
-	const SwTxtFld* pTxtFld = (*pSrtLst)[ nId ]->GetFld();
+	const SwTxtFld* pTxtFld = (*pSrtLst)[ nId ]->GetTxtFld();
 	ASSERT( pTxtFld, "kein TextFld" );
-	return (SwField*)pTxtFld->GetFld().GetFld();
+	return (SwField*)pTxtFld->GetFmtFld().GetField();
 }
 
 /*--------------------------------------------------------------------
@@ -156,13 +156,13 @@ sal_uInt16 SwInputFieldList::BuildSortLs
 		if( RES_SETEXPFLD == nType || RES_INPUTFLD == nType )
 		{
 			SwIterator<SwFmtFld,SwFieldType> aIter( *pFldType );
-            for( SwFmtFld* pFld = aIter.First(); pFld; pFld = aIter.Next() )
+            for( SwFmtFld* pFmtFld = aIter.First(); pFmtFld; pFmtFld = aIter.Next() )
 			{
-				const SwTxtFld* pTxtFld = pFld->GetTxtFld();
+				const SwTxtFld* pTxtFld = pFmtFld->GetTxtFld();
 
 				//	nur InputFields und interaktive SetExpFlds bearbeiten
 				if( !pTxtFld || ( RES_SETEXPFLD == nType &&
-					!((SwSetExpField*)pFld->GetFld())->GetInputFlag()))
+					!((SwSetExpField*)pFmtFld->GetField())->GetInputFlag()))
 					continue;
 
 				const SwTxtNode& rTxtNode = pTxtFld->GetTxtNode();

Modified: openoffice/branches/ia2/main/sw/source/core/fields/reffld.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/fields/reffld.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/fields/reffld.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/fields/reffld.cxx Sun Sep 29 07:19:52 2013
@@ -318,7 +318,7 @@ void SwGetRefField::UpdateField( const S
                             pTxtNd->GetTxtAttrForCharAt(nStt, RES_TXTATR_FIELD);
 						if( pTxtAttr )
 							nStt = SwGetExpField::GetReferenceTextPos(
-												pTxtAttr->GetFld(), *pDoc );
+												pTxtAttr->GetFmtFld(), *pDoc );
 						else if( nStt + 1 < nEnd )
 							++nStt;
 					}
@@ -764,31 +764,29 @@ SwFieldType* SwGetRefFieldType::Copy() c
 
 void SwGetRefFieldType::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
 {
-	// Update auf alle GetReferenz-Felder
-	if( !pNew && !pOld )
-	{
-		SwIterator<SwFmtFld,SwFieldType> aIter( *this );
-		for( SwFmtFld* pFld = aIter.First(); pFld; pFld = aIter.Next() )
-		{
-			// nur die GetRef-Felder Updaten
-			//JP 3.4.2001: Task 71231 - we need the correct language
-			SwGetRefField* pGRef = (SwGetRefField*)pFld->GetFld();
-			const SwTxtFld* pTFld;
-			if( !pGRef->GetLanguage() &&
-				0 != ( pTFld = pFld->GetTxtFld()) &&
+    // Update auf alle GetReferenz-Felder
+    if( !pNew && !pOld )
+    {
+        SwIterator<SwFmtFld,SwFieldType> aIter( *this );
+        for( SwFmtFld* pFmtFld = aIter.First(); pFmtFld; pFmtFld = aIter.Next() )
+        {
+            // nur die GetRef-Felder Updaten
+            //JP 3.4.2001: Task 71231 - we need the correct language
+            SwGetRefField* pGRef = (SwGetRefField*)pFmtFld->GetField();
+            const SwTxtFld* pTFld;
+            if( !pGRef->GetLanguage() &&
+                0 != ( pTFld = pFmtFld->GetTxtFld()) &&
                 pTFld->GetpTxtNode() )
             {
-				pGRef->SetLanguage( pTFld->GetpTxtNode()->GetLang(
-												*pTFld->GetStart() ) );
+                pGRef->SetLanguage( pTFld->GetpTxtNode()->GetLang(
+                                                *pTFld->GetStart() ) );
             }
 
-            // --> OD 2007-09-06 #i81002#
-            pGRef->UpdateField( pFld->GetTxtFld() );
-            // <--
-		}
-	}
-	// weiter an die Text-Felder, diese "Expandieren" den Text
-	NotifyClients( pOld, pNew );
+            pGRef->UpdateField( pFmtFld->GetTxtFld() );
+        }
+    }
+    // weiter an die Text-Felder, diese "Expandieren" den Text
+    NotifyClients( pOld, pNew );
 }
 
 SwTxtNode* SwGetRefFieldType::FindAnchor( SwDoc* pDoc, const String& rRefMark,
@@ -820,12 +818,12 @@ SwTxtNode* SwGetRefFieldType::FindAnchor
 				nsSwGetSetExpType::GSE_SEQ & ((SwSetExpFieldType*)pFldType)->GetType() )
 			{
 				SwIterator<SwFmtFld,SwFieldType> aIter( *pFldType );
-				for( SwFmtFld* pFld = aIter.First(); pFld; pFld = aIter.Next() )
+				for( SwFmtFld* pFmtFld = aIter.First(); pFmtFld; pFmtFld = aIter.Next() )
 				{
-					if( pFld->GetTxtFld() && nSeqNo ==
-						((SwSetExpField*)pFld->GetFld())->GetSeqNumber() )
+					if( pFmtFld->GetTxtFld() && nSeqNo ==
+						((SwSetExpField*)pFmtFld->GetField())->GetSeqNumber() )
 					{
-						SwTxtFld* pTxtFld = pFld->GetTxtFld();
+						SwTxtFld* pTxtFld = pFmtFld->GetTxtFld();
 						pTxtNd = (SwTxtNode*)pTxtFld->GetpTxtNode();
 						*pStt = *pTxtFld->GetStart();
 						if( pEnd )
@@ -939,7 +937,7 @@ void _RefIdsMap::Check( SwDoc& rDoc, SwD
 					if( pF->GetTxtFld() &&
 						0 != ( pNd = pF->GetTxtFld()->GetpTxtNode() ) &&
 						pNd->GetNodes().IsDocNodes() )
-						aIds.Insert( ((SwSetExpField*)pF->GetFld())->GetSeqNumber() );
+						aIds.Insert( ((SwSetExpField*)pF->GetField())->GetSeqNumber() );
 			}
 			if( 0 != ( pType = rDoc.GetFldType( RES_SETEXPFLD, aName, false ) ))
 			{
@@ -948,7 +946,7 @@ void _RefIdsMap::Check( SwDoc& rDoc, SwD
 					if( pF->GetTxtFld() &&
 						0 != ( pNd = pF->GetTxtFld()->GetpTxtNode() ) &&
 						pNd->GetNodes().IsDocNodes() )
-						aDstIds.Insert( ((SwSetExpField*)pF->GetFld())->GetSeqNumber() );
+						aDstIds.Insert( ((SwSetExpField*)pF->GetField())->GetSeqNumber() );
 			}
 		}
 		else
@@ -996,8 +994,8 @@ void _RefIdsMap::Check( SwDoc& rDoc, SwD
 				    SwIterator<SwFmtFld,SwFieldType> aIter( *pType );
 				    for( SwFmtFld* pF = aIter.First(); pF; pF = aIter.Next() )
 						if( pF->GetTxtFld() && nSeqNo ==
-							((SwSetExpField*)pF->GetFld())->GetSeqNumber() )
-							((SwSetExpField*)pF->GetFld())->SetSeqNumber( n );
+							((SwSetExpField*)pF->GetField())->GetSeqNumber() )
+							((SwSetExpField*)pF->GetField())->SetSeqNumber( n );
 				}
 			}
 			else
@@ -1035,7 +1033,7 @@ void SwGetRefFieldType::MergeWithOtherDo
 		SwIterator<SwFmtFld,SwFieldType> aIter( *this );
 		for( SwFmtFld* pFld = aIter.First(); pFld; pFld = aIter.Next() )
 		{
-			SwGetRefField& rRefFld = *(SwGetRefField*)pFld->GetFld();
+			SwGetRefField& rRefFld = *(SwGetRefField*)pFld->GetField();
 			switch( rRefFld.GetSubType() )
 			{
 			case REF_SEQUENCEFLD:

Modified: openoffice/branches/ia2/main/sw/source/core/fields/tblcalc.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/fields/tblcalc.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/fields/tblcalc.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/fields/tblcalc.cxx Sun Sep 29 07:19:52 2013
@@ -101,7 +101,7 @@ const SwNode* SwTblField::GetNodeOfFormu
 
 	SwIterator<SwFmtFld,SwFieldType> aIter( *GetTyp() );
 	for( SwFmtFld* pFmtFld = aIter.First(); pFmtFld; pFmtFld = aIter.Next() )
-			if( this == pFmtFld->GetFld() )
+			if( this == pFmtFld->GetField() )
 				return (SwTxtNode*)&pFmtFld->GetTxtFld()->GetTxtNode();
 	return 0;
 }

Modified: openoffice/branches/ia2/main/sw/source/core/frmedt/fefly1.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/frmedt/fefly1.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/frmedt/fefly1.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/frmedt/fefly1.cxx Sun Sep 29 07:19:52 2013
@@ -1467,7 +1467,7 @@ Size SwFEShell::RequestObjectResize( con
 			for( sal_uInt16 n = 0, nEnd = pHts->Count(); n < nEnd; ++n )
 				if( RES_TXTATR_FIELD == ( pItem =
 							&(*pHts)[ n ]->GetAttr())->Which() &&
-					TYP_SEQFLD == ((SwFmtFld*)pItem)->GetFld()->GetTypeId() )
+					TYP_SEQFLD == ((SwFmtFld*)pItem)->GetField()->GetTypeId() )
 				{
 					// sequence field found
 					SwFlyFrm* pChgFly = (SwFlyFrm*)pAnchor->GetUpper();

Modified: openoffice/branches/ia2/main/sw/source/core/frmedt/tblsel.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/frmedt/tblsel.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/frmedt/tblsel.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/frmedt/tblsel.cxx Sun Sep 29 07:19:52 2013
@@ -640,7 +640,8 @@ sal_Bool ChkChartSel( const SwNode& rStt
 
 			// alle Zellen der (Teil-)Tabelle zusammen. Dann teste mal ob
 			// all huebsch nebeneinander liegen.
-			size_t n, nCellCnt = 0;
+			size_t n;
+            sal_uInt16 nCellCnt = 0;
             long nYPos = LONG_MAX;
             long nXPos = 0;
             long nHeight = 0;

Modified: openoffice/branches/ia2/main/sw/source/core/inc/docfld.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/inc/docfld.hxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/inc/docfld.hxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/inc/docfld.hxx Sun Sep 29 07:19:52 2013
@@ -86,7 +86,7 @@ public:
 					CNTNT.pTxtFld == rFld.CNTNT.pTxtFld ); }
 	sal_Bool operator<( const _SetGetExpFld& rFld ) const;
 
-	const SwTxtFld* GetFld() const
+	const SwTxtFld* GetTxtFld() const
 		{ return TEXTFIELD == eSetGetExpFldType ? CNTNT.pTxtFld : 0; }
 	const SwTxtTOXMark* GetTOX() const
 		{ return TEXTTOXMARK == eSetGetExpFldType ? CNTNT.pTxtTOX : 0; }

Modified: openoffice/branches/ia2/main/sw/source/core/inc/wrong.hxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/inc/wrong.hxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/inc/wrong.hxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/inc/wrong.hxx Sun Sep 29 07:19:52 2013
@@ -103,10 +103,10 @@ private:
                 }
             }
         }
-        catch(::com::sun::star::container::NoSuchElementException& ex)
+        catch(::com::sun::star::container::NoSuchElementException& )
         {
         }
-        catch(::com::sun::star::uno::RuntimeException& ex)
+        catch(::com::sun::star::uno::RuntimeException& )
         {
         }
 
@@ -137,10 +137,10 @@ private:
                 }
             }
         }
-        catch(::com::sun::star::container::NoSuchElementException& ex)
+        catch(::com::sun::star::container::NoSuchElementException& )
         {
         }
-        catch(::com::sun::star::uno::RuntimeException& ex)
+        catch(::com::sun::star::uno::RuntimeException& )
         {
         }
 

Modified: openoffice/branches/ia2/main/sw/source/core/layout/atrfrm.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/layout/atrfrm.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/layout/atrfrm.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/layout/atrfrm.cxx Sun Sep 29 07:19:52 2013
@@ -2794,39 +2794,35 @@ void SwFlyFrmFmt::MakeFrms()
     case FLY_AT_PAGE:
         {
             sal_uInt16 nPgNum = aAnchorAttr.GetPageNum();
-			SwPageFrm *pPage = (SwPageFrm*)GetDoc()->GetCurrentLayout()->Lower();	//swmod 080218
-            if( !nPgNum && aAnchorAttr.GetCntntAnchor() )
-			{
-				SwCntntNode *pCNd =
-                    aAnchorAttr.GetCntntAnchor()->nNode.GetNode().GetCntntNode();
-				SwIterator<SwFrm,SwCntntNode> aIter( *pCNd );
-                for (SwFrm* pFrm = aIter.First(); pFrm; pFrm = aIter.Next() )
-				{
-						pPage = pFrm->FindPageFrm();
-						if( pPage )
-                        {
-							nPgNum = pPage->GetPhyPageNum();
-                            // OD 24.07.2003 #111032# - update anchor attribute
-                            aAnchorAttr.SetPageNum( nPgNum );
-                            aAnchorAttr.SetAnchor( 0 );
-                            SetFmtAttr( aAnchorAttr );
-                        }
-						break;
-					}
-			}
-			while ( pPage )
-			{
-				if ( pPage->GetPhyPageNum() == nPgNum )
-				{
-                    // --> OD 2005-06-09 #i50432# - adjust synopsis of <PlaceFly(..)>
+            SwPageFrm *pPage = (SwPageFrm*)GetDoc()->GetCurrentLayout()->Lower();	//swmod 080218
+            if( nPgNum == 0 && aAnchorAttr.GetCntntAnchor() )
+            {
+                SwCntntNode *pCNd = aAnchorAttr.GetCntntAnchor()->nNode.GetNode().GetCntntNode();
+                SwIterator<SwFrm,SwCntntNode> aIter( *pCNd );
+                for ( SwFrm* pFrm = aIter.First(); pFrm != NULL; pFrm = aIter.Next() )
+                {
+                    pPage = pFrm->FindPageFrm();
+                    if( pPage )
+                    {
+                        nPgNum = pPage->GetPhyPageNum();
+                        aAnchorAttr.SetPageNum( nPgNum );
+                        aAnchorAttr.SetAnchor( 0 );
+                        SetFmtAttr( aAnchorAttr );
+                        break;
+                    }
+                }
+            }
+            while ( pPage )
+            {
+                if ( pPage->GetPhyPageNum() == nPgNum )
+                {
                     pPage->PlaceFly( 0, this );
-                    // <--
                     break;
-				}
-				pPage = (SwPageFrm*)pPage->GetNext();
-			}
-		}
-		break;
+                }
+                pPage = (SwPageFrm*)pPage->GetNext();
+            }
+        }
+        break;
     default:
         break;
 	}
@@ -2929,18 +2925,21 @@ SwAnchoredObject* SwFlyFrmFmt::GetAnchor
 
 sal_Bool SwFlyFrmFmt::GetInfo( SfxPoolItem& rInfo ) const
 {
-	switch( rInfo.Which() )
-	{
-	case RES_CONTENT_VISIBLE:
-		{
-			((SwPtrMsgPoolItem&)rInfo).pObject = SwIterator<SwFrm,SwFmt>::FirstElement( *this );
-		}
-		return sal_False;
+    sal_Bool bRet = sal_True;
+    switch( rInfo.Which() )
+    {
+    case RES_CONTENT_VISIBLE:
+        {
+            ((SwPtrMsgPoolItem&)rInfo).pObject = SwIterator<SwFrm,SwFmt>::FirstElement( *this );
+        }
+        bRet = sal_False;
+        break;
 
-	default:
-		return SwFrmFmt::GetInfo( rInfo );
-	}
-	return sal_True;
+    default:
+        bRet = SwFrmFmt::GetInfo( rInfo );
+        break;
+    }
+    return bRet;
 }
 
 // --> OD 2009-07-14 #i73249#

Modified: openoffice/branches/ia2/main/sw/source/core/table/swtable.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/table/swtable.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/table/swtable.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/table/swtable.cxx Sun Sep 29 07:19:52 2013
@@ -2593,7 +2593,7 @@ sal_uLong SwTableBox::IsValidNumTxtNd( s
                                 // it inserts hidden variable-set fields at
                                 // the beginning of para in cell, but they
                                 // should not turn cell into text cell
-                                const SwField* pField = pAttr->GetFld().GetFld();
+                                const SwField* pField = pAttr->GetFmtFld().GetField();
                                 if (pField &&
                                     (pField->GetTypeId() == TYP_SETFLD) &&
                                     (0 != (static_cast<SwSetExpField const*>

Modified: openoffice/branches/ia2/main/sw/source/core/text/EnhancedPDFExportHelper.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/text/EnhancedPDFExportHelper.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/text/EnhancedPDFExportHelper.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/text/EnhancedPDFExportHelper.cxx Sun Sep 29 07:19:52 2013
@@ -1460,7 +1460,7 @@ void SwTaggedPDFHelper::BeginInlineStruc
                 const SwField* pFld = 0;
                 if ( pHint && RES_TXTATR_FIELD == pHint->Which() )
                 {
-                    pFld = (SwField*)pHint->GetFld().GetFld();
+                    pFld = (SwField*)pHint->GetFmtFld().GetField();
                     if ( RES_GETREFFLD == pFld->Which() )
                     {
                         nPDFType = vcl::PDFWriter::Link;
@@ -1611,7 +1611,7 @@ void SwEnhancedPDFExportHelper::Enhanced
                             vcl::PDFNote aNote;
 
                             // Use the NumberFormatter to get the date string:
-                            const SwPostItField* pField = (SwPostItField*)pFirst->GetFld();
+                            const SwPostItField* pField = (SwPostItField*)pFirst->GetField();
                             SvNumberFormatter* pNumFormatter = pDoc->GetNumberFormatter();
                             const Date aDateDiff( pField->GetDate() -
                                                  *pNumFormatter->GetNullDate() );
@@ -1851,8 +1851,7 @@ void SwEnhancedPDFExportHelper::Enhanced
                     mrSh.SwCrsrShell::ClearMark();
 
                     // Destination Rectangle
-                    const SwGetRefField* pField =
-                        (SwGetRefField*)pFirst->GetFld();
+                    const SwGetRefField* pField = (SwGetRefField*)pFirst->GetField();
                     const String& rRefName = pField->GetSetRefName();
                     mrSh.GotoRefMark( rRefName, pField->GetSubType(), pField->GetSeqNo() );
                     const SwRect& rDestRect = mrSh.GetCharRect();

Modified: openoffice/branches/ia2/main/sw/source/core/text/atrstck.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/text/atrstck.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/text/atrstck.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/text/atrstck.cxx Sun Sep 29 07:19:52 2013
@@ -121,18 +121,18 @@ const sal_uInt8 StackPos[ static_cast<sa
     35, // RES_CHRATR_OVERLINE,                  // 38
      0, // RES_CHRATR_DUMMY1,                    // 39
      0, // RES_CHRATR_DUMMY2,                    // 40
-	 0, // RES_CHRATR_BIDIRTL
-	 0, // RES_CHRATR_IDCTHINT
-    36, // RES_TXTATR_REFMARK,                   // 41
-    37, // RES_TXTATR_TOXMARK,                   // 42
-    38, // RES_TXTATR_META,                      // 43
-    38, // RES_TXTATR_METAFIELD,                 // 44
-     0, // RES_TXTATR_AUTOFMT,                   // 45
-     0, // RES_TXTATR_INETFMT                    // 46
-     0, // RES_TXTATR_CHARFMT,                   // 47
-    39, // RES_TXTATR_CJK_RUBY,                  // 48
-     0, // RES_TXTATR_UNKNOWN_CONTAINER,         // 49
-     0, // RES_TXTATR_DUMMY5                     // 50
+	 0, // RES_CHRATR_BIDIRTL                    // 41
+	 0, // RES_CHRATR_IDCTHINT                   // 42
+    36, // RES_TXTATR_REFMARK,                   // 43
+    37, // RES_TXTATR_TOXMARK,                   // 44
+    38, // RES_TXTATR_META,                      // 45
+    38, // RES_TXTATR_METAFIELD,                 // 46
+     0, // RES_TXTATR_AUTOFMT,                   // 47
+     0, // RES_TXTATR_INETFMT                    // 48
+     0, // RES_TXTATR_CHARFMT,                   // 49
+    39, // RES_TXTATR_CJK_RUBY,                  // 50
+     0, // RES_TXTATR_UNKNOWN_CONTAINER,         // 51
+     0, // RES_TXTATR_DUMMY5                     // 52
 };
 
 /*************************************************************************

Modified: openoffice/branches/ia2/main/sw/source/core/text/itratr.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/text/itratr.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/text/itratr.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/text/itratr.cxx Sun Sep 29 07:19:52 2013
@@ -772,7 +772,7 @@ void SwTxtNode::GetMinMaxSize( sal_uLong
 					}
 					case RES_TXTATR_FIELD :
 					{
-						SwField *pFld = (SwField*)pHint->GetFld().GetFld();
+						SwField *pFld = (SwField*)pHint->GetFmtFld().GetField();
                         const String aTxt = pFld->ExpandField(true);
 						if( lcl_MinMaxString( aArg, aIter.GetFnt(),	aTxt, 0,
 							aTxt.Len() ) )
@@ -975,7 +975,7 @@ sal_uInt16 SwTxtNode::GetScalingOfSelect
 				}
 				case RES_TXTATR_FIELD :
 				{
-					SwField *pFld = (SwField*)pHint->GetFld().GetFld();
+					SwField *pFld = (SwField*)pHint->GetFmtFld().GetField();
                     String const aTxt = pFld->ExpandField(true);
                     SwDrawTextInfo aDrawInf( pSh, *pOut, 0, aTxt, 0, aTxt.Len() );
 

Modified: openoffice/branches/ia2/main/sw/source/core/text/txtfld.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/text/txtfld.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/text/txtfld.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/text/txtfld.cxx Sun Sep 29 07:19:52 2013
@@ -92,7 +92,7 @@ SwExpandPortion *SwTxtFormatter::NewFldP
 {
 	SwExpandPortion *pRet = 0;
 	SwFrm *pFrame = (SwFrm*)pFrm;
-	SwField *pFld = (SwField*)pHint->GetFld().GetFld();
+	SwField *pFld = (SwField*)pHint->GetFmtFld().GetField();
 	const sal_Bool bName = rInf.GetOpt().IsFldName();
 
 	SwCharFmt* pChFmt = 0;
@@ -108,7 +108,7 @@ SwExpandPortion *SwTxtFormatter::NewFldP
 		pFld->SetLanguage( GetFnt()->GetLanguage() );
 		// let the visual note know about its new language
 		if (pFld->GetTyp()->Which()==RES_POSTITFLD)
-			const_cast<SwFmtFld*> (&pHint->GetFld())->Broadcast( SwFmtFldHint( &pHint->GetFld(), SWFMTFLD_LANGUAGE ) );		
+			const_cast<SwFmtFld*> (&pHint->GetFmtFld())->Broadcast( SwFmtFldHint( &pHint->GetFmtFld(), SWFMTFLD_LANGUAGE ) );		
 	}
 
 	ViewShell *pSh = rInf.GetVsh();

Modified: openoffice/branches/ia2/main/sw/source/core/tox/txmsrt.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/tox/txmsrt.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/tox/txmsrt.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/tox/txmsrt.cxx Sun Sep 29 07:19:52 2013
@@ -845,26 +845,25 @@ SwTOXAuthority::SwTOXAuthority( const Sw
 
 sal_uInt16 SwTOXAuthority::GetLevel() const
 {
-	String sText(((SwAuthorityField*)m_rField.GetFld())->
-						GetFieldText(AUTH_FIELD_AUTHORITY_TYPE));
+    String sText(((SwAuthorityField*)m_rField.GetField())->GetFieldText(AUTH_FIELD_AUTHORITY_TYPE));
     //#i18655# the level '0' is the heading level therefor the values are incremented here
     sal_uInt16 nRet = 1;
-	if( pTOXIntl->IsNumeric( sText ) )
-	{
-		nRet = (sal_uInt16)sText.ToInt32();
-		nRet++;
-	}
+    if( pTOXIntl->IsNumeric( sText ) )
+    {
+        nRet = (sal_uInt16)sText.ToInt32();
+        nRet++;
+    }
     //illegal values are also set to 'ARTICLE' as non-numeric values are
     if(nRet > AUTH_TYPE_END)
         nRet = 1;
-	return nRet;
+    return nRet;
 }
 /*-- 15.09.99 14:28:08---------------------------------------------------
 
   -----------------------------------------------------------------------*/
 static String lcl_GetText(SwFmtFld const& rField)
 {
-    return rField.GetFld()->ExpandField(true);
+    return rField.GetField()->ExpandField(true);
 }
 
 void SwTOXAuthority::GetText_Impl( String& rTxt, String& ) const
@@ -878,7 +877,7 @@ void SwTOXAuthority::GetText_Impl( Strin
 void 	SwTOXAuthority::FillText( SwTxtNode& rNd,
 						const SwIndex& rInsPos, sal_uInt16 nAuthField ) const
 {
-	SwAuthorityField* pField = (SwAuthorityField*)m_rField.GetFld();
+	SwAuthorityField* pField = (SwAuthorityField*)m_rField.GetField();
 	String sText;
 	if(AUTH_FIELD_IDENTIFIER == nAuthField)
 	{
@@ -907,29 +906,29 @@ void 	SwTOXAuthority::FillText( SwTxtNod
 sal_Bool 	SwTOXAuthority::operator==( const SwTOXSortTabBase& rCmp)
 {
 	return nType == rCmp.nType &&
-			((SwAuthorityField*)m_rField.GetFld())->GetHandle() ==
-				((SwAuthorityField*)((SwTOXAuthority&)rCmp).m_rField.GetFld())->GetHandle();
+			((SwAuthorityField*)m_rField.GetField())->GetHandle() ==
+				((SwAuthorityField*)((SwTOXAuthority&)rCmp).m_rField.GetField())->GetHandle();
 }
 /* -----------------21.10.99 09:52-------------------
 
  --------------------------------------------------*/
 sal_Bool 	SwTOXAuthority::operator<( const SwTOXSortTabBase& rBase)
 {
-	sal_Bool bRet = sal_False;
-	SwAuthorityField* pField = (SwAuthorityField*)m_rField.GetFld();
-	SwAuthorityFieldType* pType = (SwAuthorityFieldType*)
-												pField->GetTyp();
-	if(pType->IsSortByDocument())
-		bRet = SwTOXSortTabBase::operator<(rBase);
-	else
-	{
-		SwAuthorityField* pCmpField = (SwAuthorityField*)
-						((SwTOXAuthority&)rBase).m_rField.GetFld();
+    sal_Bool bRet = sal_False;
+    SwAuthorityField* pField = (SwAuthorityField*)m_rField.GetField();
+    SwAuthorityFieldType* pType = (SwAuthorityFieldType*)
+                                                pField->GetTyp();
+    if(pType->IsSortByDocument())
+        bRet = SwTOXSortTabBase::operator<(rBase);
+    else
+    {
+        SwAuthorityField* pCmpField = 
+            (SwAuthorityField*)((SwTOXAuthority&)rBase).m_rField.GetField();
 
 
-		for(sal_uInt16 i = 0; i < pType->GetSortKeyCount(); i++)
-		{
-			const SwTOXSortKey*	pKey = pType->GetSortKey(i);
+        for(sal_uInt16 i = 0; i < pType->GetSortKeyCount(); i++)
+        {
+            const SwTOXSortKey*	pKey = pType->GetSortKey(i);
             String sMyTxt = pField->GetFieldText(pKey->eField);
             String sMyTxtReading;
             String sOtherTxt = pCmpField->GetFieldText(pKey->eField);
@@ -939,11 +938,11 @@ sal_Bool 	SwTOXAuthority::operator<( con
                                                  sOtherTxt, sOtherTxtReading, rBase.GetLocale() );
 
             if( nComp )
-			{
-				bRet = (-1 == nComp) == pKey->bSortAscending;
-				break;
-			}
-		}
-	}
-	return bRet;
+            {
+                bRet = (-1 == nComp) == pKey->bSortAscending;
+                break;
+            }
+        }
+    }
+    return bRet;
 }

Modified: openoffice/branches/ia2/main/sw/source/core/txtnode/atrfld.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/txtnode/atrfld.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/txtnode/atrfld.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/txtnode/atrfld.cxx Sun Sep 29 07:19:52 2013
@@ -53,17 +53,20 @@ TYPEINIT1(SwFmtFldHint, SfxHint);
 
 	// Konstruktor fuers Default vom Attribut-Pool
 SwFmtFld::SwFmtFld()
-	: SfxPoolItem( RES_TXTATR_FIELD ),
-	SwClient( 0 ),
-	pField( 0 ),
-	pTxtAttr( 0 )
+    : SfxPoolItem( RES_TXTATR_FIELD )
+    , SwClient( 0 )
+    , SfxBroadcaster()
+    , pField( 0 )
+    , pTxtAttr( 0 )
 {
 }
 
 SwFmtFld::SwFmtFld( const SwField &rFld )
-	: SfxPoolItem( RES_TXTATR_FIELD ),
-	SwClient( rFld.GetTyp() ),
-	pTxtAttr( 0 )
+    : SfxPoolItem( RES_TXTATR_FIELD )
+    , SwClient( rFld.GetTyp() )
+    , SfxBroadcaster()
+    , pField( 0 )
+    , pTxtAttr( 0 )
 {
     pField = rFld.CopyField();
 }
@@ -73,14 +76,16 @@ SwFmtFld::SwFmtFld( const SwField &rFld 
 // full pool range, all items need to be clonable. Thus, this one needed to be
 // corrected
 SwFmtFld::SwFmtFld( const SwFmtFld& rAttr )
-    : SfxPoolItem( RES_TXTATR_FIELD ), SwClient(), SfxBroadcaster(),
-    pField( 0 ),
-    pTxtAttr( 0 )
+    : SfxPoolItem( RES_TXTATR_FIELD )
+    , SwClient()
+    , SfxBroadcaster()
+    , pField( 0 )
+    , pTxtAttr( 0 )
 {
-    if(rAttr.GetFld())
-	{
-        rAttr.GetFld()->GetTyp()->Add(this);
-        pField = rAttr.GetFld()->CopyField();
+    if(rAttr.GetField())
+    {
+        rAttr.GetField()->GetTyp()->Add(this);
+        pField = rAttr.GetField()->CopyField();
     }
 }
 
@@ -141,13 +146,10 @@ void SwFmtFld::SetFld(SwField * _pField)
 int SwFmtFld::operator==( const SfxPoolItem& rAttr ) const
 {
 	ASSERT( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
-    // OD 2004-05-14 #i29146# - correction: check, if <pField> and
-    // <((SwFmtFld&)rAttr).GetFld()> are set.
-    // OD 2004-05-14 #i29146# - items are equal, if both fields aren't set.
-    return ( pField && ((SwFmtFld&)rAttr).GetFld() &&
-             pField->GetTyp() == ((SwFmtFld&)rAttr).GetFld()->GetTyp() &&
-             pField->GetFormat() == ((SwFmtFld&)rAttr).GetFld()->GetFormat() ) ||
-           ( !pField && !((SwFmtFld&)rAttr).GetFld() );
+    return ( ( pField && ((SwFmtFld&)rAttr).GetField()
+               && pField->GetTyp() == ((SwFmtFld&)rAttr).GetField()->GetTyp()
+               && pField->GetFormat() == ((SwFmtFld&)rAttr).GetField()->GetFormat() ) )
+             || ( !pField && !((SwFmtFld&)rAttr).GetField() );
 }
 
 SfxPoolItem* SwFmtFld::Clone( SfxItemPool* ) const
@@ -170,7 +172,7 @@ void SwFmtFld::SwClientNotify( const SwM
         pPaM->GetPoint()->nNode = rTxtNode;
         pPaM->GetPoint()->nContent.Assign( (SwTxtNode*)&rTxtNode, *pTxtAttr->GetStart() );
 
-        String const aEntry( GetFld()->ExpandField( pDoc->IsClipBoard() ) );
+        String const aEntry( GetField()->ExpandField( pDoc->IsClipBoard() ) );
         pPaM->SetMark();
         pPaM->Move( fnMoveForward );
         pDoc->DeleteRange( *pPaM );
@@ -200,11 +202,11 @@ void SwFmtFld::Modify( const SfxPoolItem
 				return;
 		case RES_REFMARKFLD_UPDATE:
 				// GetReferenz-Felder aktualisieren
-				if( RES_GETREFFLD == GetFld()->GetTyp()->Which() )
+				if( RES_GETREFFLD == GetField()->GetTyp()->Which() )
                 {
                     // --> OD 2007-09-06 #i81002#
 //                    ((SwGetRefField*)GetFld())->UpdateField();
-                    dynamic_cast<SwGetRefField*>(GetFld())->UpdateField( pTxtAttr );
+                    dynamic_cast<SwGetRefField*>(GetField())->UpdateField( pTxtAttr );
                     // <--
                 }
 				break;
@@ -222,7 +224,7 @@ void SwFmtFld::Modify( const SfxPoolItem
 		}
 	}
 
-	switch (GetFld()->GetTyp()->Which())
+	switch (GetField()->GetTyp()->Which())
 	{
 		case RES_HIDDENPARAFLD:
 			if( !pOld || RES_HIDDENPARA_PRINT != pOld->Which() )
@@ -235,9 +237,9 @@ void SwFmtFld::Modify( const SfxPoolItem
 			return;
 	}
 
-	if( RES_USERFLD == GetFld()->GetTyp()->Which() )
+	if( RES_USERFLD == GetField()->GetTyp()->Which() )
 	{
-		SwUserFieldType* pType = (SwUserFieldType*)GetFld()->GetTyp();
+		SwUserFieldType* pType = (SwUserFieldType*)GetField()->GetTyp();
 		if(!pType->IsValid())
 		{
 			SwCalc aCalc( *pTxtNd->GetDoc() );
@@ -286,7 +288,7 @@ sal_Bool SwFmtFld::IsProtect() const
 
 SwTxtFld::SwTxtFld(SwFmtFld & rAttr, xub_StrLen const nStartPos)
     : SwTxtAttr( rAttr, nStartPos )
-    , m_aExpand( rAttr.GetFld()->ExpandField(true) )
+    , m_aExpand( rAttr.GetField()->ExpandField(true) )
     , m_pTxtNode( 0 )
 {
     rAttr.pTxtAttr = this;
@@ -314,41 +316,40 @@ SwTxtFld::~SwTxtFld( )
 
 void SwTxtFld::Expand() const
 {
-	// Wenn das expandierte Feld sich nicht veraendert hat, wird returnt
+    // Wenn das expandierte Feld sich nicht veraendert hat, wird returnt
     ASSERT( m_pTxtNode, "SwTxtFld: where is my TxtNode?" );
 
-	const SwField* pFld = GetFld().GetFld();
-    XubString aNewExpand(
-        pFld->ExpandField(m_pTxtNode->GetDoc()->IsClipBoard()) );
+    const SwField* pFld = GetFmtFld().GetField();
+    XubString aNewExpand( pFld->ExpandField(m_pTxtNode->GetDoc()->IsClipBoard()) );
 
     if( aNewExpand == m_aExpand )
-	{
-		// Bei Seitennummernfeldern
-		const sal_uInt16 nWhich = pFld->GetTyp()->Which();
-		if( RES_CHAPTERFLD != nWhich && RES_PAGENUMBERFLD != nWhich &&
-			RES_REFPAGEGETFLD != nWhich &&
+    {
+        // Bei Seitennummernfeldern
+        const sal_uInt16 nWhich = pFld->GetTyp()->Which();
+        if( RES_CHAPTERFLD != nWhich && RES_PAGENUMBERFLD != nWhich &&
+            RES_REFPAGEGETFLD != nWhich &&
             // --> FME 2005-05-23 #122919# Page count fields to not use aExpand
             // during formatting, therefore an invalidation of the text frame
             // has to be triggered even if aNewExpand == aExpand:
             ( RES_DOCSTATFLD != nWhich || DS_PAGE != static_cast<const SwDocStatField*>(pFld)->GetSubType() ) &&
             // <--
             ( RES_GETEXPFLD != nWhich || ((SwGetExpField*)pFld)->IsInBodyTxt() ) )
-		{
-			// BP: das muesste man noch optimieren!
-			//JP 12.06.97: stimmt, man sollte auf jedenfall eine Status-
-			//				aenderung an die Frames posten
+        {
+            // BP: das muesste man noch optimieren!
+            //JP 12.06.97: stimmt, man sollte auf jedenfall eine Status-
+            //				aenderung an die Frames posten
             if( m_pTxtNode->CalcHiddenParaField() )
             {
                 m_pTxtNode->ModifyNotification( 0, 0 );
             }
-			return;
-		}
-	}
+            return;
+        }
+    }
 
     m_aExpand = aNewExpand;
 
     // 0, this for formatting
-    m_pTxtNode->ModifyNotification( 0, const_cast<SwFmtFld*>( &GetFld() ) );
+    m_pTxtNode->ModifyNotification( 0, const_cast<SwFmtFld*>( &GetFmtFld() ) );
 }
 
 /*************************************************************************
@@ -363,51 +364,51 @@ void SwTxtFld::CopyFld( SwTxtFld *pDest 
     IDocumentFieldsAccess* pIDFA = m_pTxtNode->getIDocumentFieldsAccess();
     IDocumentFieldsAccess* pDestIDFA = pDest->m_pTxtNode->getIDocumentFieldsAccess();
 
-	SwFmtFld& rFmtFld = (SwFmtFld&)pDest->GetFld();
-	const sal_uInt16 nFldWhich = rFmtFld.GetFld()->GetTyp()->Which();
+    SwFmtFld& rFmtFld = (SwFmtFld&)pDest->GetFmtFld();
+    const sal_uInt16 nFldWhich = rFmtFld.GetField()->GetTyp()->Which();
 
     if( pIDFA != pDestIDFA )
-	{
-		// Die Hints stehen in unterschiedlichen Dokumenten,
-		// der Feldtyp muss im neuen Dokument angemeldet werden.
-		// Z.B: Kopieren ins ClipBoard.
-		SwFieldType* pFldType;
-		if( nFldWhich != RES_DBFLD && nFldWhich != RES_USERFLD &&
-			nFldWhich != RES_SETEXPFLD && nFldWhich != RES_DDEFLD &&
-			RES_AUTHORITY != nFldWhich )
+    {
+        // Die Hints stehen in unterschiedlichen Dokumenten,
+        // der Feldtyp muss im neuen Dokument angemeldet werden.
+        // Z.B: Kopieren ins ClipBoard.
+        SwFieldType* pFldType;
+        if( nFldWhich != RES_DBFLD && nFldWhich != RES_USERFLD &&
+            nFldWhich != RES_SETEXPFLD && nFldWhich != RES_DDEFLD &&
+            RES_AUTHORITY != nFldWhich )
             pFldType = pDestIDFA->GetSysFldType( nFldWhich );
-		else
-            pFldType = pDestIDFA->InsertFldType( *rFmtFld.GetFld()->GetTyp() );
-
-		// Sonderbehandlung fuer DDE-Felder
-		if( RES_DDEFLD == nFldWhich )
-		{
-			if( rFmtFld.GetTxtFld() )
-				((SwDDEFieldType*)rFmtFld.GetFld()->GetTyp())->DecRefCnt();
-			((SwDDEFieldType*)pFldType)->IncRefCnt();
-		}
+        else
+            pFldType = pDestIDFA->InsertFldType( *rFmtFld.GetField()->GetTyp() );
 
-		ASSERT( pFldType, "unbekannter FieldType" );
-		pFldType->Add( &rFmtFld );          // ummelden
-		rFmtFld.GetFld()->ChgTyp( pFldType );
-	}
+        // Sonderbehandlung fuer DDE-Felder
+        if( RES_DDEFLD == nFldWhich )
+        {
+            if( rFmtFld.GetTxtFld() )
+                ((SwDDEFieldType*)rFmtFld.GetField()->GetTyp())->DecRefCnt();
+            ((SwDDEFieldType*)pFldType)->IncRefCnt();
+        }
+
+        ASSERT( pFldType, "unbekannter FieldType" );
+        pFldType->Add( &rFmtFld );          // ummelden
+        rFmtFld.GetField()->ChgTyp( pFldType );
+    }
 
-	// Expressionfelder Updaten
-	if( nFldWhich == RES_SETEXPFLD || nFldWhich == RES_GETEXPFLD ||
-		nFldWhich == RES_HIDDENTXTFLD )
-	{
-		SwTxtFld* pFld = (SwTxtFld*)this;
+    // Expressionfelder Updaten
+    if( nFldWhich == RES_SETEXPFLD || nFldWhich == RES_GETEXPFLD ||
+        nFldWhich == RES_HIDDENTXTFLD )
+    {
+        SwTxtFld* pFld = (SwTxtFld*)this;
         pDestIDFA->UpdateExpFlds( pFld, true );
-	}
-	// Tabellenfelder auf externe Darstellung
-	else if( RES_TABLEFLD == nFldWhich &&
-		((SwTblField*)rFmtFld.GetFld())->IsIntrnlName() )
-	{
-		// erzeuge aus der internen (fuer CORE) die externe (fuer UI) Formel
+    }
+    // Tabellenfelder auf externe Darstellung
+    else if( RES_TABLEFLD == nFldWhich &&
+        ((SwTblField*)rFmtFld.GetField())->IsIntrnlName() )
+    {
+        // erzeuge aus der internen (fuer CORE) die externe (fuer UI) Formel
         const SwTableNode* pTblNd = m_pTxtNode->FindTableNode();
-		if( pTblNd )		// steht in einer Tabelle
-			((SwTblField*)rFmtFld.GetFld())->PtrToBoxNm( &pTblNd->GetTable() );
-	}
+        if( pTblNd )		// steht in einer Tabelle
+            ((SwTblField*)rFmtFld.GetField())->PtrToBoxNm( &pTblNd->GetTable() );
+    }
 }
 
 /* -----------------26.06.2003 13:54-----------------

Modified: openoffice/branches/ia2/main/sw/source/core/txtnode/ndtxt.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/ia2/main/sw/source/core/txtnode/ndtxt.cxx?rev=1527279&r1=1527278&r2=1527279&view=diff
==============================================================================
--- openoffice/branches/ia2/main/sw/source/core/txtnode/ndtxt.cxx (original)
+++ openoffice/branches/ia2/main/sw/source/core/txtnode/ndtxt.cxx Sun Sep 29 07:19:52 2013
@@ -1313,31 +1313,29 @@ void lcl_CopyHint( const sal_uInt16 nWhi
 		// TabellenFormel muessen relativ kopiert werden.
 		case RES_TXTATR_FIELD :
 			{
-				const SwFmtFld& rFld = pHt->GetFld();
+				const SwFmtFld& rFld = pHt->GetFmtFld();
 				if( pOtherDoc )
                 {
                     static_cast<const SwTxtFld*>(pHt)->CopyFld(
                         static_cast<SwTxtFld*>(pNewHt) );
                 }
 
-				// Tabellenformel ??
-				if( RES_TABLEFLD == rFld.GetFld()->GetTyp()->Which()
-                    && static_cast<const SwTblField*>(rFld.GetFld())->IsIntrnlName())
-				{
-					// wandel die interne in eine externe Formel um
+                // Tabellenformel ??
+                if( RES_TABLEFLD == rFld.GetField()->GetTyp()->Which()
+                    && static_cast<const SwTblField*>(rFld.GetField())->IsIntrnlName())
+                {
+                    // wandel die interne in eine externe Formel um
                     const SwTableNode* const pDstTblNd =
-                        static_cast<const SwTxtFld*>(pHt)->
-											GetTxtNode().FindTableNode();
-					if( pDstTblNd )
-					{
+                        static_cast<const SwTxtFld*>(pHt)->GetTxtNode().FindTableNode();
+                    if( pDstTblNd )
+                    {
                         SwTblField* const pTblFld = const_cast<SwTblField*>(
-                            static_cast<const SwTblField*>(
-                                pNewHt->GetFld().GetFld()));
-						pTblFld->PtrToBoxNm( &pDstTblNd->GetTable() );
-					}
-				}
-			}
-			break;
+                            static_cast<const SwTblField*>(pNewHt->GetFmtFld().GetField()));
+                        pTblFld->PtrToBoxNm( &pDstTblNd->GetTable() );
+                    }
+                }
+            }
+            break;
 
 		case RES_TXTATR_TOXMARK :
 			if( pOtherDoc && pDest && pDest->GetpSwpHints()
@@ -3041,8 +3039,7 @@ void SwTxtNode::Replace0xFF( XubString& 
 						if( bExpandFlds )
 						{
                             const XubString aExpand(
-                                static_cast<SwTxtFld const*>(pAttr)->GetFld()
-                                    .GetFld()->ExpandField(true));
+                                static_cast<SwTxtFld const*>(pAttr)->GetFmtFld().GetField()->ExpandField(true));
 							rTxt.Insert( aExpand, nPos );
 							nPos = nPos + aExpand.Len();
 							nEndPos = nEndPos + aExpand.Len();
@@ -3190,8 +3187,7 @@ sal_Bool SwTxtNode::GetExpandTxt( SwTxtN
 				case RES_TXTATR_FIELD:
 					{
                         XubString const aExpand(
-                            static_cast<SwTxtFld const*>(pHt)->GetFld().GetFld()
-                                ->ExpandField(true));
+                            static_cast<SwTxtFld const*>(pHt)->GetFmtFld().GetField()->ExpandField(true) );
 						if( aExpand.Len() )
 						{
 							aDestIdx++;		// dahinter einfuegen;
@@ -3288,8 +3284,7 @@ const ModelToViewHelper::ConversionMap*
         if ( RES_TXTATR_FIELD == pAttr->Which() )
         {
             const XubString aExpand(
-                static_cast<SwTxtFld const*>(pAttr)->GetFld().GetFld()
-                    ->ExpandField(true));
+                static_cast<SwTxtFld const*>(pAttr)->GetFmtFld().GetField()->ExpandField(true));
             if ( aExpand.Len() > 0 )
             {
                 const xub_StrLen nFieldPos = *pAttr->GetStart();
@@ -5083,9 +5078,9 @@ bool SwTxtNode::HasPageNumberField()
     xub_StrLen nEnd = Len();
     for(xub_StrLen nStart=0;nStart<nEnd;nStart++)
     {
-        SwTxtFld* pFld = GetTxtFld(nStart);
+        const SwTxtFld* pFld = GetTxtFld(nStart);
         const SwField* pSwField = pFld
-            ? pFld->GetFld().GetFld()
+            ? pFld->GetFmtFld().GetField()
             : NULL;
         const SwFieldType* pType = pSwField
             ? pSwField->GetTyp()