diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-08-29 08:27:54 +0200 |
---|---|---|
committer | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-09-08 11:23:42 +0200 |
commit | 58e4ff203e8f2703ab9433a3f49861ab306c8e4b (patch) | |
tree | 2c375967aa82e15f55d20e9f890a9a31226ec804 /sw/source/core/text/porlin.hxx | |
parent | 7d91d52bbd28ba2594da4069e83b441239ad2e58 (diff) |
Paint character border for tabulator
It seems tab portion is not a text portion so
we have to move text portion join members to
line portion.
Avoid painting border for tabulator after numbering
portion.
Change-Id: Ic773dd14a8e90fd68980c5a0220c6ac14da0a693
Diffstat (limited to 'sw/source/core/text/porlin.hxx')
-rw-r--r-- | sw/source/core/text/porlin.hxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sw/source/core/text/porlin.hxx b/sw/source/core/text/porlin.hxx index 68b93d76a5ac..fb8065c7a6eb 100644 --- a/sw/source/core/text/porlin.hxx +++ b/sw/source/core/text/porlin.hxx @@ -72,6 +72,8 @@ protected: SwLinePortion(); private: MSHORT nWhichPor; // Who's who? + bool m_bJoinBorderWithPrev; + bool m_bJoinBorderWithNext; void _Truncate(); @@ -186,6 +188,11 @@ public: // Accessibility: pass information about this portion to the PortionHandler virtual void HandlePortion( SwPortionHandler& rPH ) const; + bool GetJoinBorderWithPrev() const { return m_bJoinBorderWithPrev; } + bool GetJoinBorderWithNext() const { return m_bJoinBorderWithNext; } + void SetJoinBorderWithPrev( const bool bJoinPrev ) { m_bJoinBorderWithPrev = bJoinPrev; } + void SetJoinBorderWithNext( const bool bJoinNext ) { m_bJoinBorderWithNext = bJoinNext; } + OUTPUT_OPERATOR }; @@ -200,6 +207,8 @@ inline SwLinePortion &SwLinePortion::operator=(const SwLinePortion &rPortion) nLineLength = rPortion.nLineLength; nAscent = rPortion.nAscent; nWhichPor = rPortion.nWhichPor; + m_bJoinBorderWithPrev = rPortion.m_bJoinBorderWithPrev; + m_bJoinBorderWithNext = rPortion.m_bJoinBorderWithNext; return *this; } @@ -216,7 +225,9 @@ inline SwLinePortion::SwLinePortion(const SwLinePortion &rPortion) : pPortion( 0 ), nLineLength( rPortion.nLineLength ), nAscent( rPortion.nAscent ), - nWhichPor( rPortion.nWhichPor ) + nWhichPor( rPortion.nWhichPor ), + m_bJoinBorderWithPrev( rPortion.m_bJoinBorderWithPrev ), + m_bJoinBorderWithNext( rPortion.m_bJoinBorderWithNext ) { } |