summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-04-02 17:16:16 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-04-03 10:20:06 -0400
commit48abb149d4a88f5dcb395d1cb8c79db57f5d3303 (patch)
tree0aaa7c06ec91911b7d7acdc00a66fd1692c98b28 /editeng
parenta41ea233419e4c573e889bf30df7b23fca700348 (diff)
Boolean cleanup.
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editdoc.cxx13
-rw-r--r--editeng/source/editeng/editdoc.hxx20
2 files changed, 17 insertions, 16 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 807ecee18aaa..7f4a03005ba8 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1685,22 +1685,23 @@ void ItemList::Insert( const SfxPoolItem* pItem )
}
-EditDoc::EditDoc( SfxItemPool* pPool ) : nLastCache(0)
+EditDoc::EditDoc( SfxItemPool* pPool ) :
+ nLastCache(0),
+ bIsVertical(false),
+ bIsFixedCellHeight(false),
+ bOwnerOfPool(pPool ? false : true),
+ bModified(false)
{
if ( pPool )
{
pItemPool = pPool;
- bOwnerOfPool = sal_False;
}
else
{
pItemPool = new EditEngineItemPool( sal_False );
- bOwnerOfPool = sal_True;
}
nDefTab = DEFTAB;
- bIsVertical = sal_False;
- bIsFixedCellHeight = sal_False;
// Don't create a empty node, Clear() will be called in EditEngine-CTOR
@@ -2023,7 +2024,7 @@ EditPaM EditDoc::Clear()
return aPaM;
}
-void EditDoc::SetModified( sal_Bool b )
+void EditDoc::SetModified( bool b )
{
bModified = b;
if ( bModified )
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx
index bd967ca476e0..750802a091a5 100644
--- a/editeng/source/editeng/editdoc.hxx
+++ b/editeng/source/editeng/editdoc.hxx
@@ -726,11 +726,11 @@ private:
SvxFont aDefFont; //faster than ever from the pool!!
sal_uInt16 nDefTab;
- sal_Bool bIsVertical;
- sal_Bool bIsFixedCellHeight;
+ bool bIsVertical:1;
+ bool bIsFixedCellHeight:1;
- sal_Bool bOwnerOfPool;
- sal_Bool bModified;
+ bool bOwnerOfPool:1;
+ bool bModified:1;
protected:
void ImplDestroyContents();
@@ -739,8 +739,8 @@ public:
EditDoc( SfxItemPool* pItemPool );
~EditDoc();
- sal_Bool IsModified() const { return bModified; }
- void SetModified( sal_Bool b );
+ bool IsModified() const { return bModified; }
+ void SetModified( bool b );
void SetModifyHdl( const Link& rLink ) { aModifyHdl = rLink; }
Link GetModifyHdl() const { return aModifyHdl; }
@@ -751,11 +751,11 @@ public:
void SetDefTab( sal_uInt16 nTab ) { nDefTab = nTab ? nTab : DEFTAB; }
sal_uInt16 GetDefTab() const { return nDefTab; }
- void SetVertical( sal_Bool bVertical ) { bIsVertical = bVertical; }
- sal_Bool IsVertical() const { return bIsVertical; }
+ void SetVertical( bool bVertical ) { bIsVertical = bVertical; }
+ bool IsVertical() const { return bIsVertical; }
- void SetFixedCellHeight( sal_Bool bUseFixedCellHeight ) { bIsFixedCellHeight = bUseFixedCellHeight; }
- sal_Bool IsFixedCellHeight() const { return bIsFixedCellHeight; }
+ void SetFixedCellHeight( bool bUseFixedCellHeight ) { bIsFixedCellHeight = bUseFixedCellHeight; }
+ bool IsFixedCellHeight() const { return bIsFixedCellHeight; }
EditPaM Clear();
EditPaM RemoveText();