diff options
author | Xavier ALT <dex@phoenix-ind.net> | 2011-03-08 22:59:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-09 16:09:04 +0000 |
commit | 882a644d9e436bd5fbd97d495853f7257fa9465f (patch) | |
tree | 48420abb721ba9ff0f65133c2811b6451335f9bc /xmloff/source | |
parent | 3ea2c7d282611201066ca7179f2cc830fd777340 (diff) |
remove SVX_LIGHT macro
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/core/xmlimp.cxx | 8 | ||||
-rw-r--r-- | xmloff/source/draw/XMLNumberStyles.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/draw/ximpshap.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/DashStyle.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/GradientStyle.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/HatchStyle.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/ImageStyle.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/MarkerStyle.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/PagePropertySetContext.cxx | 10 | ||||
-rw-r--r-- | xmloff/source/style/TransGradientStyle.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/xmlstyle.cxx | 17 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextPropertySetContext.cxx | 7 | ||||
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 25 | ||||
-rw-r--r-- | xmloff/source/text/txtparai.cxx | 5 |
14 files changed, 0 insertions, 104 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index a89dc1cf9053..8e5c76b53770 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -1049,19 +1049,15 @@ XMLShapeImportHelper* SvXMLImport::CreateShapeImport() return new XMLShapeImportHelper( *this, mxModel ); } -#ifndef SVX_LIGHT SchXMLImportHelper* SvXMLImport::CreateChartImport() { return new SchXMLImportHelper(); } -#endif -#ifndef SVX_LIGHT ::xmloff::OFormLayerXMLImport* SvXMLImport::CreateFormImport() { return new ::xmloff::OFormLayerXMLImport(*this); } -#endif // #ifndef SVX_LIGHT /////////////////////////////////////////////////////////////////////////////// @@ -1492,7 +1488,6 @@ void SvXMLImport::AddNumberStyle(sal_Int32 nKey, const OUString& rName) XMLEventImportHelper& SvXMLImport::GetEventImport() { -#ifndef SVX_LIGHT if (!mpEventImportHelper) { // construct event helper and register StarBasic handler and standard @@ -1511,7 +1506,6 @@ XMLEventImportHelper& SvXMLImport::GetEventImport() mpEventImportHelper->RegisterFactory(sStarBasicCap, new XMLStarBasicContextFactory()); } -#endif return *mpEventImportHelper; } @@ -1558,10 +1552,8 @@ void SvXMLImport::SetAutoStyles( SvXMLStylesContext *pAutoStyles ) mxAutoStyles = pAutoStyles; GetTextImport()->SetAutoStyles( pAutoStyles ); GetShapeImport()->SetAutoStylesContext( pAutoStyles ); -#ifndef SVX_LIGHT GetChartImport()->SetAutoStylesContext( pAutoStyles ); GetFormImport()->setAutoStyleContext( pAutoStyles ); -#endif } void SvXMLImport::SetMasterStyles( SvXMLStylesContext *pMasterStyles ) diff --git a/xmloff/source/draw/XMLNumberStyles.cxx b/xmloff/source/draw/XMLNumberStyles.cxx index 4114580183e5..ec643dd728b4 100644 --- a/xmloff/source/draw/XMLNumberStyles.cxx +++ b/xmloff/source/draw/XMLNumberStyles.cxx @@ -328,8 +328,6 @@ const SdXMLFixedDataStyle* aSdXMLFixedTimeFormats[SdXMLTimeFormatCount] = /////////////////////////////////////////////////////////////////////// // export -#ifndef SVX_LIGHT - static void SdXMLExportDataStyleNumber( SdXMLExport& rExport, SdXMLDataStyleNumber& rElement ) { if( rElement.mbDecimal02 ) @@ -492,8 +490,6 @@ OUString SdXMLNumberStylesExporter::getDateStyleName(const sal_Int32 nDateFormat } } -#endif // #ifndef SVX_LIGHT - /////////////////////////////////////////////////////////////////////// // import diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index 66c0fff0fa51..b9ac7301944f 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -1702,7 +1702,6 @@ void SdXMLControlShapeContext::StartElement(const uno::Reference< xml::sax::XAtt DBG_ASSERT( maFormId.getLength(), "draw:control without a form:id attribute!" ); if( maFormId.getLength() ) { -#ifndef SVX_LIGHT if( GetImport().IsFormsSupported() ) { uno::Reference< awt::XControlModel > xControlModel( GetImport().GetFormImport()->lookupControl( maFormId ), uno::UNO_QUERY ); @@ -1714,7 +1713,6 @@ void SdXMLControlShapeContext::StartElement(const uno::Reference< xml::sax::XAtt } } -#endif // #ifndef SVX_LIGHT } SetStyle(); @@ -2512,14 +2510,12 @@ void SdXMLChartShapeContext::StartElement(const uno::Reference< xml::sax::XAttri aAny <<= aCLSID; xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("CLSID") ), aAny ); -#ifndef SVX_LIGHT aAny = xProps->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("Model") ) ); uno::Reference< frame::XModel > xChartModel; if( aAny >>= xChartModel ) { mpChartContext = GetImport().GetChartImport()->CreateChartContext( GetImport(), XML_NAMESPACE_SVG, GetXMLToken(XML_CHART), xChartModel, xAttrList ); } -#endif } } diff --git a/xmloff/source/style/DashStyle.cxx b/xmloff/source/style/DashStyle.cxx index 70090810ca45..3d4da09539e5 100644 --- a/xmloff/source/style/DashStyle.cxx +++ b/xmloff/source/style/DashStyle.cxx @@ -221,8 +221,6 @@ sal_Bool XMLDashStyleImport::importXML( // Export //------------------------------------------------------------- -#ifndef SVX_LIGHT - XMLDashStyleExport::XMLDashStyleExport( SvXMLExport& rExp ) : rExport(rExp) { @@ -330,6 +328,4 @@ sal_Bool XMLDashStyleExport::exportXML( return bRet; } -#endif // #ifndef SVX_LIGHT - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/style/GradientStyle.cxx b/xmloff/source/style/GradientStyle.cxx index 8f6e860f8f05..56fbb7ed8710 100644 --- a/xmloff/source/style/GradientStyle.cxx +++ b/xmloff/source/style/GradientStyle.cxx @@ -235,8 +235,6 @@ sal_Bool XMLGradientStyleImport::importXML( // Export //------------------------------------------------------------- -#ifndef SVX_LIGHT - XMLGradientStyleExport::XMLGradientStyleExport( SvXMLExport& rExp ) : rExport(rExp) @@ -342,6 +340,4 @@ sal_Bool XMLGradientStyleExport::exportXML( return bRet; } -#endif // #ifndef SVX_LIGHT - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/style/HatchStyle.cxx b/xmloff/source/style/HatchStyle.cxx index c5fe4f764865..f0f8259abe7e 100644 --- a/xmloff/source/style/HatchStyle.cxx +++ b/xmloff/source/style/HatchStyle.cxx @@ -189,8 +189,6 @@ sal_Bool XMLHatchStyleImport::importXML( // Export //------------------------------------------------------------- -#ifndef SVX_LIGHT - XMLHatchStyleExport::XMLHatchStyleExport( SvXMLExport& rExp ) : rExport(rExp) { @@ -261,6 +259,4 @@ sal_Bool XMLHatchStyleExport::exportXML( return bRet; } -#endif // #ifndef SVX_LIGHT - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/style/ImageStyle.cxx b/xmloff/source/style/ImageStyle.cxx index e5592c759bea..e4f86d4e87a9 100644 --- a/xmloff/source/style/ImageStyle.cxx +++ b/xmloff/source/style/ImageStyle.cxx @@ -68,8 +68,6 @@ XMLImageStyle::~XMLImageStyle() { } -#ifndef SVX_LIGHT - sal_Bool XMLImageStyle::exportXML( const OUString& rStrName, const ::com::sun::star::uno::Any& rValue, SvXMLExport& rExport ) { return ImpExportXML( rStrName, rValue, rExport ); @@ -121,8 +119,6 @@ sal_Bool XMLImageStyle::ImpExportXML( const OUString& rStrName, const uno::Any& return bRet; } -#endif // #ifndef SVX_LIGHT - sal_Bool XMLImageStyle::importXML( const uno::Reference< xml::sax::XAttributeList >& xAttrList, uno::Any& rValue, OUString& rStrName, SvXMLImport& rImport ) { return ImpImportXML( xAttrList, rValue, rStrName, rImport ); diff --git a/xmloff/source/style/MarkerStyle.cxx b/xmloff/source/style/MarkerStyle.cxx index d70b04160f49..7eb607756d62 100644 --- a/xmloff/source/style/MarkerStyle.cxx +++ b/xmloff/source/style/MarkerStyle.cxx @@ -165,8 +165,6 @@ sal_Bool XMLMarkerStyleImport::importXML( // Export //------------------------------------------------------------- -#ifndef SVX_LIGHT - XMLMarkerStyleExport::XMLMarkerStyleExport( SvXMLExport& rExp ) : rExport( rExp ) { @@ -284,6 +282,4 @@ sal_Bool XMLMarkerStyleExport::exportXML( return bRet; } -#endif // #ifndef SVX_LIGHT - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/style/PagePropertySetContext.cxx b/xmloff/source/style/PagePropertySetContext.cxx index a17e124fa2ee..21c2c09ec31a 100644 --- a/xmloff/source/style/PagePropertySetContext.cxx +++ b/xmloff/source/style/PagePropertySetContext.cxx @@ -112,25 +112,15 @@ SvXMLImportContext *PagePropertySetContext::CreateChildContext( break; case CTF_PM_TEXTCOLUMNS: -#ifndef SVX_LIGHT pContext = new XMLTextColumnsContext( GetImport(), nPrefix, rLocalName, xAttrList, rProp, rProperties ); -#else - // create default context to skip content - pContext = new SvXMLImportContext( GetImport(), nPrefix, rLocalName ); -#endif // #ifndef SVX_LIGHT break; case CTF_PM_FTN_LINE_WEIGTH: -#ifndef SVX_LIGHT pContext = new XMLFootnoteSeparatorImport( GetImport(), nPrefix, rLocalName, rProperties, mxMapper->getPropertySetMapper(), rProp.mnIndex); -#else - // create default context to skip content - pContext = new SvXMLImportContext( GetImport(), nPrefix, rLocalName); -#endif // #ifndef SVX_LIGHT break; } diff --git a/xmloff/source/style/TransGradientStyle.cxx b/xmloff/source/style/TransGradientStyle.cxx index 7f90d0e73c47..e3464d3e32cb 100644 --- a/xmloff/source/style/TransGradientStyle.cxx +++ b/xmloff/source/style/TransGradientStyle.cxx @@ -228,8 +228,6 @@ sal_Bool XMLTransGradientStyleImport::importXML( // Export //------------------------------------------------------------- -#ifndef SVX_LIGHT - XMLTransGradientStyleExport::XMLTransGradientStyleExport( SvXMLExport& rExp ) : rExport(rExp) { @@ -327,6 +325,4 @@ sal_Bool XMLTransGradientStyleExport::exportXML( return bRet; } -#endif // #ifndef SVX_LIGHT - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx index 3ae3057746b5..96c38611e200 100644 --- a/xmloff/source/style/xmlstyle.cxx +++ b/xmloff/source/style/xmlstyle.cxx @@ -484,35 +484,20 @@ SvXMLStyleContext *SvXMLStylesContext::CreateStyleChildContext( rLocalName, xAttrList, sal_True ); break; case XML_TOK_TEXT_NOTE_CONFIG: -#ifndef SVX_LIGHT pStyle = new XMLFootnoteConfigurationImportContext(GetImport(), p_nPrefix, rLocalName, xAttrList); -#else - // create default context to skip content - pStyle = new SvXMLStyleContext( GetImport(), nPrefix, rLocalName, xAttrList ); -#endif // #ifndef SVX_LIGHT break; case XML_TOK_TEXT_BIBLIOGRAPHY_CONFIG: -#ifndef SVX_LIGHT pStyle = new XMLIndexBibliographyConfigurationContext( GetImport(), p_nPrefix, rLocalName, xAttrList); -#else - // create default context to skip content - pStyle = new SvXMLStyleContext( GetImport(), p_nPrefix, rLocalName, xAttrList ); -#endif // #ifndef SVX_LIGHT break; case XML_TOK_TEXT_LINENUMBERING_CONFIG: -#ifndef SVX_LIGHT pStyle = new XMLLineNumberingImportContext( GetImport(), p_nPrefix, rLocalName, xAttrList); -#else - // create default context to skip content - pStyle = new SvXMLStyleContext( GetImport(), p_nPrefix, rLocalName, xAttrList ); -#endif // #ifndef SVX_LIGHT break; // @@ -714,7 +699,6 @@ UniReference < SvXMLImportPropertyMapper > SvXMLStylesContext::GetImportProperty } xMapper = mxShapeImpPropMapper; break; -#ifndef SVX_LIGHT case XML_STYLE_FAMILY_SCH_CHART_ID: if( ! mxChartImpPropMapper.is() ) { @@ -723,7 +707,6 @@ UniReference < SvXMLImportPropertyMapper > SvXMLStylesContext::GetImportProperty } xMapper = mxChartImpPropMapper; break; -#endif case XML_STYLE_FAMILY_PAGE_MASTER: if( ! mxPageImpPropMapper.is() ) { diff --git a/xmloff/source/text/XMLTextPropertySetContext.cxx b/xmloff/source/text/XMLTextPropertySetContext.cxx index b5a43782e2bf..555d7b688745 100644 --- a/xmloff/source/text/XMLTextPropertySetContext.cxx +++ b/xmloff/source/text/XMLTextPropertySetContext.cxx @@ -79,14 +79,9 @@ SvXMLImportContext *XMLTextPropertySetContext::CreateChildContext( rProperties ); break; case CTF_TEXTCOLUMNS: -#ifndef SVX_LIGHT pContext = new XMLTextColumnsContext( GetImport(), nPrefix, rLocalName, xAttrList, rProp, rProperties ); -#else - // create default context to skip content - pContext = new SvXMLImportContext( GetImport(), nPrefix, rLocalName ); -#endif // #ifndef SVX_LIGHT break; case CTF_DROPCAPFORMAT: @@ -134,14 +129,12 @@ SvXMLImportContext *XMLTextPropertySetContext::CreateChildContext( rProperties ); } break; -#ifndef SVX_LIGHT case CTF_SECTION_FOOTNOTE_END: case CTF_SECTION_ENDNOTE_END: pContext = new XMLSectionFootnoteConfigImport( GetImport(), nPrefix, rLocalName, rProperties, mxMapper->getPropertySetMapper()); break; -#endif // #ifndef SVX_LIGHT } if( !pContext ) diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 1d895019b675..cd1c5d379845 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -2386,12 +2386,7 @@ SvXMLImportContext *XMLTextImportHelper::CreateTextChildContext( case XML_TOK_TEXT_INDEX_TITLE: case XML_TOK_TEXT_SECTION: -#ifndef SVX_LIGHT pContext = new XMLSectionImportContext( rImport, nPrefix, rLocalName ); -#else - // create default context to skip content - pContext = new SvXMLImportContext( rImport, nPrefix, rLocalName ); -#endif // #ifndef SVX_LIGHT break; case XML_TOK_TEXT_TOC: @@ -2401,23 +2396,13 @@ SvXMLImportContext *XMLTextImportHelper::CreateTextChildContext( case XML_TOK_TEXT_USER_INDEX: case XML_TOK_TEXT_ALPHABETICAL_INDEX: case XML_TOK_TEXT_BIBLIOGRAPHY_INDEX: -#ifndef SVX_LIGHT if( XML_TEXT_TYPE_SHAPE != eType ) pContext = new XMLIndexTOCContext( rImport, nPrefix, rLocalName ); -#else - // create default context to skip content - pContext = new SvXMLImportContext( rImport, nPrefix, rLocalName ); -#endif // #ifndef SVX_LIGHT break; case XML_TOK_TEXT_TRACKED_CHANGES: -#ifndef SVX_LIGHT pContext = new XMLTrackedChangesImportContext( rImport, nPrefix, rLocalName); -#else - // create default context to skip content - pContext = new SvXMLImportContext( rImport, nPrefix, rLocalName ); -#endif // #ifndef SVX_LIGHT bContent = sal_False; break; @@ -2432,12 +2417,7 @@ SvXMLImportContext *XMLTextImportHelper::CreateTextChildContext( break; case XML_TOK_TEXT_FORMS: -#ifndef SVX_LIGHT pContext = rImport.GetFormImport()->createOfficeFormsContext(rImport, nPrefix, rLocalName); -#else - // create default context to skip content - pContext = new SvXMLImportContext( rImport, nPrefix, rLocalName ); -#endif // #ifndef SVX_LIGHT bContent = sal_False; break; @@ -2450,12 +2430,7 @@ SvXMLImportContext *XMLTextImportHelper::CreateTextChildContext( break; case XML_TOK_TEXT_CALCULATION_SETTINGS: -#ifndef SVX_LIGHT pContext = new XMLCalculationSettingsContext ( rImport, nPrefix, rLocalName, xAttrList); -#else - // create default context to skip content - pContext = new SvXMLImportContext( rImport, nPrefix, rLocalName ); -#endif // #ifndef SVX_LIGHT bContent = sal_False; break; diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx index 90d627add308..40e862e2c69c 100644 --- a/xmloff/source/text/txtparai.cxx +++ b/xmloff/source/text/txtparai.cxx @@ -1696,7 +1696,6 @@ SvXMLImportContext *XMLImpSpanContext_Impl::CreateChildContext( break; case XML_TOK_TEXT_NOTE: -#ifndef SVX_LIGHT if (rImport.GetTextImport()->IsInFrame()) { // we must not insert footnotes into text frames @@ -1709,10 +1708,6 @@ SvXMLImportContext *XMLImpSpanContext_Impl::CreateChildContext( *rImport.GetTextImport().get(), nPrefix, rLocalName ); } -#else - // create default context to skip content - pContext = new SvXMLImportContext( rImport, nPrefix, rLocalName ); -#endif // #ifndef SVX_LIGHT rIgnoreLeadingSpace = sal_False; break; |