diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-02 20:19:27 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-03 10:20:08 -0400 |
commit | 9f1c57b4f829a0faf28e436bca1aed49694c7cb6 (patch) | |
tree | 8726ffcd1c05e543a203bfece4e7328b220cd0d1 /editeng/source/editeng/editdoc.hxx | |
parent | 659c008ffdbaa67c3c344a1b477f24700b224ee6 (diff) |
Bool-ness.
Diffstat (limited to 'editeng/source/editeng/editdoc.hxx')
-rw-r--r-- | editeng/source/editeng/editdoc.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index c71229a33934..0c995c90e8df 100644 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -464,8 +464,8 @@ private: sal_uInt16 nTxtHeight; // Pure Text height sal_uInt16 nCrsrHeight; // For contour flow high lines => cursor is large. sal_uInt16 nMaxAscent; - sal_Bool bHangingPunctuation; - sal_Bool bInvalid; // for skillful formatting + bool bHangingPunctuation:1; + bool bInvalid:1; // for skillful formatting public: EditLine(); @@ -509,8 +509,8 @@ public: void SetMaxAscent( sal_uInt16 n ) { nMaxAscent = n; } sal_uInt16 GetMaxAscent() const { return nMaxAscent; } - void SetHangingPunctuation( sal_Bool b ) { bHangingPunctuation = b; } - sal_Bool IsHangingPunctuation() const { return bHangingPunctuation; } + void SetHangingPunctuation( bool b ) { bHangingPunctuation = b; } + bool IsHangingPunctuation() const { return bHangingPunctuation; } sal_uInt16 GetLen() const { return nEnd - nStart; } @@ -519,10 +519,10 @@ public: Size CalcTextSize( ParaPortion& rParaPortion ); - sal_Bool IsInvalid() const { return bInvalid; } - sal_Bool IsValid() const { return !bInvalid; } - void SetInvalid() { bInvalid = sal_True; } - void SetValid() { bInvalid = sal_False; } + bool IsInvalid() const { return bInvalid; } + bool IsValid() const { return !bInvalid; } + void SetInvalid() { bInvalid = true; } + void SetValid() { bInvalid = false; } sal_Bool IsEmpty() const { return (nEnd > nStart) ? sal_False : sal_True; } |