Kaydet (Commit) 4908e284 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS oasis (1.5.274); FILE MERGED

2004/05/07 11:59:52 mib 1.5.274.3: - #i20153#: encode/decode style names (ooo2oasis missing)
2004/04/21 07:27:19 mib 1.5.274.2: - separated attribute lists for <*-properties> elements on import (#i20153#)
- replaced "style:text-backgroubnd-color" with "fo:background-color"
2004/04/07 11:49:52 mib 1.5.274.1: splitted <properties>
üst 7ca374c7
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLChartStyleContext.cxx,v $ * $RCSfile: XMLChartStyleContext.cxx,v $
* *
* $Revision: 1.5 $ * $Revision: 1.6 $
* *
* last change: $Author: bm $ $Date: 2001-08-14 11:47:26 $ * last change: $Author: rt $ $Date: 2004-07-13 08:04:39 $
* *
* 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
...@@ -78,6 +78,10 @@ ...@@ -78,6 +78,10 @@
using namespace com::sun::star; using namespace com::sun::star;
using ::xmloff::token::IsXMLToken; using ::xmloff::token::IsXMLToken;
using ::xmloff::token::XML_DATA_STYLE_NAME; using ::xmloff::token::XML_DATA_STYLE_NAME;
using ::xmloff::token::XML_TEXT_PROPERTIES;
using ::xmloff::token::XML_PARAGRAPH_PROPERTIES;
using ::xmloff::token::XML_GRAPHIC_PROPERTIES;
using ::xmloff::token::XML_CHART_PROPERTIES;
TYPEINIT1( XMLChartStyleContext, XMLPropStyleContext ); TYPEINIT1( XMLChartStyleContext, XMLPropStyleContext );
...@@ -91,7 +95,7 @@ void XMLChartStyleContext::SetAttribute( ...@@ -91,7 +95,7 @@ void XMLChartStyleContext::SetAttribute(
{ {
if( IsXMLToken( rLocalName, XML_DATA_STYLE_NAME ) ) if( IsXMLToken( rLocalName, XML_DATA_STYLE_NAME ) )
{ {
msDataStyleName = rValue; msDataStyleName =rValue;
} }
else else
{ {
...@@ -142,15 +146,26 @@ SvXMLImportContext *XMLChartStyleContext::CreateChildContext( ...@@ -142,15 +146,26 @@ SvXMLImportContext *XMLChartStyleContext::CreateChildContext(
{ {
SvXMLImportContext* pContext = NULL; SvXMLImportContext* pContext = NULL;
if( XML_NAMESPACE_STYLE == nPrefix && if( XML_NAMESPACE_STYLE == nPrefix )
IsXMLToken( rLocalName, ::xmloff::token::XML_PROPERTIES ) )
{ {
UniReference < SvXMLImportPropertyMapper > xImpPrMap = sal_uInt32 nFamily = 0;
GetStyles()->GetImportPropertyMapper( GetFamily() ); if( IsXMLToken( rLocalName, XML_TEXT_PROPERTIES ) )
if( xImpPrMap.is() ) nFamily = XML_TYPE_PROP_TEXT;
pContext = new XMLChartPropertyContext( else if( IsXMLToken( rLocalName, XML_PARAGRAPH_PROPERTIES ) )
GetImport(), nPrefix, rLocalName, xAttrList, nFamily = XML_TYPE_PROP_PARAGRAPH;
GetProperties(), xImpPrMap ); else if( IsXMLToken( rLocalName, XML_GRAPHIC_PROPERTIES ) )
nFamily = XML_TYPE_PROP_GRAPHIC;
else if( IsXMLToken( rLocalName, XML_CHART_PROPERTIES ) )
nFamily = XML_TYPE_PROP_CHART;
if( nFamily )
{
UniReference < SvXMLImportPropertyMapper > xImpPrMap =
GetStyles()->GetImportPropertyMapper( GetFamily() );
if( xImpPrMap.is() )
pContext = new XMLChartPropertyContext(
GetImport(), nPrefix, rLocalName, xAttrList, nFamily,
GetProperties(), xImpPrMap );
}
} }
if( !pContext ) if( !pContext )
......
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