summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2000-11-16 17:19:02 +0000
committerSascha Ballach <sab@openoffice.org>2000-11-16 17:19:02 +0000
commite8cf55bc40cb0c0dbf7042c8fdf7c4d7aad47c93 (patch)
tree6e4ba6366e0d937a4fcb72addf460f704436b31b
parent6fb28a5a2b00e6219ef1a003c3ec7ec716e89909 (diff)
add document statistic
-rw-r--r--xmloff/inc/xmlkywd.hxx6
-rw-r--r--xmloff/source/meta/xmlmetai.cxx10
2 files changed, 12 insertions, 4 deletions
diff --git a/xmloff/inc/xmlkywd.hxx b/xmloff/inc/xmlkywd.hxx
index 6fa3324ab677..7172982f122c 100644
--- a/xmloff/inc/xmlkywd.hxx
+++ b/xmloff/inc/xmlkywd.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlkywd.hxx,v $
*
- * $Revision: 1.38 $
+ * $Revision: 1.39 $
*
- * last change: $Author: mib $ $Date: 2000-11-16 13:23:55 $
+ * last change: $Author: sab $ $Date: 2000-11-16 18:17:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -281,6 +281,7 @@ XML_CONSTASCII_ACTION( sXML_casemap_uppercase, "uppercase" );
XML_CONSTASCII_ACTION( sXML_categories, "categories" );
XML_CONSTASCII_ACTION( sXML_category, "category" );
XML_CONSTASCII_ACTION( sXML_category_and_value, "category-and-value" );
+XML_CONSTASCII_ACTION( sXML_cell_count, "cell-count");
XML_CONSTASCII_ACTION( sXML_cell_protect, "cell-protect");
XML_CONSTASCII_ACTION( sXML_cell_range_address, "cell-range-address");
XML_CONSTASCII_ACTION( sXML_cell_range_source, "cell-range-source");
@@ -465,6 +466,7 @@ XML_CONSTASCII_ACTION( sXML_distribute_letter, "distribute-letter" );
XML_CONSTASCII_ACTION( sXML_distribute_space, "distribute-space" );
XML_CONSTASCII_ACTION( sXML_divide, "divide" );
XML_CONSTASCII_ACTION( sXML_document, "document" );
+XML_CONSTASCII_ACTION( sXML_document_statistic, "document-statistic" );
XML_CONSTASCII_ACTION( sXML_domain, "domain" );
XML_CONSTASCII_ACTION( sXML_dot, "dot" );
XML_CONSTASCII_ACTION( sXML_dotted, "dotted" );
diff --git a/xmloff/source/meta/xmlmetai.cxx b/xmloff/source/meta/xmlmetai.cxx
index 12f10a481d26..a25aac9a7b11 100644
--- a/xmloff/source/meta/xmlmetai.cxx
+++ b/xmloff/source/meta/xmlmetai.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlmetai.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:07:04 $
+ * last change: $Author: sab $ $Date: 2000-11-16 18:19:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -156,6 +156,7 @@ enum SfxXMLMetaElemTokens
XML_TOK_META_EDITINGCYCLES,
XML_TOK_META_EDITINGDURATION,
XML_TOK_META_USERDEFINED,
+ XML_TOK_META_DOCUMENT_STATISTIC,
XML_TOK_META_ELEM_END = XML_TOK_UNKNOWN
};
@@ -181,6 +182,7 @@ static __FAR_DATA SvXMLTokenMapEntry aMetaElemTokenMap[] =
{ XML_NAMESPACE_META, sXML_editing_cycles, XML_TOK_META_EDITINGCYCLES },
{ XML_NAMESPACE_META, sXML_editing_duration, XML_TOK_META_EDITINGDURATION },
{ XML_NAMESPACE_META, sXML_user_defined, XML_TOK_META_USERDEFINED },
+ { XML_NAMESPACE_META, sXML_document_statistic,XML_TOK_META_DOCUMENT_STATISTIC },
XML_TOKEN_MAP_END
};
@@ -543,6 +545,8 @@ SfxXMLMetaElementContext::SfxXMLMetaElementContext( SvXMLImport& rImport, sal_uI
}
}
}
+ else if ( nElementType == XML_TOK_META_DOCUMENT_STATISTIC )
+ GetImport().SetStatisticAttributes(xAttrList);
}
SfxXMLMetaElementContext::~SfxXMLMetaElementContext()
@@ -695,6 +699,8 @@ void SfxXMLMetaElementContext::EndElement()
case XML_TOK_META_USERDEFINED:
rParent.AddUserField( sFieldName, sContent );
break;
+ case XML_TOK_META_DOCUMENT_STATISTIC:
+ break;
default:
DBG_ERROR("wrong element");
}