diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-07-01 15:04:00 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-07-01 15:04:00 +0000 |
commit | c16511f1d51b2acabbd6c811b827e51bfe00df38 (patch) | |
tree | e7421b0df288802423edef341431fc2e436140d5 | |
parent | 0fe58b83b2f69571d87c6ca6f7f0839be3eabde0 (diff) |
INTEGRATION: CWS odfmetadata (1.26.50); FILE MERGED
2008/06/19 17:06:56 mst 1.26.50.1: #i90620#: import xml:id in text elements
- xmloff/source/text/XMLIndexTOCContext.cxx:
+ XMLIndexTOCContext::StartElement(): attribute xml:id
- xmloff/source/text/XMLSectionImportContext{.hxx,.cxx}:
+ XMLSectionToken: new token: XML_TOK_SECTION_XMLID
+ XMLSectionImportContext::ProcessAttributes(): attribute xml:id
- xmloff/source/text/XMLTextListBlockContext{.hxx,.cxx}:
+ XMLTextListBlockContext::XMLTextListBlockContext(): attribute xml:id
- xmloff/source/text/XMLTextListItemContext.cxx:
+ XMLTextListItemContext::XMLTextListItemContext(): attribute xml:id
- xmloff/source/text/XMLTextMarkImportContext{.hxx,.cxx}:
+ refactor methods to pass XmlId around
+ XMLTextMarkImportContext::FindName(): attribute xml:id
- xmloff/source/text/txtparai{.hxx,.cxx}:
+ new class XMLMetaImportContext
+ XMLImpSpanContext_Impl::CreateChildContext():
handle TEXT_META and (provisionally) TEXT_META_FIELD
+ XMLParaContext::XMLParaContext(): attribute xml:id
-rw-r--r-- | xmloff/source/text/XMLSectionImportContext.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xmloff/source/text/XMLSectionImportContext.cxx b/xmloff/source/text/XMLSectionImportContext.cxx index 7c8f9d8500ef..7148bc92fc3a 100644 --- a/xmloff/source/text/XMLSectionImportContext.cxx +++ b/xmloff/source/text/XMLSectionImportContext.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XMLSectionImportContext.cxx,v $ - * $Revision: 1.26 $ + * $Revision: 1.27 $ * * This file is part of OpenOffice.org. * @@ -73,6 +73,7 @@ const sal_Char sAPI_ProtectionKey[] = "ProtectionKey"; enum XMLSectionToken { + XML_TOK_SECTION_XMLID, XML_TOK_SECTION_STYLE_NAME, XML_TOK_SECTION_NAME, XML_TOK_SECTION_CONDITION, @@ -84,6 +85,7 @@ enum XMLSectionToken static __FAR_DATA SvXMLTokenMapEntry aSectionTokenMap[] = { + { XML_NAMESPACE_XML , XML_ID, XML_TOK_SECTION_XMLID }, { XML_NAMESPACE_TEXT, XML_STYLE_NAME, XML_TOK_SECTION_STYLE_NAME }, { XML_NAMESPACE_TEXT, XML_NAME, XML_TOK_SECTION_NAME }, { XML_NAMESPACE_TEXT, XML_CONDITION, XML_TOK_SECTION_CONDITION }, @@ -162,6 +164,9 @@ void XMLSectionImportContext::StartElement( // save PropertySet (for CreateChildContext) xSectionPropertySet = xPropSet; + // xml:id for RDF metadata + GetImport().SetXmlId(xIfc, sXmlId); + // name Reference<XNamed> xNamed(xPropSet, UNO_QUERY); xNamed->setName(sName); @@ -272,6 +277,9 @@ void XMLSectionImportContext::ProcessAttributes( switch (aTokenMap.Get(nNamePrefix, sLocalName)) { + case XML_TOK_SECTION_XMLID: + sXmlId = sAttr; + break; case XML_TOK_SECTION_STYLE_NAME: sStyleName = sAttr; break; |