summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfdocumentimpl.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-11-30 15:33:52 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-11-30 17:25:15 +0100
commitb836bf389d1150c9cafbb0aefa641af2316e536c (patch)
tree7014fbe9dbc2ac90e6f1c99837e86bb8824483d6 /writerfilter/source/rtftok/rtfdocumentimpl.hxx
parent42f6308d1b4c352b8949a4ab8c2c77388d4a29e9 (diff)
fdo#57708 fix fake page break problem during RTF import
The core of this change is: so far the continous section break at the end of the document was sent as a normal section break. This was introduced in commit 892d33c8d5033b4f8f7889bf91d257f55adf0e1f, probably as a workaround (sadly it's not documented and I no longer remember). Don't do this, since it causes additional page breaks during import. Instead, fix properly whatever was broken after getting rid of this workaround. Change-Id: I28c372d539c150fe21ff9db31209f9935a5e9063
Diffstat (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.hxx')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.hxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.hxx b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
index 98011640306f..7147fa7b79df 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.hxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
@@ -487,8 +487,8 @@ namespace writerfilter {
void replayBuffer(RTFBuffer_t& rBuffer);
/// If we have some unicode or hex characters to send.
void checkUnicode(bool bUnicode = true, bool bHex = true);
- /// If we have a pending continous section break.
- void checkDeferredContSectBreak();
+ /// If we need a final section break at the end of the document.
+ void setNeedSect(bool bNeedSect = true);
uno::Reference<uno::XComponentContext> const& m_xContext;
uno::Reference<io::XInputStream> const& m_xInputStream;
@@ -581,7 +581,12 @@ namespace writerfilter {
rtl::OStringBuffer m_aHexBuffer;
/// Formula import.
oox::formulaimport::XmlStreamBuilder m_aMathBuffer;
- bool m_bDeferredContSectBreak;
+ /// If the next continous section break should be ignored.
+ bool m_bIgnoreNextContSectBreak;
+ /// If a section break is needed before the end of the doc (false right after a section break).
+ bool m_bNeedSect;
+ /// If aFrame.inFrame() was true in the previous state.
+ bool m_bWasInFrame;
};
} // namespace rtftok
} // namespace writerfilter