summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/text/EnhancedPDFExportHelper.cxx1
-rw-r--r--sw/source/core/text/itrpaint.cxx1
-rw-r--r--sw/source/core/unocore/unoobj.cxx1
-rw-r--r--sw/source/filter/html/htmlatr.cxx1
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx1
-rw-r--r--sw/source/filter/ww8/docxfootnotes.hxx22
6 files changed, 10 insertions, 17 deletions
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index be620458f355..dde5b366c0fb 100644
--- a/sw/source/core/text/EnhancedPDFExportHelper.cxx
+++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx
@@ -55,7 +55,6 @@
#include <docufld.hxx>
#include <ftnidx.hxx>
#include <txtftn.hxx>
-#include <fmtftn.hxx>
#include <rootfrm.hxx>
#include <pagefrm.hxx>
#include <txtfrm.hxx>
diff --git a/sw/source/core/text/itrpaint.cxx b/sw/source/core/text/itrpaint.cxx
index 185979f05c46..4ea781fb9f60 100644
--- a/sw/source/core/text/itrpaint.cxx
+++ b/sw/source/core/text/itrpaint.cxx
@@ -29,7 +29,6 @@
#include <fchrfmt.hxx>
#include <frmatr.hxx>
#include <sfx2/printer.hxx>
-#include <fmtftn.hxx>
#include <fmtfld.hxx>
#include <fldbas.hxx> // SwField
#include <rootfrm.hxx>
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index 013f0ed8d45f..f898d1c86499 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -81,7 +81,6 @@
#include <svtools/ctrltool.hxx>
#include <flypos.hxx>
#include <txtftn.hxx>
-#include <fmtftn.hxx>
#include <com/sun/star/text/WrapTextMode.hpp>
#include <com/sun/star/text/TextContentAnchorType.hpp>
#include <com/sun/star/text/TextMarkupType.hpp>
diff --git a/sw/source/filter/html/htmlatr.cxx b/sw/source/filter/html/htmlatr.cxx
index 02fcb4a8cf20..5ae4128cb58f 100644
--- a/sw/source/filter/html/htmlatr.cxx
+++ b/sw/source/filter/html/htmlatr.cxx
@@ -55,7 +55,6 @@
#include <fmtpdsc.hxx>
#include <fmtflcnt.hxx>
#include <fmtinfmt.hxx>
-#include <fmtftn.hxx>
#include <txatbase.hxx>
#include <frmatr.hxx>
#include <charfmt.hxx>
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 51caae9e5b20..7ea8024e6fec 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -23,6 +23,7 @@
#include "writerwordglue.hxx"
#include "ww8par.hxx"
#include "fmtcntnt.hxx"
+#include "fmtftn.hxx"
#include "fchrfmt.hxx"
#include "tgrditem.hxx"
#include "fmtruby.hxx"
diff --git a/sw/source/filter/ww8/docxfootnotes.hxx b/sw/source/filter/ww8/docxfootnotes.hxx
index 58134e2eb015..23ce08c08a43 100644
--- a/sw/source/filter/ww8/docxfootnotes.hxx
+++ b/sw/source/filter/ww8/docxfootnotes.hxx
@@ -17,17 +17,13 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef _DOCXFOOTNOTES_HXX_
-#define _DOCXFOOTNOTES_HXX_
-
-#include <fmtftn.hxx>
-
-#include <rtl/string.hxx>
-#include <rtl/ustring.hxx>
-#include <sax/fshelper.hxx>
+#ifndef DOCXFOOTNOTES_HXX
+#define DOCXFOOTNOTES_HXX
#include <vector>
+class SwFmtFtn;
+
namespace docx {
typedef ::std::vector< const SwFmtFtn* > FootnotesVector;
@@ -56,10 +52,6 @@ public:
/// Return the current footnote/endnote and clear the 'current' state.
const SwFmtFtn* getCurrent( sal_Int32& rId )
{
- // skip ids 0 and 1 - they are reserved for separator and
- // continuationSeparator
- rId = m_nCurrent + 2;
-
// anything to write at all?
if ( m_nCurrent < 0 )
{
@@ -67,6 +59,10 @@ public:
return NULL;
}
+ // skip ids 0 and 1 - they are reserved for separator and
+ // continuationSeparator
+ rId = m_nCurrent + 2;
+
const SwFmtFtn *pFootnote = m_aFootnotes[m_nCurrent];
m_nCurrent = -1;
@@ -88,6 +84,6 @@ public:
} // namespace docx
-#endif // _DOCXFOOTNOTES_HXX_
+#endif // DOCXFOOTNOTES_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */