diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-06-27 16:02:45 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-06-27 16:15:19 +0200 |
commit | b8907bf3d3b37c686a414ffbbd2d732348aab5b9 (patch) | |
tree | 44abc50f5cdd5c111ada36a0a6dbe44392834c59 /sw/source/filter/ww8/rtfattributeoutput.hxx | |
parent | b51d9c633c2b5d03478be7b175fdbea367376c72 (diff) |
fdo#78758: sw: RTF export: don't export multiple \fldrst for one hyperlink
Ensure that we export only one \fldresult per hyperlink by doing that in
StartURL() and EndURL(); the TextINetFormat() is called once per text
portion. This shouldn't cause problems as there can't be anything
between the end of the \field group and the start of \fldresult anyway.
Replace the annoying call to EndURL() from EndRun() with a special case
in EndURL() to store things in the right buffer (hopefully).
(somehow this is regression from c4498251cb7181a9f272b0720f398597c0daef09)
Change-Id: I209ea7a384fb1cb5d1505a70ecc4a4536bbf26a2
Diffstat (limited to 'sw/source/filter/ww8/rtfattributeoutput.hxx')
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.hxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.hxx b/sw/source/filter/ww8/rtfattributeoutput.hxx index 8452f73c96a6..d10cb92c28bd 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.hxx +++ b/sw/source/filter/ww8/rtfattributeoutput.hxx @@ -94,7 +94,7 @@ public: virtual bool StartURL(const OUString& rUrl, const OUString& rTarget) SAL_OVERRIDE; /// Output URL end. - virtual bool EndURL() SAL_OVERRIDE; + virtual bool EndURL(bool isAtEndOfParagraph) SAL_OVERRIDE; virtual void FieldVanish(const OUString& rTxt, ww::eField eType) SAL_OVERRIDE; @@ -573,11 +573,6 @@ private: */ bool m_bWroteCellInfo; - /* - * If we had a field result in the URL. - */ - bool m_bHadFieldResult; - /// If we ended a table row without starting a new one. bool m_bTableRowEnded; @@ -589,8 +584,6 @@ private: bool m_bInRun; - bool m_bInURL; - /// Maps ID's to postit fields, used in atrfstart/end and atnref. std::map<sal_uInt16, const SwPostItField*> m_aPostitFields; |