Kaydet (Commit) 86d13b32 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS oasis (1.34.178); FILE MERGED

2004/06/16 07:53:56 mib 1.34.178.3: #i20153#: new package URI schema, namespaced conditions
2004/06/12 19:45:10 mib 1.34.178.2: RESYNC: (1.34-1.35); FILE MERGED
2004/05/07 12:00:05 mib 1.34.178.1: - #i20153#: encode/decode style names (ooo2oasis missing)
üst c5e3e80f
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLSectionExport.cxx,v $ * $RCSfile: XMLSectionExport.cxx,v $
* *
* $Revision: 1.35 $ * $Revision: 1.36 $
* *
* last change: $Author: rt $ $Date: 2004-05-17 16:28:17 $ * last change: $Author: rt $ $Date: 2004-07-13 08:35:07 $
* *
* 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
...@@ -290,9 +290,9 @@ void XMLSectionExport::ExportSectionStart( ...@@ -290,9 +290,9 @@ void XMLSectionExport::ExportSectionStart(
{ {
// always export section style // always export section style
GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_STYLE_NAME, GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_STYLE_NAME,
GetParaExport().Find( GetParaExport().Find(
XML_STYLE_FAMILY_TEXT_SECTION, XML_STYLE_FAMILY_TEXT_SECTION,
xPropertySet, sEmpty )); xPropertySet, sEmpty ) );
// export index or regular section // export index or regular section
Reference<XDocumentIndex> xIndex; Reference<XDocumentIndex> xIndex;
...@@ -559,7 +559,10 @@ void XMLSectionExport::ExportRegularSectionStart( ...@@ -559,7 +559,10 @@ void XMLSectionExport::ExportRegularSectionStart(
enum XMLTokenEnum eDisplay = XML_TOKEN_INVALID; enum XMLTokenEnum eDisplay = XML_TOKEN_INVALID;
if (sCond.getLength() > 0) if (sCond.getLength() > 0)
{ {
GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_CONDITION, sCond); OUString sQValue =
GetExport().GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_OOOW,
sCond );
GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_CONDITION, sQValue);
eDisplay = XML_CONDITION; eDisplay = XML_CONDITION;
// #97450# store hidden-status (of conditional sections only) // #97450# store hidden-status (of conditional sections only)
...@@ -801,7 +804,7 @@ void XMLSectionExport::ExportAlphabeticalIndexStart( ...@@ -801,7 +804,7 @@ void XMLSectionExport::ExportAlphabeticalIndexStart(
{ {
GetExport().AddAttribute(XML_NAMESPACE_TEXT, GetExport().AddAttribute(XML_NAMESPACE_TEXT,
XML_MAIN_ENTRY_STYLE_NAME, XML_MAIN_ENTRY_STYLE_NAME,
sStyleName); GetExport().EncodeStyleName( sStyleName ));
} }
// other (boolean) attributes // other (boolean) attributes
...@@ -981,7 +984,7 @@ void XMLSectionExport::ExportBaseIndexSource( ...@@ -981,7 +984,7 @@ void XMLSectionExport::ExportBaseIndexSource(
aAny >>= sStyleName; aAny >>= sStyleName;
GetExport().AddAttribute(XML_NAMESPACE_TEXT, GetExport().AddAttribute(XML_NAMESPACE_TEXT,
XML_STYLE_NAME, XML_STYLE_NAME,
sStyleName); GetExport().EncodeStyleName( sStyleName ));
// title template // title template
SvXMLElementExport aHeaderTemplate(GetExport(), SvXMLElementExport aHeaderTemplate(GetExport(),
...@@ -1215,7 +1218,7 @@ sal_Bool XMLSectionExport::ExportIndexTemplate( ...@@ -1215,7 +1218,7 @@ sal_Bool XMLSectionExport::ExportIndexTemplate(
aAny >>= sParaStyleName; aAny >>= sParaStyleName;
GetExport().AddAttribute(XML_NAMESPACE_TEXT, GetExport().AddAttribute(XML_NAMESPACE_TEXT,
XML_STYLE_NAME, XML_STYLE_NAME,
sParaStyleName); GetExport().EncodeStyleName( sParaStyleName ));
} }
// template element // template element
...@@ -1468,7 +1471,7 @@ void XMLSectionExport::ExportIndexTemplateElement( ...@@ -1468,7 +1471,7 @@ void XMLSectionExport::ExportIndexTemplateElement(
pElement = sXML_index_entry_chapter; pElement = sXML_index_entry_chapter;
break; break;
case TOK_TTYPE_ENTRY_NUMBER: // table of content case TOK_TTYPE_ENTRY_NUMBER: // table of content
pElement = sXML_index_entry_chapter_number; pElement = sXML_index_entry_chapter;
break; break;
case TOK_TTYPE_HYPERLINK_START: case TOK_TTYPE_HYPERLINK_START:
pElement = sXML_index_entry_link_start; pElement = sXML_index_entry_link_start;
...@@ -1503,7 +1506,8 @@ void XMLSectionExport::ExportIndexTemplateElement( ...@@ -1503,7 +1506,8 @@ void XMLSectionExport::ExportIndexTemplateElement(
case TOK_TTYPE_CHAPTER_INFO: case TOK_TTYPE_CHAPTER_INFO:
case TOK_TTYPE_TAB_STOP: case TOK_TTYPE_TAB_STOP:
GetExport().AddAttribute(XML_NAMESPACE_TEXT, GetExport().AddAttribute(XML_NAMESPACE_TEXT,
XML_STYLE_NAME, sCharStyle); XML_STYLE_NAME,
GetExport().EncodeStyleName( sCharStyle) );
break; break;
default: default:
; // nothing: no character style ; // nothing: no character style
...@@ -1615,7 +1619,7 @@ void XMLSectionExport::ExportLevelParagraphStyles( ...@@ -1615,7 +1619,7 @@ void XMLSectionExport::ExportLevelParagraphStyles(
// stylename attribute // stylename attribute
GetExport().AddAttribute(XML_NAMESPACE_TEXT, GetExport().AddAttribute(XML_NAMESPACE_TEXT,
XML_STYLE_NAME, XML_STYLE_NAME,
aStyleNames[nName]); GetExport().EncodeStyleName( aStyleNames[nName]) );
// element // element
SvXMLElementExport aParaStyle(GetExport(), SvXMLElementExport aParaStyle(GetExport(),
...@@ -1927,7 +1931,7 @@ void XMLSectionExport::ExportMasterDocHeadingDummies() ...@@ -1927,7 +1931,7 @@ void XMLSectionExport::ExportMasterDocHeadingDummies()
if( sStyle.getLength() > 0 ) if( sStyle.getLength() > 0 )
{ {
GetExport().AddAttribute( XML_NAMESPACE_TEXT, XML_STYLE_NAME, GetExport().AddAttribute( XML_NAMESPACE_TEXT, XML_STYLE_NAME,
sStyle ); GetExport().EncodeStyleName( sStyle ) );
OUStringBuffer sTmp; OUStringBuffer sTmp;
sTmp.append( nLevel+1L ); sTmp.append( nLevel+1L );
......
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