diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2001-10-25 20:06:54 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2001-10-25 20:06:54 +0000 |
commit | 791729ed6615de80cfa08bf92450d85c4e549580 (patch) | |
tree | 54814c2d98fe0545b022286364c4a7645b92b7dd /sc/source/filter/xml | |
parent | bef0dc2ac57d7510e904fba3f2880b27c01b5362 (diff) |
#93467# remove calls on XDocumentHandler and change interfaces acordingly
Diffstat (limited to 'sc/source/filter/xml')
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 12 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlstyle.cxx | 50 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlstyle.hxx | 26 |
3 files changed, 63 insertions, 25 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index c9d5b8bbff11..fd462f3b85d9 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlexprt.cxx,v $ * - * $Revision: 1.143 $ + * $Revision: 1.144 $ * - * last change: $Author: sab $ $Date: 2001-10-19 09:17:59 $ + * last change: $Author: dvo $ $Date: 2001-10-25 21:06:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1915,6 +1915,7 @@ void ScXMLExport::_ExportAutoStyles() } pChangeTrackingExportHelper->CollectAutoStyles(); +#if SUPD < 650 GetAutoStylePool()->exportXML(XML_STYLE_FAMILY_TABLE_COLUMN, GetDocHandler(), GetMM100UnitConverter(), GetNamespaceMap()); GetAutoStylePool()->exportXML(XML_STYLE_FAMILY_TABLE_ROW, @@ -1924,6 +1925,13 @@ void ScXMLExport::_ExportAutoStyles() exportAutoDataStyles(); GetAutoStylePool()->exportXML(XML_STYLE_FAMILY_TABLE_CELL, GetDocHandler(), GetMM100UnitConverter(), GetNamespaceMap()); +#else + GetAutoStylePool()->exportXML(XML_STYLE_FAMILY_TABLE_COLUMN); + GetAutoStylePool()->exportXML(XML_STYLE_FAMILY_TABLE_ROW); + GetAutoStylePool()->exportXML(XML_STYLE_FAMILY_TABLE_TABLE); + exportAutoDataStyles(); + GetAutoStylePool()->exportXML(XML_STYLE_FAMILY_TABLE_CELL); +#endif GetTextParagraphExport()->exportTextAutoStyles(); GetShapeExport()->exportAutoStyles(); diff --git a/sc/source/filter/xml/xmlstyle.cxx b/sc/source/filter/xml/xmlstyle.cxx index ba3c6c174ae7..10d24e799c83 100644 --- a/sc/source/filter/xml/xmlstyle.cxx +++ b/sc/source/filter/xml/xmlstyle.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlstyle.cxx,v $ * - * $Revision: 1.41 $ + * $Revision: 1.42 $ * - * last change: $Author: sab $ $Date: 2001-10-18 12:15:26 $ + * last change: $Author: dvo $ $Date: 2001-10-25 21:06:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -457,14 +457,23 @@ void ScXMLTableExportPropertyMapper::handleSpecialItem( } void ScXMLAutoStylePoolP::exportStyleAttributes( +#if SUPD < 650 SvXMLAttributeList& rAttrList, +#endif sal_Int32 nFamily, const ::std::vector< XMLPropertyState >& rProperties, - const SvXMLExportPropertyMapper& rPropExp, - const SvXMLUnitConverter& rUnitConverter, - const SvXMLNamespaceMap& rNamespaceMap) const + const SvXMLExportPropertyMapper& rPropExp +#if SUPD < 650 + , const SvXMLUnitConverter& rUnitConverter, + const SvXMLNamespaceMap& rNamespaceMap +#endif + ) const { +#if SUPD < 650 SvXMLAutoStylePoolP::exportStyleAttributes( rAttrList, nFamily, rProperties, rPropExp, rUnitConverter, rNamespaceMap ); +#else + SvXMLAutoStylePoolP::exportStyleAttributes( nFamily, rProperties, rPropExp ); +#endif if (nFamily == XML_STYLE_FAMILY_TABLE_CELL) { ::std::vector< XMLPropertyState >::const_iterator i = rProperties.begin(); @@ -483,9 +492,10 @@ void ScXMLAutoStylePoolP::exportStyleAttributes( rtl::OUString sAttrValue = rScXMLExport.getDataStyleName(nNumberFormat); if (sAttrValue.getLength()) { - rtl::OUString sAttrName( rNamespaceMap.GetQNameByKey( - aPropMapper->GetEntryNameSpace(i->mnIndex), aPropMapper->GetEntryXMLName(i->mnIndex) ) ); - rAttrList.AddAttribute( sAttrName, GetXMLToken(XML_CDATA), sAttrValue ); + GetExport().AddAttribute( + aPropMapper->GetEntryNameSpace(i->mnIndex), + aPropMapper->GetEntryXMLName(i->mnIndex), + sAttrValue ); } } } @@ -508,9 +518,10 @@ void ScXMLAutoStylePoolP::exportStyleAttributes( rtl::OUString sName; if (i->maValue >>= sName) { - rtl::OUString sAttrName( rNamespaceMap.GetQNameByKey( - aPropMapper->GetEntryNameSpace(i->mnIndex), aPropMapper->GetEntryXMLName(i->mnIndex) ) ); - rAttrList.AddAttribute( sAttrName, GetXMLToken(XML_CDATA), sName ); + GetExport().AddAttribute( + aPropMapper->GetEntryNameSpace(i->mnIndex), + aPropMapper->GetEntryXMLName(i->mnIndex), + sName ); } } break; @@ -520,14 +531,23 @@ void ScXMLAutoStylePoolP::exportStyleAttributes( } void ScXMLAutoStylePoolP::exportStyleContent( +#if SUPD < 650 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler, +#endif sal_Int32 nFamily, const std::vector< XMLPropertyState >& rProperties, - const SvXMLExportPropertyMapper& rPropExp, - const SvXMLUnitConverter& rUnitConverter, - const SvXMLNamespaceMap& rNamespaceMap ) const + const SvXMLExportPropertyMapper& rPropExp +#if SUPD < 650 + , const SvXMLUnitConverter& rUnitConverter, + const SvXMLNamespaceMap& rNamespaceMap +#endif + ) const { +#if SUPD < 650 SvXMLAutoStylePoolP::exportStyleContent( rHandler, nFamily, rProperties, rPropExp, rUnitConverter, rNamespaceMap ); +#else + SvXMLAutoStylePoolP::exportStyleContent( nFamily, rProperties, rPropExp ); +#endif if (nFamily == XML_STYLE_FAMILY_TABLE_CELL) { sal_Bool bNotFound = sal_True; @@ -635,7 +655,7 @@ void ScXMLAutoStylePoolP::exportStyleContent( } ScXMLAutoStylePoolP::ScXMLAutoStylePoolP(ScXMLExport& rTempScXMLExport): - SvXMLAutoStylePoolP(), + SvXMLAutoStylePoolP(rTempScXMLExport), rScXMLExport(rTempScXMLExport) { } diff --git a/sc/source/filter/xml/xmlstyle.hxx b/sc/source/filter/xml/xmlstyle.hxx index 052601916178..1f97b0df67b5 100644 --- a/sc/source/filter/xml/xmlstyle.hxx +++ b/sc/source/filter/xml/xmlstyle.hxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlstyle.hxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: sab $ $Date: 2001-08-03 14:46:23 $ + * last change: $Author: dvo $ $Date: 2001-10-25 21:06:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -225,20 +225,30 @@ class ScXMLAutoStylePoolP : public SvXMLAutoStylePoolP ScXMLExport& rScXMLExport; virtual void exportStyleAttributes( +#if SUPD < 650 SvXMLAttributeList& rAttrList, +#endif sal_Int32 nFamily, const ::std::vector< XMLPropertyState >& rProperties, - const SvXMLExportPropertyMapper& rPropExp, - const SvXMLUnitConverter& rUnitConverter, - const SvXMLNamespaceMap& rNamespaceMap) const; + const SvXMLExportPropertyMapper& rPropExp +#if SUPD < 650 + , const SvXMLUnitConverter& rUnitConverter, + const SvXMLNamespaceMap& rNamespaceMap +#endif + ) const; virtual void exportStyleContent( +#if SUPD < 650 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler, +#endif sal_Int32 nFamily, const ::std::vector< XMLPropertyState >& rProperties, - const SvXMLExportPropertyMapper& rPropExp, - const SvXMLUnitConverter& rUnitConverter, - const SvXMLNamespaceMap& rNamespaceMap) const; + const SvXMLExportPropertyMapper& rPropExp +#if SUPD < 650 + , const SvXMLUnitConverter& rUnitConverter, + const SvXMLNamespaceMap& rNamespaceMap +#endif + ) const; public: ScXMLAutoStylePoolP(ScXMLExport& rScXMLExport); |