diff options
Diffstat (limited to 'sw/source/core/inc/swblocks.hxx')
-rw-r--r-- | sw/source/core/inc/swblocks.hxx | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/sw/source/core/inc/swblocks.hxx b/sw/source/core/inc/swblocks.hxx index 300929642f7a..c5d2b9240b22 100644 --- a/sw/source/core/inc/swblocks.hxx +++ b/sw/source/core/inc/swblocks.hxx @@ -46,15 +46,15 @@ class SwBlockName { friend class SwImpBlocks; friend class Sw2TextBlocks; - USHORT nHashS, nHashL; // Hash-Codes zum Checken + sal_uInt16 nHashS, nHashL; // Hash-Codes zum Checken long nPos; // Dateiposition (SW2-Format) public: String aShort; // Short name String aLong; // Long name String aPackageName; // Package name - BOOL bIsOnlyTxtFlagInit : 1; // ist das Flag gueltig? - BOOL bIsOnlyTxt : 1; // unformatted text - BOOL bInPutMuchBlocks : 1; // put serveral block entries + sal_Bool bIsOnlyTxtFlagInit : 1; // ist das Flag gueltig? + sal_Bool bIsOnlyTxt : 1; // unformatted text + sal_Bool bInPutMuchBlocks : 1; // put serveral block entries SwBlockName( const String& rShort, const String& rLong, long n ); SwBlockName( const String& rShort, const String& rLong, const String& rPackageName ); @@ -80,12 +80,12 @@ protected: Date aDateModified; // fuers abgleichen bei den Aktionen Time aTimeModified; SwDoc* pDoc; // Austauschdokument - USHORT nCur; // aktueller Index - BOOL bReadOnly : 1; - BOOL bInPutMuchBlocks : 1; // put serveral block entries - BOOL bInfoChanged : 1; // any Info of TextBlock is changed + sal_uInt16 nCur; // aktueller Index + sal_Bool bReadOnly : 1; + sal_Bool bInPutMuchBlocks : 1; // put serveral block entries + sal_Bool bInfoChanged : 1; // any Info of TextBlock is changed - SwImpBlocks( const String&, BOOL = FALSE ); + SwImpBlocks( const String&, sal_Bool = sal_False ); virtual ~SwImpBlocks(); static short GetFileType( const String& ); @@ -98,63 +98,63 @@ protected: virtual void ClearDoc(); // Doc-Inhalt loeschen SwPaM* MakePaM(); // PaM ueber Doc aufspannen - virtual void AddName( const String&, const String&, BOOL bOnlyTxt = FALSE ); - BOOL IsFileChanged() const; + virtual void AddName( const String&, const String&, sal_Bool bOnlyTxt = sal_False ); + sal_Bool IsFileChanged() const; void Touch(); public: - static USHORT Hash( const String& ); // Hashcode fuer Blocknamen - USHORT GetCount() const; // Anzahl Textbausteine ermitteln - USHORT GetIndex( const String& ) const; // Index fuer Kurznamen ermitteln - USHORT GetLongIndex( const String& ) const; //Index fuer Langnamen ermitteln - const String& GetShortName( USHORT ) const; // Kurzname fuer Index zurueck - const String& GetLongName( USHORT ) const; // Langname fuer Index zurueck - const String& GetPackageName( USHORT ) const; // Langname fuer Index zurueck + static sal_uInt16 Hash( const String& ); // Hashcode fuer Blocknamen + sal_uInt16 GetCount() const; // Anzahl Textbausteine ermitteln + sal_uInt16 GetIndex( const String& ) const; // Index fuer Kurznamen ermitteln + sal_uInt16 GetLongIndex( const String& ) const; //Index fuer Langnamen ermitteln + const String& GetShortName( sal_uInt16 ) const; // Kurzname fuer Index zurueck + const String& GetLongName( sal_uInt16 ) const; // Langname fuer Index zurueck + const String& GetPackageName( sal_uInt16 ) const; // Langname fuer Index zurueck const String& GetFileName() const {return aFile;} // phys. Dateinamen liefern void SetName( const String& rName ) // logic name - { aName = rName; bInfoChanged = TRUE; } + { aName = rName; bInfoChanged = sal_True; } const String & GetName( void ) { return aName; } const String& GetBaseURL() const { return sBaseURL;} void SetBaseURL( const String& rURL ) { sBaseURL = rURL; } - virtual ULONG Delete( USHORT ) = 0; - virtual ULONG Rename( USHORT, const String&, const String& ) = 0; - virtual ULONG CopyBlock( SwImpBlocks& rImp, String& rShort, const String& rLong) = 0; - virtual ULONG GetDoc( USHORT ) = 0; - virtual ULONG GetDocForConversion( USHORT ); - virtual ULONG BeginPutDoc( const String&, const String& ) = 0; - virtual ULONG PutDoc() = 0; - virtual ULONG GetText( USHORT, String& ) = 0; - virtual ULONG PutText( const String&, const String&, const String& ) = 0; - virtual ULONG MakeBlockList() = 0; - - virtual ULONG OpenFile( BOOL bReadOnly = TRUE ) = 0; + virtual sal_uLong Delete( sal_uInt16 ) = 0; + virtual sal_uLong Rename( sal_uInt16, const String&, const String& ) = 0; + virtual sal_uLong CopyBlock( SwImpBlocks& rImp, String& rShort, const String& rLong) = 0; + virtual sal_uLong GetDoc( sal_uInt16 ) = 0; + virtual sal_uLong GetDocForConversion( sal_uInt16 ); + virtual sal_uLong BeginPutDoc( const String&, const String& ) = 0; + virtual sal_uLong PutDoc() = 0; + virtual sal_uLong GetText( sal_uInt16, String& ) = 0; + virtual sal_uLong PutText( const String&, const String&, const String& ) = 0; + virtual sal_uLong MakeBlockList() = 0; + + virtual sal_uLong OpenFile( sal_Bool bReadOnly = sal_True ) = 0; virtual void CloseFile() = 0; - virtual BOOL IsOnlyTextBlock( const String& rShort ) const; + virtual sal_Bool IsOnlyTextBlock( const String& rShort ) const; - virtual ULONG GetMacroTable( USHORT nIdx, SvxMacroTableDtor& rMacroTbl, + virtual sal_uLong GetMacroTable( sal_uInt16 nIdx, SvxMacroTableDtor& rMacroTbl, sal_Bool bFileAlreadyOpen = sal_False ); - virtual ULONG SetMacroTable( USHORT nIdx, + virtual sal_uLong SetMacroTable( sal_uInt16 nIdx, const SvxMacroTableDtor& rMacroTbl, sal_Bool bFileAlreadyOpen = sal_False ); - virtual BOOL PutMuchEntries( BOOL bOn ); + virtual sal_Bool PutMuchEntries( sal_Bool bOn ); }; /* class Sw3Persist : public SvPersist { virtual void FillClass( SvGlobalName * pClassName, - ULONG * pClipFormat, + sal_uLong * pClipFormat, String * pAppName, String * pLongUserName, String * pUserName, sal_Int32 nFileFormat=SOFFICE_FILEFORMAT_CURRENT ) const; - virtual BOOL Save(); - virtual BOOL SaveCompleted( SvStorage * ); + virtual sal_Bool Save(); + virtual sal_Bool SaveCompleted( SvStorage * ); public: Sw3Persist(); }; @@ -171,25 +171,25 @@ class Sw2TextBlocks : public SwImpBlocks long nDocSize; // Laenge des Doc-Records long nStart; // Beginn des CONTENTS-Records long nSize; // Laenge des CONTENTS-Records - USHORT nNamedFmts; // benannte Formate - USHORT nColls; // Text-Collections - USHORT nBlks; // Anzahl Elemente im CONTENTS-Record + sal_uInt16 nNamedFmts; // benannte Formate + sal_uInt16 nColls; // Text-Collections + sal_uInt16 nBlks; // Anzahl Elemente im CONTENTS-Record public: Sw2TextBlocks( const String& ); virtual ~Sw2TextBlocks(); - virtual ULONG Delete( USHORT ); - virtual ULONG Rename( USHORT, const String&, const String& ); - virtual ULONG CopyBlock( SwImpBlocks& rImp, String& rShort, const String& rLong); - virtual ULONG GetDoc( USHORT ); - virtual ULONG BeginPutDoc( const String&, const String& ); - virtual ULONG PutDoc(); - virtual ULONG GetText( USHORT, String& ); - virtual ULONG PutText( const String&, const String&, const String& ); - virtual ULONG MakeBlockList(); + virtual sal_uLong Delete( sal_uInt16 ); + virtual sal_uLong Rename( sal_uInt16, const String&, const String& ); + virtual sal_uLong CopyBlock( SwImpBlocks& rImp, String& rShort, const String& rLong); + virtual sal_uLong GetDoc( sal_uInt16 ); + virtual sal_uLong BeginPutDoc( const String&, const String& ); + virtual sal_uLong PutDoc(); + virtual sal_uLong GetText( sal_uInt16, String& ); + virtual sal_uLong PutText( const String&, const String&, const String& ); + virtual sal_uLong MakeBlockList(); virtual short GetFileType( ) const; - ULONG LoadDoc(); + sal_uLong LoadDoc(); - virtual ULONG OpenFile( BOOL bReadOnly = TRUE ); + virtual sal_uLong OpenFile( sal_Bool bReadOnly = sal_True ); virtual void CloseFile(); void StatLineStartPercent(); // zum Anzeigen des Prozessbars @@ -202,37 +202,37 @@ class Sw3TextBlocks : public SwImpBlocks { Sw3Io* pIo3; Sw3IoImp* pImp; - BOOL bAutocorrBlock; + sal_Bool bAutocorrBlock; public: Sw3TextBlocks( const String& ); Sw3TextBlocks( SvStorage& ); virtual ~Sw3TextBlocks(); - virtual ULONG Delete( USHORT ); - virtual ULONG Rename( USHORT, const String&, const String& ); - virtual ULONG CopyBlock( SwImpBlocks& rImp, String& rShort, const String& rLong); - virtual ULONG GetDoc( USHORT ); - virtual ULONG GetDocForConversion( USHORT ); - virtual ULONG BeginPutDoc( const String&, const String& ); - virtual ULONG PutDoc(); + virtual sal_uLong Delete( sal_uInt16 ); + virtual sal_uLong Rename( sal_uInt16, const String&, const String& ); + virtual sal_uLong CopyBlock( SwImpBlocks& rImp, String& rShort, const String& rLong); + virtual sal_uLong GetDoc( sal_uInt16 ); + virtual sal_uLong GetDocForConversion( sal_uInt16 ); + virtual sal_uLong BeginPutDoc( const String&, const String& ); + virtual sal_uLong PutDoc(); virtual void SetDoc( SwDoc * pNewDoc); - virtual ULONG GetText( USHORT, String& ); - virtual ULONG PutText( const String&, const String&, const String& ); - virtual ULONG MakeBlockList(); + virtual sal_uLong GetText( sal_uInt16, String& ); + virtual sal_uLong PutText( const String&, const String&, const String& ); + virtual sal_uLong MakeBlockList(); virtual short GetFileType( ) const; - virtual ULONG OpenFile( BOOL bReadOnly = TRUE ); + virtual sal_uLong OpenFile( sal_Bool bReadOnly = sal_True ); virtual void CloseFile(); // Methoden fuer die neue Autokorrektur - ULONG GetText( const String& rShort, String& ); + sal_uLong GetText( const String& rShort, String& ); SwDoc* GetDoc() const { return pDoc; } - virtual BOOL IsOnlyTextBlock( const String& rShort ) const; + virtual sal_Bool IsOnlyTextBlock( const String& rShort ) const; - virtual ULONG GetMacroTable( USHORT, SvxMacroTableDtor& rMacroTbl, + virtual sal_uLong GetMacroTable( sal_uInt16, SvxMacroTableDtor& rMacroTbl, sal_Bool bFileAlreadyOpen = sal_False ); - virtual ULONG SetMacroTable( USHORT nIdx, + virtual sal_uLong SetMacroTable( sal_uInt16 nIdx, const SvxMacroTableDtor& rMacroTbl, sal_Bool bFileAlreadyOpen = sal_False ); |