summaryrefslogtreecommitdiff
path: root/xmloff/inc
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-09-04 09:07:25 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-09-04 09:07:25 +0000
commitaaccef8d82eafcf6bead632c0bee61fc35cf9e8a (patch)
tree12a857502e40dc7599f9552923a70bcc181d388b /xmloff/inc
parent50a2fbd659de13ba1094f6c64352d7ede33034fd (diff)
INTEGRATION: CWS swenhancedfields2 (1.9.12); FILE MERGED
2008/08/04 12:37:21 b_michaelsen 1.9.12.2: RESYNC: (1.9-1.13); FILE MERGED 2008/04/23 08:08:50 ama 1.9.12.1: #i33737#: Enhanced fields
Diffstat (limited to 'xmloff/inc')
-rw-r--r--xmloff/inc/xmloff/txtimp.hxx32
1 files changed, 31 insertions, 1 deletions
diff --git a/xmloff/inc/xmloff/txtimp.hxx b/xmloff/inc/xmloff/txtimp.hxx
index c3ad5a64df..d24677ec9c 100644
--- a/xmloff/inc/xmloff/txtimp.hxx
+++ b/xmloff/inc/xmloff/txtimp.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: txtimp.hxx,v $
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
* This file is part of OpenOffice.org.
*
@@ -51,6 +51,9 @@
class XMLTextListsHelper;
// <--
+#include <com/sun/star/text/XFormField.hpp>
+
+
class SvXMLImport;
class SvXMLStylesContext;
class XMLTextListBlockContext;
@@ -238,6 +241,10 @@ enum XMLTextPElemTokens
XML_TOK_DRAW_DATE_TIME,
XML_TOK_TEXT_PAGE_CONTINUATION,
+ XML_TOK_TEXT_FIELDMARK,
+ XML_TOK_TEXT_FIELDMARK_START,
+ XML_TOK_TEXT_FIELDMARK_END,
+
XML_TOK_TEXT_P_ELEM_END=XML_TOK_UNKNOWN
};
@@ -405,6 +412,9 @@ class XMLOFF_DLLPUBLIC XMLTextImportHelper : public UniRefBase
::rtl::OUString>,
::comphelper::UStringLess> aBookmarkStartRanges;
+ typedef ::std::vector< ::rtl::OUString> BookmarkVector_t;
+ BookmarkVector_t aBookmarkVector;
+
/// backpatcher for references to footnotes and endnotes
XMLPropertyBackpatcher<sal_Int16> * pFootnoteBackpatcher;
@@ -468,6 +478,14 @@ class XMLOFF_DLLPUBLIC XMLTextImportHelper : public UniRefBase
// Code is implemented in XMLPropertyBackpatcher.cxx
SAL_DLLPRIVATE void _FinitBackpatcher();
+ typedef ::std::pair< ::rtl::OUString, ::rtl::OUString> field_name_type_t;
+ typedef ::std::pair< ::rtl::OUString, ::rtl::OUString > field_param_t;
+ typedef ::std::vector< field_param_t > field_params_t;
+ typedef ::std::pair< field_name_type_t, field_params_t > field_stack_item_t;
+ typedef ::std::stack< field_stack_item_t > field_stack_t;
+
+ field_stack_t aFieldStack;
+
protected:
virtual SvXMLImportContext *CreateTableChildContext(
SvXMLImport& rImport,
@@ -744,6 +762,18 @@ public:
::com::sun::star::text::XTextRange> & o_rRange,
::rtl::OUString& o_rXmlId);
+ ::rtl::OUString FindActiveBookmarkName();
+ ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > GetRangeFor(::rtl::OUString &sName);
+
+ void pushFieldCtx( ::rtl::OUString name, ::rtl::OUString type );
+ void popFieldCtx();
+ void addFieldParam( ::rtl::OUString name, ::rtl::OUString value );
+ void setCurrentFieldParamsTo(::com::sun::star::uno::Reference< ::com::sun::star::text::XFormField> &xFormField);
+ ::rtl::OUString getCurrentFieldName();
+ ::rtl::OUString getCurrentFieldType();
+ bool hasCurrentFieldCtx();
+
+
/// insert new footnote ID.
/// Also fixup open references from the backpatch list to this ID.
// Code is implemented in XMLPropertyBackpatcher.cxx