diff options
Diffstat (limited to 'xmloff/source/style')
-rw-r--r-- | xmloff/source/style/FillStyleContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/ImageStyle.cxx | 17 | ||||
-rw-r--r-- | xmloff/source/style/XMLPageExport.cxx | 9 | ||||
-rw-r--r-- | xmloff/source/style/impastp4.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/impastpl.hxx | 3 | ||||
-rw-r--r-- | xmloff/source/style/styleexp.cxx | 3 | ||||
-rw-r--r-- | xmloff/source/style/xmlexppr.cxx | 10 | ||||
-rw-r--r-- | xmloff/source/style/xmlimppr.cxx | 10 | ||||
-rw-r--r-- | xmloff/source/style/xmlnumi.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/xmlstyle.cxx | 1 | ||||
-rw-r--r-- | xmloff/source/style/xmltabe.cxx | 4 |
11 files changed, 2 insertions, 65 deletions
diff --git a/xmloff/source/style/FillStyleContext.cxx b/xmloff/source/style/FillStyleContext.cxx index 3be50f36e633..7c7dc8b744c8 100644 --- a/xmloff/source/style/FillStyleContext.cxx +++ b/xmloff/source/style/FillStyleContext.cxx @@ -57,8 +57,6 @@ XMLGradientStyleContext::XMLGradientStyleContext( SvXMLImport& rImport, sal_uInt const uno::Reference< xml::sax::XAttributeList >& xAttrList) : SvXMLStyleContext(rImport, nPrfx, rLName, xAttrList) { - // set Family -// SetFamily( XML_STYLE_FAMILY_FILLSTYLE_GRADIENT_ID ); // start import XMLGradientStyleImport aGradientStyle( GetImport() ); diff --git a/xmloff/source/style/ImageStyle.cxx b/xmloff/source/style/ImageStyle.cxx index 938b753702f2..e5592c759bea 100644 --- a/xmloff/source/style/ImageStyle.cxx +++ b/xmloff/source/style/ImageStyle.cxx @@ -56,8 +56,6 @@ enum SvXMLTokenMapAttrs XML_TOK_IMAGE_TYPE, XML_TOK_IMAGE_SHOW, XML_TOK_IMAGE_ACTUATE, - /* XML_TOK_IMAGE_SIZEW, - XML_TOK_IMAGE_SIZEH,*/ XML_TOK_TABSTOP_END=XML_TOK_UNKNOWN }; @@ -108,18 +106,7 @@ sal_Bool XMLImageStyle::ImpExportXML( const OUString& rStrName, const uno::Any& rExport.AddAttribute( XML_NAMESPACE_XLINK, XML_SHOW, XML_EMBED ); rExport.AddAttribute( XML_NAMESPACE_XLINK, XML_ACTUATE, XML_ONLOAD ); } -/* - // size - awt::Size aSize = xBitmap->getSize(); - - rUnitConverter.convertNumber( aOut, aSize.Width ); - aStrValue = aOut.makeStringAndClear(); - AddAttribute( XML_NAMESPACE_SVG, XML_WIDTH, aStrValue ); - - rUnitConverter.convertNumber( aOut, aSize.Height ); - aStrValue = aOut.makeStringAndClear(); - AddAttribute( XML_NAMESPACE_SVG, XML_HEIGHT, aStrValue ); -*/ + // Do Write SvXMLElementExport aElem( rExport, XML_NAMESPACE_DRAW, XML_FILL_IMAGE, sal_True, sal_True ); @@ -160,8 +147,6 @@ sal_Bool XMLImageStyle::ImpImportXML( const uno::Reference< xml::sax::XAttribute { XML_NAMESPACE_XLINK, XML_TYPE, XML_TOK_IMAGE_TYPE }, { XML_NAMESPACE_XLINK, XML_SHOW, XML_TOK_IMAGE_SHOW }, { XML_NAMESPACE_XLINK, XML_ACTUATE, XML_TOK_IMAGE_ACTUATE }, - /*{ XML_NAMESPACE_XLINK, XML_HREF, XML_TOK_IMAGE_URL }, - { XML_NAMESPACE_XLINK, XML_HREF, XML_TOK_IMAGE_URL },*/ XML_TOKEN_MAP_END }; diff --git a/xmloff/source/style/XMLPageExport.cxx b/xmloff/source/style/XMLPageExport.cxx index 68fcf192f6de..7226073c8e78 100644 --- a/xmloff/source/style/XMLPageExport.cxx +++ b/xmloff/source/style/XMLPageExport.cxx @@ -149,13 +149,6 @@ sal_Bool XMLPageExport::exportStyle( GetExport().EncodeStyleName( sNextName ) ); } } -// OUString sPageMaster = GetExport().GetAutoStylePool()->Find( -// XML_STYLE_FAMILY_PAGE_MASTER, -// xPropSet ); -// if( sPageMaster.getLength() ) -// GetExport().AddAttribute( XML_NAMESPACE_STYLE, -// XML_PAGE_MASTER_NAME, -// sPageMaster ); SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_STYLE, XML_MASTER_PAGE, sal_True, sal_True ); @@ -262,8 +255,6 @@ void XMLPageExport::exportDefaultStyle() } } - // if ( xPropStates.size() != 0 && - // ( xPropStates.size() != 1 || xPropStates[0].mnIndex != -1 ) ) if( bExport ) { //<style:default-page-layout> diff --git a/xmloff/source/style/impastp4.cxx b/xmloff/source/style/impastp4.cxx index 5596c66c3001..32512e496222 100644 --- a/xmloff/source/style/impastp4.cxx +++ b/xmloff/source/style/impastp4.cxx @@ -175,10 +175,6 @@ void SvXMLAutoStylePoolP_Impl::GetRegisteredNames( // if not added, yet. // -/*OUString SvXMLAutoStylePoolP_Impl::Add( sal_Int32 nFamily, - const OUString& rParent, - const vector< XMLPropertyState >& rProperties, - sal_Bool bCache )*/ sal_Bool SvXMLAutoStylePoolP_Impl::Add(OUString& rName, sal_Int32 nFamily, const OUString& rParent, const ::std::vector< XMLPropertyState >& rProperties, diff --git a/xmloff/source/style/impastpl.hxx b/xmloff/source/style/impastpl.hxx index 5c79e2d8cf44..77597257803a 100644 --- a/xmloff/source/style/impastpl.hxx +++ b/xmloff/source/style/impastpl.hxx @@ -191,9 +191,6 @@ public: com::sun::star::uno::Sequence<sal_Int32>& aFamilies, com::sun::star::uno::Sequence<rtl::OUString>& aNames ); -// ::rtl::OUString Add( sal_Int32 nFamily, const ::rtl::OUString& rParent, -// const ::std::vector< XMLPropertyState >& rProperties, -// sal_Bool bCache = sal_False ); sal_Bool Add( ::rtl::OUString& rName, sal_Int32 nFamily, const ::rtl::OUString& rParent, const ::std::vector< XMLPropertyState >& rProperties, diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx index 01ee3a49b008..69ae4a02f9ef 100644 --- a/xmloff/source/style/styleexp.cxx +++ b/xmloff/source/style/styleexp.cxx @@ -367,13 +367,10 @@ sal_Bool XMLStyleExport::exportDefaultStyle( XML_DEFAULT_STYLE, sal_True, sal_True ); // <style:properties> - //::std::vector< XMLPropertyState > xPropStates = - // rPropMapper->FilterDefaults( xPropSet ); ::std::vector< XMLPropertyState > xPropStates = rPropMapper->FilterDefaults( xPropSet ); rPropMapper->exportXML( GetExport(), xPropStates, XML_EXPORT_FLAG_IGN_WS ); -// exportStyleContent( rStyle ); } return sal_True; } diff --git a/xmloff/source/style/xmlexppr.cxx b/xmloff/source/style/xmlexppr.cxx index 51f62b9f69cc..7915d111ceb3 100644 --- a/xmloff/source/style/xmlexppr.cxx +++ b/xmloff/source/style/xmlexppr.cxx @@ -727,14 +727,6 @@ vector< XMLPropertyState > SvXMLExportPropertyMapper::_Filter( ContextFilter( aPropStateArray, xPropSet ); // Have to do if we change from a vector to a list or something like that - /*vector< XMLPropertyState >::iterator aItr = aPropStateArray.begin(); - while (aItr != aPropStateArray.end()) - { - if (aItr->mnIndex == -1) - aItr = aPropStateArray.erase(aItr); - else - aItr++; - }*/ if( bDelInfo ) delete pFilterInfo; @@ -1106,7 +1098,7 @@ void SvXMLExportPropertyMapper::_exportXML( MID_FLAG_MERGE_ATTRIBUTE ) != 0 ) { aValue = rAttrList.getValueByName( sName ); - bRemove = sal_True; //aValue.getLength() != 0; + bRemove = sal_True; } if( maPropMapper->exportXML( aValue, rProperty, rUnitConverter ) ) diff --git a/xmloff/source/style/xmlimppr.cxx b/xmloff/source/style/xmlimppr.cxx index 4ba2a107bba6..7d4c469f814c 100644 --- a/xmloff/source/style/xmlimppr.cxx +++ b/xmloff/source/style/xmlimppr.cxx @@ -344,16 +344,6 @@ void SvXMLImportPropertyMapper::importXML( } finished( rProperties, nStartIdx, nEndIdx ); - - // Have to do if we change from a vector to a list or something like that - /*std::vector <XMLPropertyState>::iterator aItr = rProperties.begin(); - while (aItr != rProperties.end()) - { - if (aItr->mnIndex == -1) - aItr = rProperties.erase(aItr); - else - aItr++; - }*/ } /** this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_IMPORT flag set */ diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx index bb53f968d8b3..1c1b8249a4db 100644 --- a/xmloff/source/style/xmlnumi.cxx +++ b/xmloff/source/style/xmlnumi.cxx @@ -560,7 +560,6 @@ Sequence<beans::PropertyValue> SvxXMLListLevelStyleContext_Impl::GetProperties( aFDesc.Pitch = eBulletFontPitch; aFDesc.CharSet = eBulletFontEncoding; aFDesc.Weight = WEIGHT_DONTKNOW; - //aFDesc.Transparant = sal_True; sal_Bool bStarSymbol = sal_False; if( aFDesc.Name.equalsIgnoreAsciiCase( sStarBats ) ) { @@ -603,7 +602,6 @@ Sequence<beans::PropertyValue> SvxXMLListLevelStyleContext_Impl::GetProperties( else if( xBase64Stream.is() ) { sStr = GetImport().ResolveGraphicObjectURLFromBase64( xBase64Stream ); -// xBase64Stream = 0; } if( sStr.getLength() ) @@ -1348,7 +1346,6 @@ void SvxXMLListStyleContext::SetDefaultStyle( if( !bOrdered ) { // TODO: Bullet-Font - //aNumFmt.SetBulletFont( &SwNumRule::GetDefBulletFont() ); awt::FontDescriptor aFDesc; aFDesc.Name = OUString( #if defined UNX @@ -1361,7 +1358,6 @@ void SvxXMLListStyleContext::SetDefaultStyle( aFDesc.Pitch = PITCH_DONTKNOW ; aFDesc.CharSet = RTL_TEXTENCODING_SYMBOL ; aFDesc.Weight = WEIGHT_DONTKNOW; - //aFDesc.Transparant = sal_True; pProps->Name = OUString(RTL_CONSTASCII_USTRINGPARAM( XML_UNO_NAME_NRULE_BULLET_FONT )); (pProps++)->Value <<= aFDesc; diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx index e1bd865aedf3..3ae3057746b5 100644 --- a/xmloff/source/style/xmlstyle.cxx +++ b/xmloff/source/style/xmlstyle.cxx @@ -866,7 +866,6 @@ SvXMLImportContext *SvXMLStylesContext::CreateChildContext( sal_uInt16 nPrefix, SvXMLStyleContext *pStyle = CreateStyleChildContext( nPrefix, rLocalName, xAttrList ); -// DBG_ASSERT( pStyle->GetFamily(), "Style without a family" ); if( pStyle ) { if( !pStyle->IsTransient() ) diff --git a/xmloff/source/style/xmltabe.cxx b/xmloff/source/style/xmltabe.cxx index c705a42055bd..239cd4e68ffd 100644 --- a/xmloff/source/style/xmltabe.cxx +++ b/xmloff/source/style/xmltabe.cxx @@ -125,10 +125,6 @@ void SvxXMLTabStopExport::Export( const uno::Any& rAny ) const ::com::sun::star::style::TabStop* pTabs = aSeq.getConstArray(); const sal_Int32 nTabs = aSeq.getLength(); - // ignore default tab stop here - //if( 1 == nTabs && style::TabAlign_DEFAULT == pTabs[0].Alignment ) - // return; - SvXMLElementExport rElem( rExport, XML_NAMESPACE_STYLE, XML_TAB_STOPS, sal_True, sal_True ); |