Kaydet (Commit) e8cf55bc authored tarafından Sascha Ballach's avatar Sascha Ballach

add document statistic

üst 6fb28a5a
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: xmlkywd.hxx,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -281,6 +281,7 @@ XML_CONSTASCII_ACTION( sXML_casemap_uppercase, "uppercase" ); ...@@ -281,6 +281,7 @@ XML_CONSTASCII_ACTION( sXML_casemap_uppercase, "uppercase" );
XML_CONSTASCII_ACTION( sXML_categories, "categories" ); XML_CONSTASCII_ACTION( sXML_categories, "categories" );
XML_CONSTASCII_ACTION( sXML_category, "category" ); XML_CONSTASCII_ACTION( sXML_category, "category" );
XML_CONSTASCII_ACTION( sXML_category_and_value, "category-and-value" ); 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_protect, "cell-protect");
XML_CONSTASCII_ACTION( sXML_cell_range_address, "cell-range-address"); XML_CONSTASCII_ACTION( sXML_cell_range_address, "cell-range-address");
XML_CONSTASCII_ACTION( sXML_cell_range_source, "cell-range-source"); XML_CONSTASCII_ACTION( sXML_cell_range_source, "cell-range-source");
...@@ -465,6 +466,7 @@ XML_CONSTASCII_ACTION( sXML_distribute_letter, "distribute-letter" ); ...@@ -465,6 +466,7 @@ XML_CONSTASCII_ACTION( sXML_distribute_letter, "distribute-letter" );
XML_CONSTASCII_ACTION( sXML_distribute_space, "distribute-space" ); XML_CONSTASCII_ACTION( sXML_distribute_space, "distribute-space" );
XML_CONSTASCII_ACTION( sXML_divide, "divide" ); XML_CONSTASCII_ACTION( sXML_divide, "divide" );
XML_CONSTASCII_ACTION( sXML_document, "document" ); XML_CONSTASCII_ACTION( sXML_document, "document" );
XML_CONSTASCII_ACTION( sXML_document_statistic, "document-statistic" );
XML_CONSTASCII_ACTION( sXML_domain, "domain" ); XML_CONSTASCII_ACTION( sXML_domain, "domain" );
XML_CONSTASCII_ACTION( sXML_dot, "dot" ); XML_CONSTASCII_ACTION( sXML_dot, "dot" );
XML_CONSTASCII_ACTION( sXML_dotted, "dotted" ); XML_CONSTASCII_ACTION( sXML_dotted, "dotted" );
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: xmlmetai.cxx,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -156,6 +156,7 @@ enum SfxXMLMetaElemTokens ...@@ -156,6 +156,7 @@ enum SfxXMLMetaElemTokens
XML_TOK_META_EDITINGCYCLES, XML_TOK_META_EDITINGCYCLES,
XML_TOK_META_EDITINGDURATION, XML_TOK_META_EDITINGDURATION,
XML_TOK_META_USERDEFINED, XML_TOK_META_USERDEFINED,
XML_TOK_META_DOCUMENT_STATISTIC,
XML_TOK_META_ELEM_END = XML_TOK_UNKNOWN XML_TOK_META_ELEM_END = XML_TOK_UNKNOWN
}; };
...@@ -181,6 +182,7 @@ static __FAR_DATA SvXMLTokenMapEntry aMetaElemTokenMap[] = ...@@ -181,6 +182,7 @@ static __FAR_DATA SvXMLTokenMapEntry aMetaElemTokenMap[] =
{ XML_NAMESPACE_META, sXML_editing_cycles, XML_TOK_META_EDITINGCYCLES }, { XML_NAMESPACE_META, sXML_editing_cycles, XML_TOK_META_EDITINGCYCLES },
{ XML_NAMESPACE_META, sXML_editing_duration, XML_TOK_META_EDITINGDURATION }, { XML_NAMESPACE_META, sXML_editing_duration, XML_TOK_META_EDITINGDURATION },
{ XML_NAMESPACE_META, sXML_user_defined, XML_TOK_META_USERDEFINED }, { 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 XML_TOKEN_MAP_END
}; };
...@@ -543,6 +545,8 @@ SfxXMLMetaElementContext::SfxXMLMetaElementContext( SvXMLImport& rImport, sal_uI ...@@ -543,6 +545,8 @@ SfxXMLMetaElementContext::SfxXMLMetaElementContext( SvXMLImport& rImport, sal_uI
} }
} }
} }
else if ( nElementType == XML_TOK_META_DOCUMENT_STATISTIC )
GetImport().SetStatisticAttributes(xAttrList);
} }
SfxXMLMetaElementContext::~SfxXMLMetaElementContext() SfxXMLMetaElementContext::~SfxXMLMetaElementContext()
...@@ -695,6 +699,8 @@ void SfxXMLMetaElementContext::EndElement() ...@@ -695,6 +699,8 @@ void SfxXMLMetaElementContext::EndElement()
case XML_TOK_META_USERDEFINED: case XML_TOK_META_USERDEFINED:
rParent.AddUserField( sFieldName, sContent ); rParent.AddUserField( sFieldName, sContent );
break; break;
case XML_TOK_META_DOCUMENT_STATISTIC:
break;
default: default:
DBG_ERROR("wrong element"); DBG_ERROR("wrong element");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment