summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/inc/IDocumentContentOperations.hxx2
-rw-r--r--sw/inc/IDocumentFieldsAccess.hxx8
-rw-r--r--sw/inc/crsrsh.hxx38
-rw-r--r--sw/inc/dcontact.hxx2
-rw-r--r--sw/inc/doc.hxx24
-rw-r--r--sw/inc/docstyle.hxx2
-rw-r--r--sw/inc/docufld.hxx2
-rw-r--r--sw/inc/editsh.hxx4
-rw-r--r--sw/inc/flddropdown.hxx4
-rw-r--r--sw/inc/modcfg.hxx2
-rw-r--r--sw/inc/ndnotxt.hxx2
-rw-r--r--sw/inc/node.hxx24
-rw-r--r--sw/inc/pagedesc.hxx4
-rw-r--r--sw/inc/poolfmt.hxx4
-rw-r--r--sw/inc/swatrset.hxx2
-rw-r--r--sw/inc/swtable.hxx4
-rw-r--r--sw/inc/tabcol.hxx2
-rw-r--r--sw/inc/tox.hxx2
-rw-r--r--sw/inc/viewopt.hxx106
-rw-r--r--sw/inc/viewsh.hxx14
-rw-r--r--sw/source/core/inc/DocumentRedlineManager.hxx4
-rw-r--r--sw/source/core/inc/DocumentSettingManager.hxx64
-rw-r--r--sw/source/core/inc/acorrect.hxx4
-rw-r--r--sw/source/core/inc/flowfrm.hxx4
-rw-r--r--sw/source/core/inc/flyfrm.hxx12
-rw-r--r--sw/source/core/inc/frame.hxx8
-rw-r--r--sw/source/core/inc/swfont.hxx2
-rw-r--r--sw/source/filter/html/parcss1.hxx4
-rw-r--r--sw/source/filter/html/svxcss1.hxx4
-rw-r--r--sw/source/filter/xml/XMLRedlineImportHelper.hxx2
-rw-r--r--sw/source/filter/xml/xmlimp.hxx2
-rw-r--r--sw/source/uibase/inc/drawbase.hxx2
-rw-r--r--sw/source/uibase/inc/pview.hxx2
-rw-r--r--sw/source/uibase/inc/wrtsh.hxx8
34 files changed, 180 insertions, 194 deletions
diff --git a/sw/inc/IDocumentContentOperations.hxx b/sw/inc/IDocumentContentOperations.hxx
index 2676a2f87e2d..dbdcd720bac2 100644
--- a/sw/inc/IDocumentContentOperations.hxx
+++ b/sw/inc/IDocumentContentOperations.hxx
@@ -185,7 +185,7 @@ public:
an "empty" hint is inserted. If there is a selection the attribute
is hard-formated and added to the node at rRg.Start().
If the attribute could not be inserted, the method returns
- sal_False.
+ false.
*/
virtual bool InsertPoolItem(const SwPaM &rRg, const SfxPoolItem&,
const sal_uInt16 nFlags,bool bExpandCharToPara=false) = 0;
diff --git a/sw/inc/IDocumentFieldsAccess.hxx b/sw/inc/IDocumentFieldsAccess.hxx
index 556604783dbb..f0859a3afd51 100644
--- a/sw/inc/IDocumentFieldsAccess.hxx
+++ b/sw/inc/IDocumentFieldsAccess.hxx
@@ -69,8 +69,8 @@ namespace com { namespace sun { namespace star { namespace uno { class Any; } }
@param rVal the value
@param nMId
- @retval sal_True putting of value was successful
- @retval sal_False else
+ @retval true putting of value was successful
+ @retval false else
*/
virtual bool PutValueToField(const SwPosition & rPos, const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich) = 0;
@@ -83,8 +83,8 @@ namespace com { namespace sun { namespace star { namespace uno { class Any; } }
@param pMsgHnt
@param bUpdateTblFlds TRUE: update table fields, too.
- @retval sal_True update was successful
- @retval sal_False else
+ @retval true update was successful
+ @retval false else
*/
virtual bool UpdateFld(SwTxtFld * rDstFmtFld, SwField & rSrcFld, SwMsgPoolItem * pMsgHnt, bool bUpdateTblFlds) = 0;
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index db3a9a31c87b..e9ea1897e090 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -213,20 +213,20 @@ private:
// (used in Invalidate by the Cursor)
bool m_bCallChgLnk : 1; ///< flag for derived classes
- // TRUE -> call ChgLnk
+ // true -> call ChgLnk
// access only via SwChgLinkFlag
bool m_bAllProtect : 1; ///< Flag for areas
- // TRUE -> everything protected / hidden
+ // true -> everything protected / hidden
bool m_bInCMvVisportChgd : 1; ///< Flag for CrsrMoves
- // TRUE -> view was moved
- bool m_bGCAttr : 1; // TRUE -> non expanded attributes exist.
- bool m_bIgnoreReadonly : 1; // TRUE -> make the cursor visible on next
+ // true -> view was moved
+ bool m_bGCAttr : 1; // true -> non expanded attributes exist.
+ bool m_bIgnoreReadonly : 1; // true -> make the cursor visible on next
// EndAction in spite of Readonly
- bool m_bSelTblCells : 1; // TRUE -> select cells over the InputWin
- bool m_bAutoUpdateCells : 1; // TRUE -> autoformat cells
- bool m_bBasicHideCrsr : 1; // TRUE -> HideCrsr from Basic
- bool m_bSetCrsrInReadOnly : 1;// TRUE -> Cursor is allowed in ReadOnly-Areas
- bool m_bOverwriteCrsr : 1; // sal_True -> show Overwrite Crsr
+ bool m_bSelTblCells : 1; // true -> select cells over the InputWin
+ bool m_bAutoUpdateCells : 1; // true -> autoformat cells
+ bool m_bBasicHideCrsr : 1; // true -> HideCrsr from Basic
+ bool m_bSetCrsrInReadOnly : 1;// true -> Cursor is allowed in ReadOnly-Areas
+ bool m_bOverwriteCrsr : 1; // true -> show Overwrite Crsr
bool m_bMacroExecAllowed : 1;
@@ -419,8 +419,8 @@ public:
/**
Ensure point and mark of the current PaM are in a specific order.
- @param bPointFirst TRUE: If the point is behind the mark then
- swap the PaM. FALSE: If the mark is behind the point then swap
+ @param bPointFirst true: If the point is behind the mark then
+ swap the PaM. false: If the mark is behind the point then swap
the PaM.
*/
void NormalizePam(bool bPointFirst = true);
@@ -435,7 +435,7 @@ public:
void Push();
/*
* Delete a cursor (controlled by bOldCrsr)
- * - from stack or (bOldCrsr = TRUE)
+ * - from stack or (bOldCrsr = true)
* - delete the current one and replace it with the cursor from the
* stack
* Return: whether there was one left one the stack
@@ -478,8 +478,8 @@ public:
// Return current frame in which the cursor is placed.
SwCntntFrm *GetCurrFrm( const bool bCalcFrm = true ) const;
- //TRUE if cursor is hidden because of readonly.
- //FALSE if it is working despite readonly.
+ //true if cursor is hidden because of readonly.
+ //false if it is working despite readonly.
bool IsCrsrReadonly() const;
// Cursor is placed in something that is protected or selection contains
@@ -540,8 +540,8 @@ public:
bool GetCharRectAt(SwRect& rRect, const SwPosition* pPos);
// Return current page number:
- // TRUE: in which cursor is located.
- // FALSE: which is visible at the upper margin.
+ // true: in which cursor is located.
+ // false: which is visible at the upper margin.
void GetPageNum( sal_uInt16 &rnPhyNum, sal_uInt16 &rnVirtNum,
bool bAtCrsrPos = true, const bool bCalcFrm = true );
// Determine how "empty pages" are handled
@@ -667,7 +667,7 @@ public:
// jump to the header/footer of the given or current PageDesc
bool SetCrsrInHdFt( sal_uInt16 nDescNo = USHRT_MAX,
bool bInHeader = true );
- // is point of cursor in header/footer. pbInHeader return sal_True if it is
+ // is point of cursor in header/footer. pbInHeader return true if it is
// in a headerframe otherwise in a footerframe
bool IsInHeaderFooter( bool* pbInHeader = 0 ) const;
@@ -695,7 +695,7 @@ public:
bool ExtendSelection( bool bEnd = true, sal_Int32 nCount = 1 );
// Place only the visible cursor at the given position in the document.
- // Return FALSE if SPoint was corrected by layout.
+ // Return false if SPoint was corrected by layout.
// (This is needed for displaying the Drag&Drop/Copy-Cursor.)
bool SetVisCrsr( const Point &rPt );
inline void UnSetVisCrsr();
diff --git a/sw/inc/dcontact.hxx b/sw/inc/dcontact.hxx
index 474d334962cd..5dcc8ca3e691 100644
--- a/sw/inc/dcontact.hxx
+++ b/sw/inc/dcontact.hxx
@@ -343,7 +343,7 @@ class SwDrawContact : public SwContact
method <_Changed(..)> */
bool mbUserCallActive : 1;
/** event type, which is handled for <mpSdrObjHandledByCurrentUserCall>.
- Note: value only valid, if <mbUserCallActive> is sal_True. */
+ Note: value only valid, if <mbUserCallActive> is true. */
SdrUserCallType meEventTypeOfCurrentUserCall;
friend class NestedUserCallHdl;
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 2de7b9990365..414965dd1be1 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -395,7 +395,7 @@ private:
bool mbIsPrepareSelAll : 1;
#ifdef DBG_UTIL
- bool mbXMLExport : 1; //< sal_True: during XML export
+ bool mbXMLExport : 1; //< true: during XML export
#endif
// true: Document contains at least one anchored object, which is anchored AT_PAGE with a content position.
@@ -659,12 +659,12 @@ public:
// in FlySet/FrmFmt.
/* new parameter bCalledFromShell
- sal_True: An existing adjust item at pAnchorPos is propagated to
+ true: An existing adjust item at pAnchorPos is propagated to
the content node of the new fly section. That propagation only
takes place if there is no adjust item in the paragraph style
for the new fly section.
- sal_False: no propagation
+ false: no propagation
*/
SwFlyFrmFmt* MakeFlySection( RndStdIds eAnchorType,
const SwPosition* pAnchorPos,
@@ -1168,12 +1168,12 @@ public:
add output parameter <sListId>
\param rPos position to start search
- \param bForward - sal_True: search forward
- - sal_False: search backward
- \param bNum - sal_True: search for enumeration
- - sal_False: search for itemize
- \param bOutline - sal_True: search for outline numbering rule
- - sal_False: search for non-outline numbering rule
+ \param bForward - true: search forward
+ - false: search backward
+ \param bNum - true: search for enumeration
+ - false: search for itemize
+ \param bOutline - true: search for outline numbering rule
+ - false: search for non-outline numbering rule
\param nNonEmptyAllowed number of non-empty paragraphs allowed between
rPos and found paragraph
@@ -1216,11 +1216,11 @@ public:
For AutoFormat at input: columns have to be set at predefined width.
The array holds the positions of the columns (not their widths).
new @param bCalledFromShell:
- sal_True: called from shell -> propagate existing adjust item at
+ true: called from shell -> propagate existing adjust item at
rPos to every new cell. A existing adjust item in the table
heading or table contents paragraph style prevent that
propagation.
- sal_False: do not propagate
+ false: do not propagate
*/
const SwTable* InsertTable( const SwInsertTableOptions& rInsTblOpts, // HEADLINE_NO_BORDER
const SwPosition& rPos, sal_uInt16 nRows,
@@ -1533,7 +1533,7 @@ public:
@remarks A property is 'set' if it's set to the same value over all boxes in the current selection.
The property value is retrieved from the first box in the current selection. It is then compared to
the values of the same property over any other boxes in the selection; if any value is different from
- that of the first box, the property is unset (and sal_False is returned).
+ that of the first box, the property is unset (and false is returned).
*/
bool GetBoxAttr( const SwCursor& rCursor, SfxPoolItem &rToFill ) const;
void SetBoxAlign( const SwCursor& rCursor, sal_uInt16 nAlign );
diff --git a/sw/inc/docstyle.hxx b/sw/inc/docstyle.hxx
index 086207704614..1aad77bebbf4 100644
--- a/sw/inc/docstyle.hxx
+++ b/sw/inc/docstyle.hxx
@@ -91,7 +91,7 @@ public:
void SetGrabBagItem(const com::sun::star::uno::Any& rVal);
void GetGrabBagItem(com::sun::star::uno::Any& rVal) const;
- /** add optional parameter <bResetIndentAttrsAtParagraphStyle>, default value sal_False,
+ /** add optional parameter <bResetIndentAttrsAtParagraphStyle>, default value false,
which indicates that the indent attributes at a paragraph style should
be reset in case that a list style is applied to the paragraph style and
no indent attributes are applied. */
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx
index 01753a40110a..d9f82942ab88 100644
--- a/sw/inc/docufld.hxx
+++ b/sw/inc/docufld.hxx
@@ -298,7 +298,7 @@ public:
class SwHiddenTxtField : public SwField
{
- OUString aTRUETxt; ///< Text if condition sal_True.
+ OUString aTRUETxt; ///< Text if condition true.
OUString aFALSETxt; ///< If condition false.
OUString aContent; ///< Evaluated DB-text.
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index a9813962a5fd..b59cc50e94cc 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -223,7 +223,7 @@ public:
@return attributes in required AttributeSet.
When not unambiguous the set has a DONT_CARE !!
2nd optional parameter <bMergeIndentValuesOfNumRule>.
- If <bMergeIndentValuesOfNumRule> == sal_True, the indent attributes of
+ If <bMergeIndentValuesOfNumRule> == true, the indent attributes of
the corresponding list level of an applied list style is merged into
the requested item set as a LR-SPACE item, if corresponding node has not
its own indent attributes and the position-and-space mode of the list
@@ -468,7 +468,7 @@ public:
if all paragraphs of the current selection have the same or none numbering rule applied. */
const SwNumRule* GetNumRuleAtCurrentSelection() const;
- /** Optional parameter <bResetIndentAttrs> (default value sal_False).
+ /** Optional parameter <bResetIndentAttrs> (default value false).
If <bResetIndentAttrs> equals true, the indent attributes "before text"
and "first line indent" are additionally reset at the current selection,
if the list style makes use of the new list level attributes.
diff --git a/sw/inc/flddropdown.hxx b/sw/inc/flddropdown.hxx
index 129fac481920..4992d1e639e0 100644
--- a/sw/inc/flddropdown.hxx
+++ b/sw/inc/flddropdown.hxx
@@ -212,8 +212,8 @@ public:
@param rItem the item to be set
- @retval sal_True the selected item was successfully set
- @retval sal_True failure (empty selection)
+ @retval true the selected item was successfully set
+ @retval false failure (empty selection)
*/
bool SetSelectedItem(const OUString & rItem);
diff --git a/sw/inc/modcfg.hxx b/sw/inc/modcfg.hxx
index c5546538ffe4..1e36115ae300 100644
--- a/sw/inc/modcfg.hxx
+++ b/sw/inc/modcfg.hxx
@@ -227,7 +227,7 @@ public:
aRevisionConfig.SetModified();}
bool IsInsWithCaption(bool bHTML) const
- { return bHTML ? sal_False : aInsertConfig.bInsWithCaption; }
+ { return !bHTML && aInsertConfig.bInsWithCaption; }
void SetInsWithCaption( bool bHTML, bool b )
{ if(!bHTML)
aInsertConfig.bInsWithCaption = b;
diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx
index 23a9c05cc93a..33d52c8b5720 100644
--- a/sw/inc/ndnotxt.hxx
+++ b/sw/inc/ndnotxt.hxx
@@ -78,7 +78,7 @@ public:
// set either a MM100 or pixel contour
void SetContourAPI( const tools::PolyPolygon *pPoly );
- // get either a MM100 or pixel contour, return sal_False if no contour is set.
+ // get either a MM100 or pixel contour, return false if no contour is set.
bool GetContourAPI( tools::PolyPolygon &rPoly ) const;
void SetPixelContour( bool bSet ) { bPixelContour = bSet; }
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index 1098a0f2cbee..a8c7f295e312 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -168,8 +168,8 @@ public:
/**
Checks if this node is in redlines.
- @retval sal_True this node is in redlines
- @retval sal_False else
+ @retval true this node is in redlines
+ @retval false else
*/
bool IsInRedlines() const;
@@ -452,7 +452,7 @@ public:
Access to SwAttrSet. */
inline const SwAttrSet &GetSwAttrSet() const;
inline const SwAttrSet *GetpSwAttrSet() const { return static_cast<const SwAttrSet*>(mpAttrSet.get()); }
- inline bool HasSwAttrSet() const { return mpAttrSet ? sal_True : sal_False; }
+ inline bool HasSwAttrSet() const { return mpAttrSet != nullptr; }
virtual SwFmtColl* ChgFmtColl( SwFmtColl* );
SwFmtColl* GetFmtColl() const { return const_cast<SwFmtColl*>(static_cast<const SwFmtColl*>(GetRegisteredIn())); }
@@ -628,39 +628,39 @@ inline const SwCntntNode *SwNode::GetCntntNode() const
inline bool SwNode::IsStartNode() const
{
- return ND_STARTNODE & nNodeType ? sal_True : sal_False;
+ return (ND_STARTNODE & nNodeType) != 0;
}
inline bool SwNode::IsCntntNode() const
{
- return ND_CONTENTNODE & nNodeType ? sal_True : sal_False;
+ return (ND_CONTENTNODE & nNodeType) != 0;
}
inline bool SwNode::IsEndNode() const
{
- return ND_ENDNODE == nNodeType ? sal_True : sal_False;
+ return ND_ENDNODE == nNodeType;
}
inline bool SwNode::IsTxtNode() const
{
- return ND_TEXTNODE == nNodeType ? sal_True : sal_False;
+ return ND_TEXTNODE == nNodeType;
}
inline bool SwNode::IsTableNode() const
{
- return ND_TABLENODE == nNodeType ? sal_True : sal_False;
+ return ND_TABLENODE == nNodeType;
}
inline bool SwNode::IsSectionNode() const
{
- return ND_SECTIONNODE == nNodeType ? sal_True : sal_False;
+ return ND_SECTIONNODE == nNodeType;
}
inline bool SwNode::IsNoTxtNode() const
{
- return ND_NOTXTNODE & nNodeType ? sal_True : sal_False;
+ return (ND_NOTXTNODE & nNodeType) != 0;
}
inline bool SwNode::IsOLENode() const
{
- return ND_OLENODE == nNodeType ? sal_True : sal_False;
+ return ND_OLENODE == nNodeType;
}
inline bool SwNode::IsGrfNode() const
{
- return ND_GRFNODE == nNodeType ? sal_True : sal_False;
+ return ND_GRFNODE == nNodeType;
}
inline const SwStartNode* SwNode::FindSttNodeByType( SwStartNodeType eTyp ) const
diff --git a/sw/inc/pagedesc.hxx b/sw/inc/pagedesc.hxx
index 58ab7a802f64..0f5e18bbd1d8 100644
--- a/sw/inc/pagedesc.hxx
+++ b/sw/inc/pagedesc.hxx
@@ -258,11 +258,11 @@ inline void SwPageDesc::SetFollow( const SwPageDesc* pNew )
inline bool SwPageDesc::IsHeaderShared() const
{
- return eUse & nsUseOnPage::PD_HEADERSHARE ? sal_True : sal_False;
+ return (eUse & nsUseOnPage::PD_HEADERSHARE) != 0;
}
inline bool SwPageDesc::IsFooterShared() const
{
- return eUse & nsUseOnPage::PD_FOOTERSHARE ? sal_True : sal_False;
+ return (eUse & nsUseOnPage::PD_FOOTERSHARE) != 0;
}
inline void SwPageDesc::ChgHeaderShare( bool bNew )
{
diff --git a/sw/inc/poolfmt.hxx b/sw/inc/poolfmt.hxx
index 7f6a9d8d5b64..df029593b836 100644
--- a/sw/inc/poolfmt.hxx
+++ b/sw/inc/poolfmt.hxx
@@ -84,9 +84,7 @@ const sal_uInt16 POOL_IDUSER_FMT =
inline bool IsPoolUserFmt( sal_uInt16 nId )
{
- return POOL_IDUSER_FMT ==
- (nId & ~(COLL_GET_RANGE_BITS + POOLGRP_NOCOLLID))
- ? sal_True : sal_False;
+ return POOL_IDUSER_FMT == (nId & ~(COLL_GET_RANGE_BITS + POOLGRP_NOCOLLID));
}
/// IDs for the ranges.
diff --git a/sw/inc/swatrset.hxx b/sw/inc/swatrset.hxx
index e9d9395b46f9..867f269e2d7a 100644
--- a/sw/inc/swatrset.hxx
+++ b/sw/inc/swatrset.hxx
@@ -216,7 +216,7 @@ public:
const SwDoc *GetDoc() const { return GetPool()->GetDoc(); }
SwDoc *GetDoc() { return GetPool()->GetDoc(); }
- // Get methods: bool indicates whether to search only in Set (sal_False)
+ // Get methods: bool indicates whether to search only in Set (when false)
// or also in parents. If nothing is found then default attribute is returned.
// Character attributes. Implementation in charatr.hxx.
inline const SvxPostureItem &GetPosture( bool = true ) const;
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx
index e0bab7383189..592eacb8d02f 100644
--- a/sw/inc/swtable.hxx
+++ b/sw/inc/swtable.hxx
@@ -115,7 +115,7 @@ protected:
sal_uInt16 nRowsToRepeat; // Number of rows to repeat on every page.
bool bModifyLocked :1;
- bool bNewModel :1; // sal_False: old SubTableModel; sal_True: new RowSpanModel
+ bool bNewModel :1; // false: old SubTableModel; true: new RowSpanModel
#ifdef DBG_UTIL
/// This is set by functions (like Merge()) to forbid a late model change.
bool m_bDontChangeModel;
@@ -296,7 +296,7 @@ public:
// Search all content-bearing boxes of the base line on which this box stands.
// rBoxes as a return value for immediate use.
// steht. rBoxes auch als Return-Wert, um es gleich weiter zu benutzen
- // bToTop = true -> up to base line, sal_False-> else only line of box.
+ // bToTop = true -> up to base line, false-> else only line of box.
SwSelBoxes& SelLineFromBox( const SwTableBox* pBox,
SwSelBoxes& rBoxes, bool bToTop = true ) const;
diff --git a/sw/inc/tabcol.hxx b/sw/inc/tabcol.hxx
index d152d5da2f85..72e495d563f7 100644
--- a/sw/inc/tabcol.hxx
+++ b/sw/inc/tabcol.hxx
@@ -30,7 +30,7 @@ struct SwTabColsEntry
long nMin;
long nMax;
bool bHidden; // For each entry a flag, hidden or not.
- // If the flag bHidden is sal_True column separator
+ // If the flag bHidden is true column separator
// is not in current line. It must maintained
// but it may not be displayed.
};
diff --git a/sw/inc/tox.hxx b/sw/inc/tox.hxx
index 6cbb7e83d65b..2377f150e92e 100644
--- a/sw/inc/tox.hxx
+++ b/sw/inc/tox.hxx
@@ -220,7 +220,7 @@ struct SW_DLLPUBLIC SwFormToken
sal_uInt16 nOutlineLevel;//the maximum permitted outline level in numbering
sal_uInt16 nAuthorityField; //enum ToxAuthorityField
sal_Unicode cTabFillChar;
- bool bWithTab; // sal_True: do generate tab
+ bool bWithTab; // true: do generate tab
// character only the tab stop
// #i21237#
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx
index 2833f1104266..25c1d88cc106 100644
--- a/sw/inc/viewopt.hxx
+++ b/sw/inc/viewopt.hxx
@@ -202,34 +202,30 @@ public:
inline bool IsTab(bool bHard = false) const
{ return !bReadonly && (nCoreOptions & VIEWOPT_1_TAB) &&
- ((nCoreOptions & VIEWOPT_1_VIEWMETACHARS)||bHard)
- ? sal_True : sal_False; }
+ ((nCoreOptions & VIEWOPT_1_VIEWMETACHARS)||bHard); }
inline void SetTab( bool b ) {
b ? (nCoreOptions |= VIEWOPT_1_TAB ) : ( nCoreOptions &= ~VIEWOPT_1_TAB); }
inline bool IsBlank(bool bHard = false) const
{ return !bReadonly && (nCoreOptions & VIEWOPT_1_BLANK) &&
- ((nCoreOptions & VIEWOPT_1_VIEWMETACHARS)||bHard)
- ? sal_True : sal_False; }
+ ((nCoreOptions & VIEWOPT_1_VIEWMETACHARS)||bHard); }
inline void SetBlank( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_BLANK ) : ( nCoreOptions &= ~VIEWOPT_1_BLANK); }
inline bool IsHardBlank() const
- { return !bReadonly && nCoreOptions & VIEWOPT_1_HARDBLANK ? sal_True : sal_False; }
+ { return !bReadonly && (nCoreOptions & VIEWOPT_1_HARDBLANK) != 0; }
inline void SetHardBlank( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_HARDBLANK ) : ( nCoreOptions &= ~VIEWOPT_1_HARDBLANK); }
inline bool IsParagraph(bool bHard = false) const
{ return !bReadonly && (nCoreOptions & VIEWOPT_1_PARAGRAPH) &&
- ((nCoreOptions & VIEWOPT_1_VIEWMETACHARS)||bHard)
- ? sal_True : sal_False; }
+ ((nCoreOptions & VIEWOPT_1_VIEWMETACHARS)||bHard); }
inline void SetParagraph( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_PARAGRAPH ) : ( nCoreOptions &= ~VIEWOPT_1_PARAGRAPH); }
inline bool IsLineBreak(bool bHard = false) const
{ return !bReadonly && (nCoreOptions & VIEWOPT_1_LINEBREAK) &&
- ((nCoreOptions & VIEWOPT_1_VIEWMETACHARS)||bHard)
- ? sal_True : sal_False; }
+ ((nCoreOptions & VIEWOPT_1_VIEWMETACHARS)||bHard); }
inline void SetLineBreak( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_LINEBREAK ) : ( nCoreOptions &= ~VIEWOPT_1_LINEBREAK); }
@@ -240,16 +236,16 @@ public:
{ b ? (nCoreOptions |= VIEWOPT_1_COLUMNBREAK ) : ( nCoreOptions &= ~VIEWOPT_1_COLUMNBREAK); }
inline bool IsSoftHyph() const
- { return !bReadonly && (nCoreOptions & VIEWOPT_1_SOFTHYPH) ? sal_True : sal_False; }
+ { return !bReadonly && (nCoreOptions & VIEWOPT_1_SOFTHYPH) != 0; }
inline void SetSoftHyph( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_SOFTHYPH ) : ( nCoreOptions &= ~VIEWOPT_1_SOFTHYPH); }
- inline bool IsFldName() const { return !bReadonly && (nCoreOptions & VIEWOPT_1_FLDNAME) ? sal_True : sal_False; }
+ inline bool IsFldName() const { return !bReadonly && (nCoreOptions & VIEWOPT_1_FLDNAME) != 0; }
inline void SetFldName( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_FLDNAME ) : ( nCoreOptions &= ~VIEWOPT_1_FLDNAME); }
inline bool IsPostIts() const
- { return (nCoreOptions & VIEWOPT_1_POSTITS) ? sal_True : sal_False; }
+ { return (nCoreOptions & VIEWOPT_1_POSTITS) != 0; }
inline void SetPostIts( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_POSTITS ) : ( nCoreOptions &= ~VIEWOPT_1_POSTITS); }
void PaintPostIts( OutputDevice *pOut, const SwRect &rRect,
@@ -258,44 +254,43 @@ public:
inline bool IsShowHiddenChar(bool bHard = false) const
{ return !bReadonly && (nCoreOptions & VIEWOPT_1_CHAR_HIDDEN) &&
- ((nCoreOptions & VIEWOPT_1_VIEWMETACHARS)||bHard)
- ? sal_True : sal_False; }
+ ((nCoreOptions & VIEWOPT_1_VIEWMETACHARS)||bHard); }
inline void SetShowHiddenChar( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_CHAR_HIDDEN ) : ( nCoreOptions &= ~VIEWOPT_1_CHAR_HIDDEN); }
inline bool IsShowHiddenField() const
- { return !bReadonly && (nCoreOptions & VIEWOPT_1_FLD_HIDDEN) ? sal_True : sal_False; }
+ { return !bReadonly && (nCoreOptions & VIEWOPT_1_FLD_HIDDEN) != 0; }
inline void SetShowHiddenField( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_FLD_HIDDEN ) : ( nCoreOptions &= ~VIEWOPT_1_FLD_HIDDEN); }
inline bool IsGraphic() const
- { return nCoreOptions & VIEWOPT_1_GRAPHIC ? sal_True : sal_False; }
+ { return (nCoreOptions & VIEWOPT_1_GRAPHIC) != 0; }
inline void SetGraphic( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_GRAPHIC ) : ( nCoreOptions &= ~VIEWOPT_1_GRAPHIC); }
inline bool IsPageBack() const
- { return nCoreOptions & VIEWOPT_1_PAGEBACK ? sal_True : sal_False; }
+ { return (nCoreOptions & VIEWOPT_1_PAGEBACK) != 0; }
inline void SetPageBack( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_PAGEBACK) : ( nCoreOptions &= ~VIEWOPT_1_PAGEBACK); }
inline bool IsTable() const
- { return nCoreOptions & VIEWOPT_1_TABLE ? sal_True : sal_False; }
+ { return (nCoreOptions & VIEWOPT_1_TABLE) != 0; }
inline void SetTable( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_TABLE ) : ( nCoreOptions &= ~VIEWOPT_1_TABLE); }
inline bool IsDraw() const
- { return nCoreOptions & VIEWOPT_1_DRAW ? sal_True : sal_False; }
+ { return (nCoreOptions & VIEWOPT_1_DRAW) != 0; }
inline void SetDraw( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_DRAW ) : ( nCoreOptions &= ~VIEWOPT_1_DRAW); }
inline bool IsControl() const
- { return nCoreOptions & VIEWOPT_1_CONTROL ? sal_True : sal_False; }
+ { return (nCoreOptions & VIEWOPT_1_CONTROL) != 0; }
inline void SetControl( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_CONTROL ) : ( nCoreOptions &= ~VIEWOPT_1_CONTROL); }
inline bool IsSnap() const
- { return nCoreOptions & VIEWOPT_1_SNAP ? sal_True : sal_False; }
+ { return (nCoreOptions & VIEWOPT_1_SNAP) != 0; }
inline void SetSnap( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_SNAP ) : ( nCoreOptions &= ~VIEWOPT_1_SNAP); }
@@ -303,63 +298,63 @@ public:
inline const Size &GetSnapSize() const { return aSnapSize; }
inline bool IsGridVisible() const
- { return !bReadonly && (nCoreOptions & VIEWOPT_1_GRIDVISIBLE) ? sal_True : sal_False; }
+ { return !bReadonly && (nCoreOptions & VIEWOPT_1_GRIDVISIBLE) != 0; }
inline void SetGridVisible( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_GRIDVISIBLE ) : ( nCoreOptions &= ~VIEWOPT_1_GRIDVISIBLE); }
inline bool IsOnlineSpell() const
- { return !bReadonly && (nCoreOptions & VIEWOPT_1_ONLINESPELL) ? sal_True : sal_False; }
+ { return !bReadonly && (nCoreOptions & VIEWOPT_1_ONLINESPELL) != 0; }
inline void SetOnlineSpell( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_ONLINESPELL ) : ( nCoreOptions &= ~VIEWOPT_1_ONLINESPELL); }
inline bool IsViewMetaChars() const
- { return !bReadonly && (nCoreOptions & VIEWOPT_1_VIEWMETACHARS) ? sal_True : sal_False; }
+ { return !bReadonly && (nCoreOptions & VIEWOPT_1_VIEWMETACHARS) != 0; }
inline void SetViewMetaChars( bool b)
{ b ? (nCoreOptions |= VIEWOPT_1_VIEWMETACHARS ) : ( nCoreOptions &= ~VIEWOPT_1_VIEWMETACHARS); }
inline bool IsSynchronize() const
- { return nCoreOptions & VIEWOPT_1_SYNCHRONIZE ? sal_True : sal_False;}
+ { return (nCoreOptions & VIEWOPT_1_SYNCHRONIZE) != 0; }
inline void SetSynchronize( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_SYNCHRONIZE ) : ( nCoreOptions &= ~VIEWOPT_1_SYNCHRONIZE); }
inline bool IsCrossHair() const
- { return nCoreOptions & VIEWOPT_1_CROSSHAIR ? sal_True : sal_False; }
+ { return (nCoreOptions & VIEWOPT_1_CROSSHAIR) != 0; }
inline void SetCrossHair( bool b )
{ b ? (nCoreOptions |= VIEWOPT_1_CROSSHAIR ) : ( nCoreOptions &= ~VIEWOPT_1_CROSSHAIR); }
// Options from nCore2Options
inline bool IsBlackFont() const
- {return nCore2Options & VIEWOPT_CORE2_BLACKFONT ? sal_True : sal_False;}
+ {return (nCore2Options & VIEWOPT_CORE2_BLACKFONT) != 0; }
inline void SetBlackFont(bool b)
{ b ? (nCore2Options |= VIEWOPT_CORE2_BLACKFONT) : (nCore2Options &= ~VIEWOPT_CORE2_BLACKFONT);}
inline bool IsShowHiddenPara() const
- {return nCore2Options & VIEWOPT_CORE2_HIDDENPARA ? sal_True : sal_False;}
+ {return (nCore2Options & VIEWOPT_CORE2_HIDDENPARA) != 0; }
inline void SetShowHiddenPara(bool b)
{ b ? (nCore2Options |= VIEWOPT_CORE2_HIDDENPARA) : (nCore2Options &= ~VIEWOPT_CORE2_HIDDENPARA);}
inline bool IsSmoothScroll() const
- {return nCore2Options & VIEWOPT_CORE2_SMOOTHSCROLL ? sal_True : sal_False;}
+ {return (nCore2Options & VIEWOPT_CORE2_SMOOTHSCROLL) != 0; }
inline void SetSmoothScroll(bool b)
{ b ? (nCore2Options |= VIEWOPT_CORE2_SMOOTHSCROLL) : (nCore2Options &= ~VIEWOPT_CORE2_SMOOTHSCROLL);}
inline bool IsCursorInProtectedArea() const
- {return nCore2Options & VIEWOPT_CORE2_CRSR_IN_PROT ? sal_True : sal_False;}
+ {return (nCore2Options & VIEWOPT_CORE2_CRSR_IN_PROT) != 0; }
inline void SetCursorInProtectedArea(bool b)
{ b ? (nCore2Options |= VIEWOPT_CORE2_CRSR_IN_PROT) : (nCore2Options &= ~VIEWOPT_CORE2_CRSR_IN_PROT);}
inline bool IsPDFExport() const
- {return nCore2Options & VIEWOPT_CORE2_PDF_EXPORT ? sal_True : sal_False;}
+ {return (nCore2Options & VIEWOPT_CORE2_PDF_EXPORT) != 0; }
inline void SetPDFExport(bool b)
{ b ? (nCore2Options |= VIEWOPT_CORE2_PDF_EXPORT) : (nCore2Options &= ~VIEWOPT_CORE2_PDF_EXPORT);}
inline bool IsPrinting() const
- {return nCore2Options & VIEWOPT_CORE2_PRINTING ? sal_True : sal_False;}
+ {return (nCore2Options & VIEWOPT_CORE2_PRINTING) != 0; }
inline void SetPrinting(bool b)
{ b ? (nCore2Options |= VIEWOPT_CORE2_PRINTING) : (nCore2Options &= ~VIEWOPT_CORE2_PRINTING);}
@@ -435,29 +430,29 @@ public:
bool IsViewVScrollBar() const
{
#if HAVE_FEATURE_DESKTOP
- return nUIOptions & VIEWOPT_2_VSCROLLBAR ? sal_True : sal_False;
+ return (nUIOptions & VIEWOPT_2_VSCROLLBAR) != 0;
#else
- return sal_False;
+ return false;
#endif
}
bool IsViewHScrollBar() const
{
#if HAVE_FEATURE_DESKTOP
- return nUIOptions & VIEWOPT_2_HSCROLLBAR ? sal_True : sal_False;
+ return (nUIOptions & VIEWOPT_2_HSCROLLBAR) != 0;
#else
- return sal_False;
+ return false;
#endif
}
bool IsKeepRatio() const
- { return nUIOptions & VIEWOPT_2_KEEPASPECTRATIO ? sal_True : sal_False; }
+ { return (nUIOptions & VIEWOPT_2_KEEPASPECTRATIO) != 0; }
bool IsGrfKeepZoom() const
- { return nUIOptions & VIEWOPT_2_GRFKEEPZOOM ? sal_True : sal_False; }
+ { return (nUIOptions & VIEWOPT_2_GRFKEEPZOOM) != 0; }
bool IsShowContentTips() const
- { return nUIOptions & VIEWOPT_2_CONTENT_TIPS ? sal_True : sal_False; }
+ { return (nUIOptions & VIEWOPT_2_CONTENT_TIPS) != 0; }
bool IsPrtFormat() const
- { return nUIOptions & VIEWOPT_2_PRTFORMAT ? sal_True : sal_False; }
+ { return (nUIOptions & VIEWOPT_2_PRTFORMAT) != 0; }
bool IsShowScrollBarTips() const
- { return nUIOptions & VIEWOPT_2_SCROLLBAR_TIPS ? sal_True : sal_False; }
+ { return (nUIOptions & VIEWOPT_2_SCROLLBAR_TIPS) != 0; }
SvxZoomType GetZoomType() const { return eZoom; }
@@ -492,7 +487,7 @@ public:
#if HAVE_FEATURE_DESKTOP
return 0 != (nUIOptions & VIEWOPT_2_ANY_RULER);
#else
- return sal_False;
+ return false;
#endif
}
void SetViewAnyRuler(bool bSet)
@@ -501,15 +496,12 @@ public:
bool IsViewHRuler(bool bDirect = false) const
{
#if HAVE_FEATURE_DESKTOP
- bool bRet = sal::static_int_cast< sal_Bool >( bDirect ?
- 0 != (nUIOptions & VIEWOPT_2_H_RULER) :
- !bReadonly ?
- (nUIOptions & (VIEWOPT_2_ANY_RULER|VIEWOPT_2_H_RULER)) == (VIEWOPT_2_ANY_RULER|VIEWOPT_2_H_RULER)
- : sal_False );
- return bRet;
+ return bDirect
+ ? 0 != (nUIOptions & VIEWOPT_2_H_RULER)
+ : !bReadonly && (nUIOptions & (VIEWOPT_2_ANY_RULER|VIEWOPT_2_H_RULER)) == (VIEWOPT_2_ANY_RULER|VIEWOPT_2_H_RULER);
#else
(void) bDirect;
- return sal_False;
+ return false;
#endif
}
void SetViewHRuler (bool b)
@@ -518,16 +510,12 @@ public:
bool IsViewVRuler(bool bDirect = false) const
{
#if HAVE_FEATURE_DESKTOP
- bool bRet = sal::static_int_cast< sal_Bool >( bDirect ?
- 0 !=(nUIOptions & VIEWOPT_2_V_RULER) :
- !bReadonly ?
- (nUIOptions &
- (VIEWOPT_2_ANY_RULER|VIEWOPT_2_V_RULER)) == (VIEWOPT_2_ANY_RULER|VIEWOPT_2_V_RULER)
- : sal_False );
- return bRet;
+ return bDirect
+ ? 0 != (nUIOptions & VIEWOPT_2_V_RULER)
+ : !bReadonly && (nUIOptions & (VIEWOPT_2_ANY_RULER|VIEWOPT_2_V_RULER)) == (VIEWOPT_2_ANY_RULER|VIEWOPT_2_V_RULER);
#else
(void) bDirect;
- return sal_False;
+ return false;
#endif
}
void SetViewVRuler (bool b)
@@ -535,13 +523,13 @@ public:
// ShadowCursor, switch on/off, get/set color/mode.
bool IsShadowCursor() const
- { return nUIOptions & VIEWOPT_2_SHADOWCRSR ? sal_True : sal_False; }
+ { return (nUIOptions & VIEWOPT_2_SHADOWCRSR) != 0; }
void SetShadowCursor(bool b)
{ b ? (nUIOptions |= VIEWOPT_2_SHADOWCRSR ) : ( nUIOptions &= ~VIEWOPT_2_SHADOWCRSR); }
//move vertical ruler to the right
bool IsVRulerRight() const
- { return nUIOptions & VIEWOPT_2_V_RULER_RIGHT ? sal_True : sal_False; }
+ { return (nUIOptions & VIEWOPT_2_V_RULER_RIGHT) != 0; }
void SetVRulerRight(bool b)
{ b ? (nUIOptions |= VIEWOPT_2_V_RULER_RIGHT ) : ( nUIOptions &= ~VIEWOPT_2_V_RULER_RIGHT); }
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index da0d5d601cb1..7eab33738480 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -112,7 +112,7 @@ class SW_DLLPUBLIC SwViewShell : public Ring
static BitmapEx* mpReplaceBmp; ///< replaced display of still loaded images
static BitmapEx* mpErrorBmp; ///< error display of missed images
- static bool mbLstAct; // sal_True if EndAction of last Shell
+ static bool mbLstAct; // true if EndAction of last Shell
// i.e. if the EndActions of the other
// Shells on the document are through.
@@ -138,14 +138,14 @@ class SW_DLLPUBLIC SwViewShell : public Ring
bool mbDocSizeChgd :1; // For DocChgNotify(): Announce new DocSize
// at EndAction to DocMDI.
- bool mbPaintWorks :1; // Normal Painting if sal_True,
- // remember Paint if sal_False.
+ bool mbPaintWorks :1; // Normal Painting if true,
+ // remember Paint if false.
bool mbPaintInProgress :1; // Block any double paint.
bool mbViewLocked :1; // Lock visible range;
// in this case MakeVisible is ineffectual.
bool mbInEndAction :1; // Avoid problems, cf. viewsh.cxx.
- bool mbPreview :1; // If sal_True it is a Preview-SwViewShell.
- bool mbFrameView :1; // If sal_True it is a (HTML-)Frame.
+ bool mbPreview :1; // If true it is a Preview-SwViewShell.
+ bool mbFrameView :1; // If true it is a (HTML-)Frame.
bool mbEnableSmooth :1; // Disable SmoothScroll, e.g. for drag
// of scrollbars.
bool mbEndActionByVirDev:1; // Paints from EndAction always via virtual device
@@ -489,8 +489,8 @@ public:
{ mbFrameView = true; maBrowseBorder = rBrowseBorder; }
// Makes the necessary invalidations:
- // If BrowseMode has changed bBrowseChgd == sal_True
- // or bBrowseChgd == sal_False in BrowseMode
+ // If BrowseMode has changed bBrowseChgd == true
+ // or bBrowseChgd == false in BrowseMode
// if proportions have changed.
void CheckBrowseView( bool bBrowseChgd );
diff --git a/sw/source/core/inc/DocumentRedlineManager.hxx b/sw/source/core/inc/DocumentRedlineManager.hxx
index fd7d2332c679..9c405ea2475e 100644
--- a/sw/source/core/inc/DocumentRedlineManager.hxx
+++ b/sw/source/core/inc/DocumentRedlineManager.hxx
@@ -130,8 +130,8 @@ private:
SwRedlineTbl *mpRedlineTbl; //< List of all Ranged Redlines.
SwExtraRedlineTbl *mpExtraRedlineTbl; //< List of all Extra Redlines.
OUString *mpAutoFmtRedlnComment; //< Comment for Redlines inserted via AutoFormat.
- bool mbIsRedlineMove; //< True: Redlines are moved into to / out of the section.
- bool mbReadlineChecked; //< sal_True: if the query was already shown
+ bool mbIsRedlineMove; //< true: Redlines are moved into to / out of the section.
+ bool mbReadlineChecked; //< true: if the query was already shown
sal_uInt16 mnAutoFmtRedlnCommentNo; /**< SeqNo for conjoining of AutoFmt-Redlines.
by the UI. Managed by SwAutoFmt! */
::com::sun::star::uno::Sequence <sal_Int8 > maRedlinePasswd;
diff --git a/sw/source/core/inc/DocumentSettingManager.hxx b/sw/source/core/inc/DocumentSettingManager.hxx
index 6dc27ca2ddc8..4057b6f29b36 100644
--- a/sw/source/core/inc/DocumentSettingManager.hxx
+++ b/sw/source/core/inc/DocumentSettingManager.hxx
@@ -43,65 +43,65 @@ class DocumentSettingManager :
// HISTORY OF THE COMPATIBILITY FLAGS:
//
// SO5:
- // mbParaSpaceMax def = sal_False, sal_True since SO8
- // mbParaSpaceMaxAtPages def = sal_False, sal_True since SO8
+ // mbParaSpaceMax def = false, true since SO8
+ // mbParaSpaceMaxAtPages def = false, true since SO8
//
// SO6:
- // mbTabCompat def = sal_False, sal_True since SO8
+ // mbTabCompat def = false, true since SO8
//
// SO7:
- // mbUseVirtualDevice def = sal_True
- // mbAddFlyOffsets def = sal_False, hidden
+ // mbUseVirtualDevice def = true
+ // mbAddFlyOffsets def = false, hidden
//
// SO7pp1:
- // bOldNumbering def = sal_False, hidden
+ // bOldNumbering def = false, hidden
//
// SO8:
- // mbAddExternalLeading def = sal_True
- // mbUseHiResolutionVirtualDevice def = sal_True, hidden
- // mbOldLineSpacing def = sal_False
- // mbAddParaSpacingToTableCells def = sal_True
- // mbUseFormerObjectPos def = sal_False
- // mbUseFormerTextWrapping def = sal_False
- // mbConsiderWrapOnObjPos def = sal_False
+ // mbAddExternalLeading def = true
+ // mbUseHiResolutionVirtualDevice def = true, hidden
+ // mbOldLineSpacing def = false
+ // mbAddParaSpacingToTableCells def = true
+ // mbUseFormerObjectPos def = false
+ // mbUseFormerTextWrapping def = false
+ // mbConsiderWrapOnObjPos def = false
//
// SO8pp1:
- // mbIgnoreFirstLineIndentInNumbering def = sal_False, hidden
- // mbDoNotJustifyLinesWithManualBreak def = sal_False, hidden
- // mbDoNotResetParaAttrsForNumFont def = sal_False, hidden
+ // mbIgnoreFirstLineIndentInNumbering def = false, hidden
+ // mbDoNotJustifyLinesWithManualBreak def = false, hidden
+ // mbDoNotResetParaAttrsForNumFont def = false, hidden
//
// SO8pp3
- // mbDoNotCaptureDrawObjsOnPage def = sal_False, hidden
+ // mbDoNotCaptureDrawObjsOnPage def = false, hidden
// - Relevant for drawing objects, which don't follow the text flow, but
// whose position is outside the page area:
- // sal_False: Such drawing objects are captured on the page area of its anchor.
- // sal_True: Such drawing objects can leave the page area, they aren't captured.
- // mbTableRowKeep def = sal_False, hidden
- // mbIgnoreTabsAndBlanksForLineCalculation def = sal_False, hidden
- // mbClipAsCharacterAnchoredWriterFlyFrame def = sal_False, hidden
+ // false: Such drawing objects are captured on the page area of its anchor.
+ // true: Such drawing objects can leave the page area, they aren't captured.
+ // mbTableRowKeep def = false, hidden
+ // mbIgnoreTabsAndBlanksForLineCalculation def = false, hidden
+ // mbClipAsCharacterAnchoredWriterFlyFrame def = false, hidden
// - Introduced in order to re-activate clipping of as-character anchored
// Writer fly frames in method <SwFlyInCntFrm::MakeAll()> for documents,
// which are created with version prior SO8/OOo 2.0
//
// SO8pp4
- // mbUnixForceZeroExtLeading def = sal_False, hidden
+ // mbUnixForceZeroExtLeading def = false, hidden
//
// SO8pu8
//
// SO9
// #i24363# tab stops relative to indent
- // mbTabRelativeToIndent def = sal_True, hidden
+ // mbTabRelativeToIndent def = true, hidden
// #i89181# suppress tab stop at left indent for paragraphs in lists, whose
// list level position and space mode equals LABEL_ALIGNMENT and whose list
// label is followed by a tab character.
- // mbTabAtLeftIndentForParagraphsInList def = sal_False, hidden
+ // mbTabAtLeftIndentForParagraphsInList def = false, hidden
- bool mbHTMLMode : 1; //< TRUE: Document is in HTMLMode.
- bool mbIsGlobalDoc : 1; //< TRUE: It's a global document.
- bool mbGlblDocSaveLinks : 1; //< TRUE: Save sections linked in global document.
- bool mbIsLabelDoc : 1; //< TRUE: It's a label document.
- bool mbPurgeOLE : 1; //< sal_True: Purge OLE-Objects
- bool mbKernAsianPunctuation : 1; //< sal_True: kerning also for ASIAN punctuation
+ bool mbHTMLMode : 1; //< true: Document is in HTMLMode.
+ bool mbIsGlobalDoc : 1; //< true: It's a global document.
+ bool mbGlblDocSaveLinks : 1; //< true: Save sections linked in global document.
+ bool mbIsLabelDoc : 1; //< true: It's a label document.
+ bool mbPurgeOLE : 1; //< true: Purge OLE-Objects
+ bool mbKernAsianPunctuation : 1; //< true: kerning also for ASIAN punctuation
bool mbParaSpaceMax : 1;
bool mbParaSpaceMaxAtPages : 1;
@@ -115,7 +115,7 @@ class DocumentSettingManager :
bool mbUseFormerObjectPos : 1; // #i11860#
bool mbUseFormerTextWrapping : 1;
bool mbConsiderWrapOnObjPos : 1; // #i28701#
- // sal_True: object positioning algorithm has consider the wrapping style of // the floating screen objects as given by its attribute 'WrapInfluenceOnObjPos'
+ // true: object positioning algorithm has consider the wrapping style of // the floating screen objects as given by its attribute 'WrapInfluenceOnObjPos'
// floating screen objects as given by its
// attribute 'WrapInfluenceOnObjPos'.
bool mbMathBaselineAlignment : 1; // TL 2010-10-29 #i972#
diff --git a/sw/source/core/inc/acorrect.hxx b/sw/source/core/inc/acorrect.hxx
index 9f9c63477150..713cfd777ab2 100644
--- a/sw/source/core/inc/acorrect.hxx
+++ b/sw/source/core/inc/acorrect.hxx
@@ -69,8 +69,8 @@ public:
// return text of a previous paragraph
// If it does not exist or if there is nothing before, return blank.
- // - sal_True: paragraph before "normal" insertion position
- // - sal_False: paragraph in that the corrected word was inserted
+ // - true: paragraph before "normal" insertion position
+ // - false: paragraph in that the corrected word was inserted
// (does not need to be the same paragraph)
virtual OUString const* GetPrevPara(bool bAtNormalPos) SAL_OVERRIDE;
diff --git a/sw/source/core/inc/flowfrm.hxx b/sw/source/core/inc/flowfrm.hxx
index b6db0ef213f7..8a87a8aa9fa4 100644
--- a/sw/source/core/inc/flowfrm.hxx
+++ b/sw/source/core/inc/flowfrm.hxx
@@ -114,7 +114,7 @@ protected:
SwFlowFrm *m_pFollow;
SwFlowFrm *m_pPrecede;
- bool m_bLockJoin :1; // if sal_True than joins (and thus deletes) are prohibited!
+ bool m_bLockJoin :1; // if true than joins (and thus deletes) are prohibited!
bool m_bUndersized:1; // I am smaller than needed
bool m_bFlyLock :1; // stop positioning of at-character flyframes
@@ -159,7 +159,7 @@ public:
/** hook tree onto new parent with minimal operations and notifications */
void MoveSubTree( SwLayoutFrm* pParent, SwFrm* pSibling = 0 );
- bool HasFollow() const { return m_pFollow ? sal_True : sal_False; }
+ bool HasFollow() const { return m_pFollow != nullptr; }
bool IsFollow() const { return 0 != m_pPrecede; }
bool IsAnFollow( const SwFlowFrm *pFlow ) const;
const SwFlowFrm *GetFollow() const { return m_pFollow; }
diff --git a/sw/source/core/inc/flyfrm.hxx b/sw/source/core/inc/flyfrm.hxx
index 3208259dc615..8dc0d7bb4399 100644
--- a/sw/source/core/inc/flyfrm.hxx
+++ b/sw/source/core/inc/flyfrm.hxx
@@ -84,7 +84,7 @@ private:
// be formatted before the root is anchored correctly to a shell and
// because too much would be formatted as a result.
bool bLocked :1;
- // sal_True if the background of NotifyDTor needs to be notified at the end
+ // true if the background of NotifyDTor needs to be notified at the end
// of a MakeAll() call.
bool bNotifyBack :1;
@@ -95,14 +95,14 @@ protected:
// can handle it properly. Exceptions prove the rule.
bool bInvalid :1;
- // sal_True if the proposed height of an attribute is a minimal height
+ // true if the proposed height of an attribute is a minimal height
// (this means that the frame can grow higher if needed)
bool bMinHeight :1;
- // sal_True if the fly frame could not format position/size based on its
+ // true if the fly frame could not format position/size based on its
// attributes, e.g. because there was not enough space.
bool bHeightClipped :1;
bool bWidthClipped :1;
- // If sal_True call only the format after adjusting the width (CheckClip);
+ // If true then call only the format after adjusting the width (CheckClip);
// but the width will not be re-evaluated based on the attributes.
bool bFormatHeightOnly :1;
@@ -112,7 +112,7 @@ protected:
bool bAutoPosition :1; ///< FLY_AT_CHAR, anchored at character
bool bNoShrink :1; ///< temporary forbid shrinking to avoid loops
- // If sal_True, the content of the fly frame will not be deleted when it
+ // If true, the content of the fly frame will not be deleted when it
// is moved to an invisible layer.
bool bLockDeleteContent :1;
@@ -225,7 +225,7 @@ public:
SwFrm *FindLastLower();
// #i13147# - add parameter <_bForPaint> to avoid load of
- // the graphic during paint. Default value: sal_False
+ // the graphic during paint. Default value: false
bool GetContour( tools::PolyPolygon& rContour,
const bool _bForPaint = false ) const;
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx
index 959663c7d25b..651684ad4fbd 100644
--- a/sw/source/core/inc/frame.hxx
+++ b/sw/source/core/inc/frame.hxx
@@ -362,9 +362,9 @@ protected:
bool mbValidSize : 1;
bool mbValidLineNum : 1;
bool mbFixSize : 1;
- // if sal_True, frame will be painted completely even content was changed
+ // if true, frame will be painted completely even content was changed
// only partially. For CntntFrms a border (from Action) will exclusively
- // painted if <mbCompletePaint> is sal_True.
+ // painted if <mbCompletePaint> is true.
bool mbCompletePaint : 1;
bool mbRetouche : 1; // frame is responsible for retouching
@@ -427,7 +427,7 @@ protected:
#i28701#
Method has *only* to contain actions, which has to be performed on
- *every* assignment of the corresponding flag to <sal_False>.
+ *every* assignment of the corresponding flag to <false>.
*/
virtual void _ActionOnInvalidation( const InvalidationType _nInvalid );
@@ -808,7 +808,7 @@ public:
virtual void Prepare( const PrepareHint ePrep = PREP_CLEAR,
const void *pVoid = 0, bool bNotify = true );
- // sal_True if it is the correct class, sal_False otherwise
+ // true if it is the correct class, false otherwise
inline bool IsLayoutFrm() const;
inline bool IsRootFrm() const;
inline bool IsPageFrm() const;
diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx
index ed1d5ff3083c..fa1d7180d85c 100644
--- a/sw/source/core/inc/swfont.hxx
+++ b/sw/source/core/inc/swfont.hxx
@@ -210,7 +210,7 @@ public:
inline bool IsFntChg() const { return bFntChg; }
inline void SetFntChg( const bool bNew ) { bFntChg = bNew; }
- // the encapsulated SV-Font-methods (set bFntChg to sal_True)
+ // the encapsulated SV-Font-methods (set bFntChg to true)
inline void SetColor( const Color& rColor );
inline void SetFillColor( const Color& rColor );
inline void SetAlign( const FontAlign eAlign );
diff --git a/sw/source/filter/html/parcss1.hxx b/sw/source/filter/html/parcss1.hxx
index f4c0300cb758..b7e64dda0b2a 100644
--- a/sw/source/filter/html/parcss1.hxx
+++ b/sw/source/filter/html/parcss1.hxx
@@ -171,8 +171,8 @@ inline sal_Int32 CSS1Expression::GetSLength() const
* | | | |
* | | | DeclP( 'text-align', 'right' )
* | | DeclP( 'font-weight', 'bold' )
- * | SelP( 'H2', sal_False )
- * SelP( 'H1', sal_True )
+ * | SelP( 'H2', false )
+ * SelP( 'H1', true )
*/
class CSS1Parser
{
diff --git a/sw/source/filter/html/svxcss1.hxx b/sw/source/filter/html/svxcss1.hxx
index 87879eb3e7ce..39b7f8e8e74b 100644
--- a/sw/source/filter/html/svxcss1.hxx
+++ b/sw/source/filter/html/svxcss1.hxx
@@ -238,10 +238,10 @@ protected:
// Diese Methode wird fuer jeden Selektor mit dem zugehoerigen
// Item-Set aufgerufen. Fuer einen Selektor koennen mehrere
// Aufrufe erfolgen.
- // wenn sal_True zuruckgegeben wird, wird der Item-Set bzw. der
+ // wenn true zuruckgegeben wird, wird der Item-Set bzw. der
// Selektor nicht mehr gespeichert!
// Der ItemSet darf entsprechend modifiziert werden!
- // Die Implementierung dieser Methode gibt sal_False zurueck.
+ // Die Implementierung dieser Methode gibt false zurueck.
virtual bool StyleParsed( const CSS1Selector *pSelector,
SfxItemSet& rItemSet,
SvxCSS1PropertyInfo& rPropInfo );
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.hxx b/sw/source/filter/xml/XMLRedlineImportHelper.hxx
index 5a28e7952514..973148a4095d 100644
--- a/sw/source/filter/xml/XMLRedlineImportHelper.hxx
+++ b/sw/source/filter/xml/XMLRedlineImportHelper.hxx
@@ -50,7 +50,7 @@ class XMLRedlineImportHelper
RedlineMapType aRedlineMap;
- // if sal_True, no redlines should be inserted into document
+ // if true, no redlines should be inserted into document
// (This typically happen when a document is loaded in 'insert'-mode.)
bool bIgnoreRedlines;
diff --git a/sw/source/filter/xml/xmlimp.hxx b/sw/source/filter/xml/xmlimp.hxx
index 1dbb94adb1c7..1b7a3d469d20 100644
--- a/sw/source/filter/xml/xmlimp.hxx
+++ b/sw/source/filter/xml/xmlimp.hxx
@@ -70,7 +70,7 @@ class SwXMLImport: public SvXMLImport
sal_uInt16 nStyleFamilyMask;// Mask of styles to load
bool bLoadDoc : 1; // Load doc or styles only
bool bInsert : 1; // Insert mode. If styles are
- // loaded only sal_False means that
+ // loaded only false means that
// existing styles will be
// overwritten.
bool bBlock : 1; // Load text block
diff --git a/sw/source/uibase/inc/drawbase.hxx b/sw/source/uibase/inc/drawbase.hxx
index 8aaf44434492..b6aa7ea849ce 100644
--- a/sw/source/uibase/inc/drawbase.hxx
+++ b/sw/source/uibase/inc/drawbase.hxx
@@ -50,7 +50,7 @@ public:
inline bool IsInsertForm() const { return m_bInsForm; }
inline bool IsCreateObj() const { return m_bCreateObj; }
- // mouse- & key events; return value=sal_True: event was edited
+ // mouse- & key events; return value=true: event was edited
virtual bool KeyInput(const KeyEvent& rKEvt);
virtual bool MouseMove(const MouseEvent& rMEvt);
virtual bool MouseButtonUp(const MouseEvent& rMEvt);
diff --git a/sw/source/uibase/inc/pview.hxx b/sw/source/uibase/inc/pview.hxx
index 548e3901245e..c5ccce1c80f4 100644
--- a/sw/source/uibase/inc/pview.hxx
+++ b/sw/source/uibase/inc/pview.hxx
@@ -132,7 +132,7 @@ public:
/** Method to enable/disable book preview
@param _bBookPreview
input parameter - boolean indicating, if book preview mode has to
- switch on <sal_True> or of <sal_False>
+ switch on <true> or of <false>
@return boolean indicating, if book preview mode has changed.
*/
diff --git a/sw/source/uibase/inc/wrtsh.hxx b/sw/source/uibase/inc/wrtsh.hxx
index 4c03c9164cd9..024450c531f2 100644
--- a/sw/source/uibase/inc/wrtsh.hxx
+++ b/sw/source/uibase/inc/wrtsh.hxx
@@ -266,7 +266,7 @@ typedef bool (SwWrtShell:: *FNSimpleMove)();
long DelLine();
long DelLeft();
- // also deletes the frame or sets the cursor in the frame when bDelFrm == sal_False
+ // also deletes the frame or sets the cursor in the frame when bDelFrm == false
long DelRight();
long DelToEndOfPara();
long DelToStartOfPara();
@@ -311,8 +311,8 @@ typedef bool (SwWrtShell:: *FNSimpleMove)();
/**
Turns on numbering or bullets.
- @param bNum sal_True: turn on numbering
- sal_False: turn on bullets
+ @param bNum true: turn on numbering
+ false: turn on bullets
*/
void NumOrBulletOn(bool bNum); // #i29560#
void NumOrBulletOff(); // #i29560#
@@ -400,7 +400,7 @@ typedef bool (SwWrtShell:: *FNSimpleMove)();
bool GotoMark( const ::sw::mark::IMark* const pMark );
bool GotoMark( const ::sw::mark::IMark* const pMark, bool bSelect, bool bStart );
bool GotoMark( const OUString& rName );
- bool GoNextBookmark(); // sal_True when there still was one
+ bool GoNextBookmark(); // true when there still was one
bool GoPrevBookmark();
bool GotoFieldmark(::sw::mark::IFieldmark const * const pMark);