summaryrefslogtreecommitdiff
path: root/xmloff/inc
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2001-10-25 11:37:12 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2001-10-25 11:37:12 +0000
commit8dea1b9e0e01ce78a5c761559608b196616237d0 (patch)
tree75779e6b63666c538ba5e7e035f8b22be8ff407e /xmloff/inc
parent77ab6c56b222123b3dd7fe6a043529c3d09b362e (diff)
#93291# TableCalc field implemented
Diffstat (limited to 'xmloff/inc')
-rw-r--r--xmloff/inc/txtflde.hxx6
-rw-r--r--xmloff/inc/txtvfldi.hxx47
2 files changed, 48 insertions, 5 deletions
diff --git a/xmloff/inc/txtflde.hxx b/xmloff/inc/txtflde.hxx
index f9739e360474..5828a48a8a17 100644
--- a/xmloff/inc/txtflde.hxx
+++ b/xmloff/inc/txtflde.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtflde.hxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: dvo $ $Date: 2001-08-02 18:51:32 $
+ * last change: $Author: dvo $ $Date: 2001-10-25 12:37:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -190,6 +190,8 @@ enum FieldIdEnum {
FIELD_ID_MEASURE, // for measure shapes
+ FIELD_ID_TABLE_FORMULA, // DEPRECATED: table formulas (Writer 2.0)
+
FIELD_ID_UNKNOWN // invalid or unknown field type!
};
diff --git a/xmloff/inc/txtvfldi.hxx b/xmloff/inc/txtvfldi.hxx
index def0ef72a486..5bdc609bf0fc 100644
--- a/xmloff/inc/txtvfldi.hxx
+++ b/xmloff/inc/txtvfldi.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtvfldi.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: dvo $ $Date: 2001-06-29 21:07:26 $
+ * last change: $Author: dvo $ $Date: 2001-10-25 12:37:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -557,7 +557,7 @@ public:
::com::sun::star::xml::sax::XAttributeList> & xAttrList,
enum VarType eVarType); /// variable type
- /// get field master for name and rename if appropriate [TODO: rename]
+ /// get field master for name and rename if appropriate
static sal_Bool FindFieldMaster(::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertySet> & xMaster,
SvXMLImport& rImport,
@@ -567,6 +567,47 @@ public:
};
+
+/** import table formula fields (deprecated; for Writer 2.0 compatibility) */
+class XMLTableFormulaImportContext : public XMLTextFieldImportContext
+{
+ const ::rtl::OUString sPropertyNumberFormat;
+ const ::rtl::OUString sPropertyContent;
+ const ::rtl::OUString sPropertyIsShowFormula;
+ const ::rtl::OUString sPropertyCurrentPresentation;
+
+ XMLValueImportHelper aValueHelper;
+
+ ::rtl::OUString sFormula;
+ sal_Bool bFormulaOK;
+
+ sal_Bool bIsShowFormula;
+
+public:
+
+ TYPEINFO();
+
+ XMLTableFormulaImportContext(
+ SvXMLImport& rImport, /// XML Import
+ XMLTextImportHelper& rHlp, /// text import helper
+ sal_uInt16 nPrfx, /// namespace prefix
+ const ::rtl::OUString& rLocalName); /// element name w/o prefix
+ virtual ~XMLTableFormulaImportContext();
+
+protected:
+
+ /// process attribute values
+ virtual void ProcessAttribute( sal_uInt16 nAttrToken,
+ const ::rtl::OUString& sAttrValue );
+
+ /// prepare XTextField for insertion into document
+ virtual void PrepareField(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::beans::XPropertySet> & xPropertySet);
+};
+
+
+
/** import database display fields (<text:database-display>) */
class XMLDatabaseDisplayImportContext : public XMLDatabaseFieldImportContext
{