summaryrefslogtreecommitdiff
path: root/sw/inc/tox.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-25 14:00:35 +0200
committerNoel Grandin <noel@peralex.com>2014-04-30 08:44:42 +0200
commit6aa35db39311dcd7965c9c9c21fcf4143a1f9b43 (patch)
tree04320eaf8c7481c1b496460624ee20ec11360ac2 /sw/inc/tox.hxx
parent1417061d1b2c110e7e690523a544b58e7ffd05c0 (diff)
sw: sal_Bool->bool
Change-Id: I324a0ffde2ddcca105451c19e7aadcfad15211d8
Diffstat (limited to 'sw/inc/tox.hxx')
-rw-r--r--sw/inc/tox.hxx64
1 files changed, 32 insertions, 32 deletions
diff --git a/sw/inc/tox.hxx b/sw/inc/tox.hxx
index cb92306a2150..fe22c1dcaa22 100644
--- a/sw/inc/tox.hxx
+++ b/sw/inc/tox.hxx
@@ -68,8 +68,8 @@ class SW_DLLPUBLIC SwTOXMark
sal_uInt16 nLevel;
OUString m_aBookmarkName;
OUString m_aEntryTypeName; // stored specific entry type name for INDEX field \f
- sal_Bool bAutoGenerated : 1; // generated using a concordance file
- sal_Bool bMainEntry : 1; // main entry emphasized by character style
+ bool bAutoGenerated : 1; // generated using a concordance file
+ bool bMainEntry : 1; // main entry emphasized by character style
::com::sun::star::uno::WeakReference<
::com::sun::star::text::XDocumentIndexMark> m_wXDocumentIndexMark;
@@ -98,7 +98,7 @@ public:
OUString GetText() const;
- inline sal_Bool IsAlternativeText() const;
+ inline bool IsAlternativeText() const;
inline OUString GetAlternativeText() const;
inline void SetAlternativeText( const OUString& rAlt );
@@ -126,11 +126,11 @@ public:
inline OUString GetSecondaryKeyReading() const;
inline OUString GetCitationKeyReading() const;
- sal_Bool IsAutoGenerated() const {return bAutoGenerated;}
- void SetAutoGenerated(sal_Bool bSet) {bAutoGenerated = bSet;}
+ bool IsAutoGenerated() const {return bAutoGenerated;}
+ void SetAutoGenerated(bool bSet) {bAutoGenerated = bSet;}
- sal_Bool IsMainEntry() const {return bMainEntry;}
- void SetMainEntry(sal_Bool bSet) { bMainEntry = bSet;}
+ bool IsMainEntry() const {return bMainEntry;}
+ void SetMainEntry(bool bSet) { bMainEntry = bSet;}
inline const SwTOXType* GetTOXType() const;
@@ -224,7 +224,7 @@ struct SW_DLLPUBLIC SwFormToken
sal_uInt16 nOutlineLevel;//the maximum permitted outline level in numbering
sal_uInt16 nAuthorityField; //enum ToxAuthorityField
sal_Unicode cTabFillChar;
- sal_Bool bWithTab; // sal_True: do generate tab
+ bool bWithTab; // sal_True: do generate tab
// character only the tab stop
// #i21237#
@@ -237,7 +237,7 @@ struct SW_DLLPUBLIC SwFormToken
nOutlineLevel(MAXLEVEL), //default to maximum outline level
nAuthorityField(0 /*AUTH_FIELD_IDENTIFIER*/),
cTabFillChar(' '),
- bWithTab(sal_True) // #i21237#
+ bWithTab(true) // #i21237#
{}
OUString GetString() const;
@@ -297,9 +297,9 @@ class SW_DLLPUBLIC SwForm
TOXTypes eType;
sal_uInt16 nFormMaxLevel;
- sal_Bool bGenerateTabPos : 1;
- sal_Bool bIsRelTabPos : 1;
- sal_Bool bCommaSeparated : 1;
+ bool bGenerateTabPos : 1;
+ bool bIsRelTabPos : 1;
+ bool bCommaSeparated : 1;
public:
SwForm( TOXTypes eTOXType = TOX_CONTENT );
@@ -321,11 +321,11 @@ public:
inline TOXTypes GetTOXType() const;
inline sal_uInt16 GetFormMax() const;
- sal_Bool IsRelTabPos() const { return bIsRelTabPos; }
- void SetRelTabPos( sal_Bool b ) { bIsRelTabPos = b; }
+ bool IsRelTabPos() const { return bIsRelTabPos; }
+ void SetRelTabPos( bool b ) { bIsRelTabPos = b; }
- sal_Bool IsCommaSeparated() const { return bCommaSeparated;}
- void SetCommaSeparated( sal_Bool b) { bCommaSeparated = b;}
+ bool IsCommaSeparated() const { return bCommaSeparated;}
+ void SetCommaSeparated( bool b) { bCommaSeparated = b;}
static sal_uInt16 GetFormMaxLevel( TOXTypes eType );
@@ -424,17 +424,17 @@ class SW_DLLPUBLIC SwTOXBase : public SwClient
sal_uInt16 nCreateType; // sources to create the index from
sal_uInt16 nOLEOptions; // OLE sources
SwCaptionDisplay eCaptionDisplay;
- sal_Bool bProtected : 1; // index protected ?
- sal_Bool bFromChapter : 1; // create from chapter or document
- sal_Bool bFromObjectNames : 1; // create a table or object index
+ bool bProtected : 1; // index protected ?
+ bool bFromChapter : 1; // create from chapter or document
+ bool bFromObjectNames : 1; // create a table or object index
// from the names rather than the caption
- sal_Bool bLevelFromChapter : 1; // User index: get the level from the source chapter
+ bool bLevelFromChapter : 1; // User index: get the level from the source chapter
protected:
// Add a data member, for record the TOC field expression of MS Word binary format
// For keeping fedality and may giving a better exporting performance
OUString maMSTOCExpression;
- sal_Bool mbKeepExpression;
+ bool mbKeepExpression;
public:
SwTOXBase( const SwTOXType* pTyp, const SwForm& rForm,
@@ -458,8 +458,8 @@ public:
// for record the TOC field expression of MS Word binary format
const OUString& GetMSTOCExpression() const{return maMSTOCExpression;}
void SetMSTOCExpression(const OUString& rExp) {maMSTOCExpression = rExp;}
- void EnableKeepExpression() {mbKeepExpression = sal_True;}
- void DisableKeepExpression() {mbKeepExpression = sal_False;}
+ void EnableKeepExpression() {mbKeepExpression = true;}
+ void DisableKeepExpression() {mbKeepExpression = false;}
OUString GetTitle() const; // Title
OUString GetBookmarkName() const;
@@ -507,17 +507,17 @@ public:
SAL_WARN_IF( nLevel >= MAXLEVEL, "sw", "Which level?");
aStyleNames[nLevel] = rSet;
}
- sal_Bool IsFromChapter() const { return bFromChapter;}
- void SetFromChapter(sal_Bool bSet) { bFromChapter = bSet;}
+ bool IsFromChapter() const { return bFromChapter;}
+ void SetFromChapter(bool bSet) { bFromChapter = bSet;}
- sal_Bool IsFromObjectNames() const {return bFromObjectNames;}
- void SetFromObjectNames(sal_Bool bSet) {bFromObjectNames = bSet;}
+ bool IsFromObjectNames() const {return bFromObjectNames;}
+ void SetFromObjectNames(bool bSet) {bFromObjectNames = bSet;}
- sal_Bool IsLevelFromChapter() const {return bLevelFromChapter;}
- void SetLevelFromChapter(sal_Bool bSet) {bLevelFromChapter = bSet;}
+ bool IsLevelFromChapter() const {return bLevelFromChapter;}
+ void SetLevelFromChapter(bool bSet) {bLevelFromChapter = bSet;}
- sal_Bool IsProtected() const { return bProtected; }
- void SetProtected(sal_Bool bSet) { bProtected = bSet; }
+ bool IsProtected() const { return bProtected; }
+ void SetProtected(bool bSet) { bProtected = bSet; }
OUString GetSequenceName() const {return sSequenceName;}
void SetSequenceName(const OUString& rSet) {sSequenceName = rSet;}
@@ -563,7 +563,7 @@ inline OUString SwTOXMark::GetEntryTypeName() const
inline const SwTOXType* SwTOXMark::GetTOXType() const
{ return (SwTOXType*)GetRegisteredIn(); }
-inline sal_Bool SwTOXMark::IsAlternativeText() const
+inline bool SwTOXMark::IsAlternativeText() const
{ return !aAltText.isEmpty(); }
inline void SwTOXMark::SetAlternativeText(const OUString& rAlt)