diff options
author | Mathias Bauer <mba@openoffice.org> | 2011-02-09 09:49:44 +0100 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2011-02-09 09:49:44 +0100 |
commit | 53b8f0865ff2e59cb71eaf4c1bdbc829238fde6f (patch) | |
tree | 31528d76013d09428fad98a3dbc6265345dbbeb9 /sw/inc/docufld.hxx | |
parent | e22a1e2f5c5ed74c22849c9b5bb59dd8f47bffbc (diff) | |
parent | 9730661364792059168a06bfbaacf47fc8daf53c (diff) |
CWS swlayoutrefactoring: resync to m100
Diffstat (limited to 'sw/inc/docufld.hxx')
-rw-r--r-- | sw/inc/docufld.hxx | 184 |
1 files changed, 96 insertions, 88 deletions
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx index a4343b803756..70dbd5c0576e 100644 --- a/sw/inc/docufld.hxx +++ b/sw/inc/docufld.hxx @@ -150,15 +150,15 @@ enum SwJumpEditFormat class SwPageNumberFieldType : public SwFieldType { sal_Int16 nNumberingType; - USHORT nNum, nMax; - BOOL bVirtuell; + sal_uInt16 nNum, nMax; + sal_Bool bVirtuell; public: SwPageNumberFieldType(); String& Expand( sal_uInt32 nFmt, short nOff, const String&, String& rRet ) const; - void ChangeExpansion( SwDoc* pDoc, USHORT nNum, USHORT nMax, - BOOL bVirtPageNum, const sal_Int16* pNumFmt = 0 ); + void ChangeExpansion( SwDoc* pDoc, sal_uInt16 nNum, sal_uInt16 nMax, + sal_Bool bVirtPageNum, const sal_Int16* pNumFmt = 0 ); virtual SwFieldType* Copy() const; }; @@ -169,11 +169,11 @@ public: class SW_DLLPUBLIC SwPageNumberField : public SwField { String sUserStr; - USHORT nSubType; + sal_uInt16 nSubType; short nOffset; public: - SwPageNumberField(SwPageNumberFieldType*, USHORT nSub = PG_RANDOM, + SwPageNumberField(SwPageNumberFieldType*, sal_uInt16 nSub = PG_RANDOM, sal_uInt32 nFmt = 0, short nOff = 0); virtual String Expand() const; @@ -182,10 +182,10 @@ public: virtual String GetPar2() const; virtual void SetPar2(const String& rStr); - virtual USHORT GetSubType() const; - // virtual void SetSubType(USHORT nSub); // OM: entfernt, da unbenoetigt und gefaehrlich - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_uInt16 GetSubType() const; + // virtual void SetSubType(sal_uInt16 nSub); // OM: entfernt, da unbenoetigt und gefaehrlich + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); const String& GetUserString() const { return sUserStr; } void SetUserString( const String& rS ) { sUserStr = rS; } @@ -200,7 +200,7 @@ class SwAuthorFieldType : public SwFieldType public: SwAuthorFieldType(); - String Expand(ULONG) const; + String Expand(sal_uLong) const; virtual SwFieldType* Copy() const; }; @@ -221,8 +221,8 @@ public: inline void SetExpansion(const String& rStr) { aContent = rStr; } inline const String& GetContent() const { return aContent; } - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; /*-------------------------------------------------------------------- @@ -235,7 +235,7 @@ class SwFileNameFieldType : public SwFieldType public: SwFileNameFieldType(SwDoc*); - String Expand(ULONG) const; + String Expand(sal_uLong) const; virtual SwFieldType* Copy() const; }; @@ -256,8 +256,8 @@ public: inline void SetExpansion(const String& rStr) { aContent = rStr; } inline const String& GetContent() const { return aContent; } - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; /*-------------------------------------------------------------------- @@ -270,7 +270,7 @@ class SwTemplNameFieldType : public SwFieldType public: SwTemplNameFieldType(SwDoc*); - String Expand(ULONG) const; + String Expand(sal_uLong) const; virtual SwFieldType* Copy() const; }; @@ -285,8 +285,8 @@ public: virtual String Expand() const; virtual SwField* Copy() const; - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; @@ -301,7 +301,7 @@ class SwDocStatFieldType : public SwFieldType public: SwDocStatFieldType(SwDoc*); - String Expand(USHORT nSubType, sal_uInt32 nFmt) const; + String Expand(sal_uInt16 nSubType, sal_uInt32 nFmt) const; virtual SwFieldType* Copy() const; inline void SetNumFormat( sal_Int16 eFmt ) { nNumberingType = eFmt; } @@ -313,21 +313,21 @@ public: class SW_DLLPUBLIC SwDocStatField : public SwField { - USHORT nSubType; + sal_uInt16 nSubType; public: SwDocStatField( SwDocStatFieldType*, - USHORT nSubType = 0, sal_uInt32 nFmt = 0); + sal_uInt16 nSubType = 0, sal_uInt32 nFmt = 0); void ChangeExpansion( const SwFrm* pFrm ); virtual String Expand() const; virtual SwField* Copy() const; - virtual USHORT GetSubType() const; - virtual void SetSubType(USHORT nSub); - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_uInt16 GetSubType() const; + virtual void SetSubType(sal_uInt16 nSub); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; /*-------------------------------------------------------------------- @@ -336,14 +336,14 @@ public: class SwHiddenTxtFieldType : public SwFieldType { - BOOL bHidden; + sal_Bool bHidden; public: - SwHiddenTxtFieldType(BOOL bSetHidden = TRUE); + SwHiddenTxtFieldType(sal_Bool bSetHidden = sal_True); virtual SwFieldType* Copy() const; - void SetHiddenFlag( BOOL bSetHidden = TRUE ); - inline BOOL GetHiddenFlag() const { return bHidden; } + void SetHiddenFlag( sal_Bool bSetHidden = sal_True ); + inline sal_Bool GetHiddenFlag() const { return bHidden; } }; /*-------------------------------------------------------------------- @@ -352,39 +352,39 @@ public: class SwHiddenTxtField : public SwField { - String aTRUETxt; // Text wenn Bedingung TRUE + String aTRUETxt; // Text wenn Bedingung sal_True String aFALSETxt; // Wenn Bedingung falsch String aContent; // Ausgewerteter DB-Text String aCond; // Bedingung - USHORT nSubType; + sal_uInt16 nSubType; - BOOL bCanToggle : 1; // kann das Feld einzeln getoggelt werden? - BOOL bIsHidden : 1; // ist es nicht sichtbar? - BOOL bValid : 1; // DB-Feld evaluiert? + sal_Bool bCanToggle : 1; // kann das Feld einzeln getoggelt werden? + sal_Bool bIsHidden : 1; // ist es nicht sichtbar? + sal_Bool bValid : 1; // DB-Feld evaluiert? virtual String Expand() const; virtual SwField* Copy() const; public: SwHiddenTxtField( SwHiddenTxtFieldType*, - BOOL bConditional, + sal_Bool bConditional, const String& rCond, const String& rTxt, - BOOL bHidden = FALSE, - USHORT nSubType = TYP_HIDDENTXTFLD); + sal_Bool bHidden = sal_False, + sal_uInt16 nSubType = TYP_HIDDENTXTFLD); SwHiddenTxtField( SwHiddenTxtFieldType*, const String& rCond, const String& rTrue, const String& rFalse, - USHORT nSubType = TYP_HIDDENTXTFLD); + sal_uInt16 nSubType = TYP_HIDDENTXTFLD); virtual String GetFieldName() const; void Evaluate(SwDoc*); - inline void SetValue(BOOL bHidden) { bIsHidden = bHidden; } + inline void SetValue(sal_Bool bHidden) { bIsHidden = bHidden; } String GetColumnName(const String& rName); String GetDBName(const String& rName, SwDoc *pDoc); @@ -397,10 +397,10 @@ public: virtual String GetPar2() const; - virtual USHORT GetSubType() const; - // virtual void SetSubType(USHORT nSub); // OM: entfernt, da unbenoetigt und gefaehrlich - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_uInt16 GetSubType() const; + // virtual void SetSubType(sal_uInt16 nSub); // OM: entfernt, da unbenoetigt und gefaehrlich + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; /*-------------------------------------------------------------------- @@ -422,7 +422,7 @@ public: class SwHiddenParaField : public SwField { String aCond; - BOOL bIsHidden:1; + sal_Bool bIsHidden:1; public: // Direkte Eingabe alten Wert loeschen SwHiddenParaField(SwHiddenParaFieldType*, const String& rCond); @@ -430,14 +430,14 @@ public: virtual String Expand() const; virtual SwField* Copy() const; - void SetHidden(BOOL bHidden) { bIsHidden = bHidden; } - BOOL IsHidden() const { return bIsHidden; } + void SetHidden(sal_Bool bHidden) { bIsHidden = bHidden; } + sal_Bool IsHidden() const { return bIsHidden; } // Bedingung erfragen/setzen virtual const String& GetPar1() const; virtual void SetPar1(const String& rStr); - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; /*-------------------------------------------------------------------- @@ -462,7 +462,7 @@ class SW_DLLPUBLIC SwMacroField : public SwField { String aMacro; String aText; - BOOL bIsScriptURL; + sal_Bool bIsScriptURL; virtual String Expand() const; virtual SwField* Copy() const; @@ -486,14 +486,14 @@ public: // Macrotext virtual String GetPar2() const; virtual void SetPar2(const String& rStr); - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); static void CreateMacroString( String& rMacro, const String& rMacroName, const String& rLibraryName ); - static BOOL isScriptURL( const String& str ); + static sal_Bool isScriptURL( const String& str ); }; @@ -549,8 +549,8 @@ public: sal_uInt32 GetNumberOfParagraphs() const; - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); virtual String GetDescription() const; }; @@ -563,13 +563,13 @@ class SwDocInfoFieldType : public SwValueFieldType public: SwDocInfoFieldType(SwDoc* pDc); - String Expand(USHORT nSubType, sal_uInt32 nFormat, USHORT nLang, const String& rName) const; + String Expand(sal_uInt16 nSubType, sal_uInt32 nFormat, sal_uInt16 nLang, const String& rName) const; virtual SwFieldType* Copy() const; }; class SW_DLLPUBLIC SwDocInfoField : public SwValueField { - USHORT nSubType; + sal_uInt16 nSubType; String aContent; String aName; @@ -577,18 +577,18 @@ class SW_DLLPUBLIC SwDocInfoField : public SwValueField virtual SwField* Copy() const; public: - SwDocInfoField(SwDocInfoFieldType*, USHORT nSub, const String& rName, sal_uInt32 nFmt=0); - SwDocInfoField(SwDocInfoFieldType*, USHORT nSub, const String& rName, const String& rValue, sal_uInt32 nFmt=0); + SwDocInfoField(SwDocInfoFieldType*, sal_uInt16 nSub, const String& rName, sal_uInt32 nFmt=0); + SwDocInfoField(SwDocInfoFieldType*, sal_uInt16 nSub, const String& rName, const String& rValue, sal_uInt32 nFmt=0); - virtual void SetSubType(USHORT); - virtual USHORT GetSubType() const; - virtual void SetLanguage(USHORT nLng); + virtual void SetSubType(sal_uInt16); + virtual sal_uInt16 GetSubType() const; + virtual void SetLanguage(sal_uInt16 nLng); virtual String GetFieldName() const; String GetName() const { return aName; } void SetName( const String& rName ) { aName = rName; } inline void SetExpansion(const String& rStr) { aContent = rStr; } - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; /*-------------------------------------------------------------------- @@ -604,28 +604,28 @@ public: inline void SetData(const String& rStr) { aData = rStr; } - String Expand(USHORT nSubType, sal_uInt32 nFormat) const; + String Expand(sal_uInt16 nSubType, sal_uInt32 nFormat) const; virtual SwFieldType* Copy() const; }; class SwExtUserField : public SwField { String aContent; - USHORT nType; + sal_uInt16 nType; public: - SwExtUserField(SwExtUserFieldType*, USHORT nSub, sal_uInt32 nFmt=0); + SwExtUserField(SwExtUserFieldType*, sal_uInt16 nSub, sal_uInt32 nFmt=0); virtual String Expand() const; virtual SwField* Copy() const; - virtual USHORT GetSubType() const; - virtual void SetSubType(USHORT nSub); + virtual sal_uInt16 GetSubType() const; + virtual void SetSubType(sal_uInt16 nSub); inline void SetExpansion(const String& rStr) { aContent = rStr; } - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; @@ -652,11 +652,11 @@ protected: class SwRefPageSetField : public SwField { short nOffset; - BOOL bOn; + sal_Bool bOn; public: SwRefPageSetField( SwRefPageSetFieldType*, short nOff = 0, - BOOL bOn = TRUE ); + sal_Bool bOn = sal_True ); virtual String Expand() const; virtual SwField* Copy() const; @@ -664,12 +664,12 @@ public: virtual String GetPar2() const; virtual void SetPar2(const String& rStr); - BOOL IsOn() const { return bOn; } + sal_Bool IsOn() const { return bOn; } short GetOffset() const { return nOffset; } void SetOffset( short nOff ) { nOffset = nOff; } - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; /*-------------------------------------------------------------------- @@ -688,7 +688,15 @@ protected: public: SwRefPageGetFieldType( SwDoc* pDoc ); virtual SwFieldType* Copy() const; +<<<<<<< local USHORT MakeSetList( _SetGetExpFlds& rTmpLst ); +======= + + // ueberlagert, um alle RefPageGet-Felder zu updaten + virtual void Modify( SfxPoolItem *, SfxPoolItem * ); + sal_uInt16 MakeSetList( _SetGetExpFlds& rTmpLst ); + +>>>>>>> other SwDoc* GetDoc() const { return pDoc; } }; @@ -708,8 +716,8 @@ public: void SetText( const String& rTxt ) { sTxt = rTxt; } void ChangeExpansion( const SwFrm* pFrm, const SwTxtFld* pFld ); - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; /*-------------------------------------------------------------------- @@ -748,8 +756,8 @@ public: SwCharFmt* GetCharFmt() const { return ((SwJumpEditFieldType*)GetTyp())->GetCharFmt(); } - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; /*-------------------------------------------------------------------- @@ -775,11 +783,11 @@ class SwScriptField : public SwField String sCode; // der Code als Text // der Code als JavaCode ? - BOOL bCodeURL; // Code enthaelt URL eines Scripts + sal_Bool bCodeURL; // Code enthaelt URL eines Scripts public: SwScriptField( SwScriptFieldType*, const String& rType, - const String& rCode, BOOL bURL=FALSE ); + const String& rCode, sal_Bool bURL=sal_False ); virtual String GetDescription() const; @@ -793,10 +801,10 @@ public: virtual String GetPar2() const; virtual void SetPar2(const String& rStr); - BOOL IsCodeURL() const { return bCodeURL; } - void SetCodeURL( BOOL bURL ) { bCodeURL = bURL; } - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + sal_Bool IsCodeURL() const { return bCodeURL; } + void SetCodeURL( sal_Bool bURL ) { bCodeURL = bURL; } + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; /*-------------------------------------------------------------------- @@ -831,8 +839,8 @@ public: virtual const String& GetPar1() const; virtual void SetPar1(const String& rStr); - virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, USHORT nWhich ) const; - virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, USHORT nWhich ); + virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; + virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); }; |