summaryrefslogtreecommitdiff
path: root/xmloff/inc/txtfldi.hxx
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2000-11-30 15:46:20 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2000-11-30 15:46:20 +0000
commitbcea88902c6dd5a3bb22e4aca38e80ddcb682201 (patch)
tree2e393698a8c49f277303f9ee163fbacb76d839f1 /xmloff/inc/txtfldi.hxx
parent3607349697b2c6033b864bf7abf9cf70892f5eec (diff)
#80616#
- added: bibliography field im-/export - fixed: im-/export of indices - added: im-/export of index marks
Diffstat (limited to 'xmloff/inc/txtfldi.hxx')
-rw-r--r--xmloff/inc/txtfldi.hxx43
1 files changed, 40 insertions, 3 deletions
diff --git a/xmloff/inc/txtfldi.hxx b/xmloff/inc/txtfldi.hxx
index 62b8207b7942..8bd474ffb423 100644
--- a/xmloff/inc/txtfldi.hxx
+++ b/xmloff/inc/txtfldi.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtfldi.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: cl $ $Date: 2000-11-12 15:56:45 $
+ * last change: $Author: dvo $ $Date: 2000-11-30 16:46:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -101,7 +101,7 @@
namespace com { namespace sun { namespace star {
namespace xml { namespace sax { class XAttributeList; } }
namespace text { class XTextField; }
- namespace beans { class XPropertySet; }
+ namespace beans { class XPropertySet; struct PropertyValue; }
} } }
namespace rtl
@@ -1287,5 +1287,42 @@ protected:
::com::sun::star::beans::XPropertySet> & xPropertySet);
};
+/** import bibliography info fields (<text:bibliography-mark>) */
+class XMLBibliographyFieldImportContext : public XMLTextFieldImportContext
+{
+
+ const ::rtl::OUString sPropertyFields;
+
+ ::std::vector< ::com::sun::star::beans::PropertyValue> aValues;
+
+public:
+
+ TYPEINFO();
+
+ XMLBibliographyFieldImportContext(SvXMLImport& rImport,
+ XMLTextImportHelper& rHlp,
+ sal_uInt16 nPrfx,
+ const ::rtl::OUString& sLocalName);
+
+protected:
+
+ /// process attributes (fill aValues)
+ virtual void StartElement(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::xml::sax::XAttributeList> & xAttrList);
+
+ /// empty method; all attributes are handled in StartElement
+ virtual void ProcessAttribute( sal_uInt16 nAttrToken,
+ const ::rtl::OUString& sAttrValue );
+
+ /// convert aValues into sequence and set property
+ virtual void PrepareField(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::beans::XPropertySet> & xPropertySet);
+
+ static const sal_Char* MapBibliographyFieldName(::rtl::OUString sName);
+
+};
+
#endif