diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-30 10:47:56 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-05 09:30:39 +0200 |
commit | f304a7a14a4af4d3f46eab18d5494194028e61ef (patch) | |
tree | 7f51b8efe4427d01fc688925c44e0a05e3c64c7b /oox | |
parent | b2b85c2b3920fdd92b8d3bf32af1cac5679e116e (diff) |
loplugin:staticmethods
Change-Id: I384a5e60f4b7b2f479c89ef97630519059ab720f
Diffstat (limited to 'oox')
-rw-r--r-- | oox/inc/drawingml/chart/objectformatter.hxx | 2 | ||||
-rw-r--r-- | oox/inc/drawingml/shape3dproperties.hxx | 14 | ||||
-rw-r--r-- | oox/source/core/filterdetect.cxx | 2 | ||||
-rw-r--r-- | oox/source/docprop/docprophandler.hxx | 4 | ||||
-rw-r--r-- | oox/source/drawingml/chart/axisconverter.cxx | 2 | ||||
-rw-r--r-- | oox/source/drawingml/chart/seriesconverter.cxx | 2 | ||||
-rw-r--r-- | oox/source/drawingml/chart/titleconverter.cxx | 2 | ||||
-rw-r--r-- | oox/source/drawingml/customshapepresetdata.cxx | 4 | ||||
-rw-r--r-- | oox/source/drawingml/effectpropertiescontext.hxx | 2 | ||||
-rw-r--r-- | oox/source/dump/dumperbase.cxx | 2 | ||||
-rw-r--r-- | oox/source/helper/attributelist.cxx | 2 | ||||
-rw-r--r-- | oox/source/ole/axcontrol.cxx | 113 | ||||
-rw-r--r-- | oox/source/token/tokenmap.cxx | 4 |
13 files changed, 77 insertions, 78 deletions
diff --git a/oox/inc/drawingml/chart/objectformatter.hxx b/oox/inc/drawingml/chart/objectformatter.hxx index 731b1501fcb8..1e8d7807095c 100644 --- a/oox/inc/drawingml/chart/objectformatter.hxx +++ b/oox/inc/drawingml/chart/objectformatter.hxx @@ -122,7 +122,7 @@ public: ObjectType eObjType ); /** Sets text rotation properties to the passed property set. */ - void convertTextRotation( + static void convertTextRotation( PropertySet& rPropSet, const ModelRef< TextBody >& rxTextProp, bool bSupportsStacked ); diff --git a/oox/inc/drawingml/shape3dproperties.hxx b/oox/inc/drawingml/shape3dproperties.hxx index 5c3eaa00ead2..d3e491b29eba 100644 --- a/oox/inc/drawingml/shape3dproperties.hxx +++ b/oox/inc/drawingml/shape3dproperties.hxx @@ -73,18 +73,18 @@ struct Shape3DProperties /** Overwrites all members that are explicitly set in rSourceProps. */ void assignUsed( const Shape3DProperties& rSourceProps ); - OUString getCameraPrstName( sal_Int32 nElement ); - OUString getLightRigName( sal_Int32 nElement ); - OUString getLightRigDirName( sal_Int32 nElement ); - OUString getBevelPresetTypeString( sal_Int32 nType ); - OUString getPresetMaterialTypeString( sal_Int32 nType ); + static OUString getCameraPrstName( sal_Int32 nElement ); + static OUString getLightRigName( sal_Int32 nElement ); + static OUString getLightRigDirName( sal_Int32 nElement ); + static OUString getBevelPresetTypeString( sal_Int32 nType ); + static OUString getPresetMaterialTypeString( sal_Int32 nType ); css::uno::Sequence< css::beans::PropertyValue > getCameraAttributes(); css::uno::Sequence< css::beans::PropertyValue > getLightRigAttributes(); css::uno::Sequence< css::beans::PropertyValue > getShape3DAttributes( const GraphicHelper& rGraphicHelper, sal_Int32 rPhClr = API_RGB_TRANSPARENT ); - css::uno::Sequence< css::beans::PropertyValue > getBevelAttributes( BevelProperties rProps ); - css::uno::Sequence< css::beans::PropertyValue > getColorAttributes( + static css::uno::Sequence< css::beans::PropertyValue > getBevelAttributes( BevelProperties rProps ); + static css::uno::Sequence< css::beans::PropertyValue > getColorAttributes( const Color& rColor, const GraphicHelper& rGraphicHelper, sal_Int32 rPhClr ); }; diff --git a/oox/source/core/filterdetect.cxx b/oox/source/core/filterdetect.cxx index 5c6dee2f29e3..d48d25c0f7aa 100644 --- a/oox/source/core/filterdetect.cxx +++ b/oox/source/core/filterdetect.cxx @@ -168,7 +168,7 @@ void FilterDetectDocHandler::parseRelationship( const AttributeList& rAttribs ) } } -OUString FilterDetectDocHandler::getFilterNameFromContentType( const OUString& rContentType ) const +OUString FilterDetectDocHandler::getFilterNameFromContentType( const OUString& rContentType ) { if( rContentType == "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml" || rContentType == "application/vnd.ms-word.document.macroEnabled.main+xml" ) diff --git a/oox/source/docprop/docprophandler.hxx b/oox/source/docprop/docprophandler.hxx index 2813dcbc9314..f0d8049bfe47 100644 --- a/oox/source/docprop/docprophandler.hxx +++ b/oox/source/docprop/docprophandler.hxx @@ -60,8 +60,8 @@ public: void InitNew(); void AddCustomProperty( const ::com::sun::star::uno::Any& aAny ); - ::com::sun::star::util::DateTime GetDateTimeFromW3CDTF( const OUString& aChars ); - ::com::sun::star::uno::Sequence< OUString > GetKeywordsSet( const OUString& aChars ); + static ::com::sun::star::util::DateTime GetDateTimeFromW3CDTF( const OUString& aChars ); + static ::com::sun::star::uno::Sequence< OUString > GetKeywordsSet( const OUString& aChars ); void UpdateDocStatistic( const OUString& aChars ); // com.sun.star.xml.sax.XFastDocumentHandler diff --git a/oox/source/drawingml/chart/axisconverter.cxx b/oox/source/drawingml/chart/axisconverter.cxx index 0090caeb46ca..29a9ffd6c9e1 100644 --- a/oox/source/drawingml/chart/axisconverter.cxx +++ b/oox/source/drawingml/chart/axisconverter.cxx @@ -168,7 +168,7 @@ void AxisConverter::convertFromModel( // axis line and tick label formatting rFormatter.convertFormatting( aAxisProp, mrModel.mxShapeProp, mrModel.mxTextProp, OBJECTTYPE_AXIS ); // tick label rotation - rFormatter.convertTextRotation( aAxisProp, mrModel.mxTextProp, true ); + ObjectFormatter::convertTextRotation( aAxisProp, mrModel.mxTextProp, true ); // tick mark style aAxisProp.setProperty( PROP_MajorTickmarks, lclGetTickMark( mrModel.mnMajorTickMark ) ); diff --git a/oox/source/drawingml/chart/seriesconverter.cxx b/oox/source/drawingml/chart/seriesconverter.cxx index 38c265aa42a7..08f8f474c9b8 100644 --- a/oox/source/drawingml/chart/seriesconverter.cxx +++ b/oox/source/drawingml/chart/seriesconverter.cxx @@ -140,7 +140,7 @@ void lclConvertLabelFormatting( PropertySet& rPropSet, ObjectFormatter& rFormatt // data label text formatting (frame formatting not supported by Chart2) rFormatter.convertTextFormatting( rPropSet, rDataLabel.mxTextProp, OBJECTTYPE_DATALABEL ); - rFormatter.convertTextRotation( rPropSet, rDataLabel.mxTextProp, false ); + ObjectFormatter::convertTextRotation( rPropSet, rDataLabel.mxTextProp, false ); // data label separator (do not overwrite series separator, if no explicit point separator is present) if( bDataSeriesLabel || rDataLabel.moaSeparator.has() ) diff --git a/oox/source/drawingml/chart/titleconverter.cxx b/oox/source/drawingml/chart/titleconverter.cxx index 6e6b44066a2c..34cc4d7e59f6 100644 --- a/oox/source/drawingml/chart/titleconverter.cxx +++ b/oox/source/drawingml/chart/titleconverter.cxx @@ -162,7 +162,7 @@ void TitleConverter::convertFromModel( const Reference< XTitled >& rxTitled, con // frame rotation OSL_ENSURE( !mrModel.mxTextProp || !rText.mxTextBody, "TitleConverter::convertFromModel - multiple text properties" ); ModelRef< TextBody > xTextProp = mrModel.mxTextProp.is() ? mrModel.mxTextProp : rText.mxTextBody; - getFormatter().convertTextRotation( aPropSet, xTextProp, true ); + ObjectFormatter::convertTextRotation( aPropSet, xTextProp, true ); // register the title and layout data for conversion of position registerTitleLayout( xTitle, mrModel.mxLayout, eObjType, nMainIdx, nSubIdx ); diff --git a/oox/source/drawingml/customshapepresetdata.cxx b/oox/source/drawingml/customshapepresetdata.cxx index f5bc9633a5e3..94d29f7ae87d 100644 --- a/oox/source/drawingml/customshapepresetdata.cxx +++ b/oox/source/drawingml/customshapepresetdata.cxx @@ -733,7 +733,7 @@ void CustomShapeProperties::initializePresetDataMap() if (bFirst) bFirst = false; else - maPresetDataMap[StaticTokenMap::get().getTokenFromUnicode(aName)] = aPropertyMap; + maPresetDataMap[TokenMap::getTokenFromUnicode(aName)] = aPropertyMap; aName = OUString::fromUtf8(aLine.copy(strlen(aCommentPrefix), aLine.getLength() - strlen(aCommentPrefix) - strlen(" */"))); } else @@ -837,7 +837,7 @@ void CustomShapeProperties::initializePresetDataMap() } bNotDone = aStream.ReadLine(aLine); } - maPresetDataMap[StaticTokenMap::get().getTokenFromUnicode(aName)] = aPropertyMap; + maPresetDataMap[TokenMap::getTokenFromUnicode(aName)] = aPropertyMap; } } diff --git a/oox/source/drawingml/effectpropertiescontext.hxx b/oox/source/drawingml/effectpropertiescontext.hxx index fb336e42a6f5..7f608b3caa83 100644 --- a/oox/source/drawingml/effectpropertiescontext.hxx +++ b/oox/source/drawingml/effectpropertiescontext.hxx @@ -31,7 +31,7 @@ protected: EffectProperties& mrEffectProperties; private: - void saveUnsupportedAttribs( Effect& rEffect, const AttributeList& rAttribs ); + static void saveUnsupportedAttribs( Effect& rEffect, const AttributeList& rAttribs ); }; } } diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx index 8ff5972183b7..9b3cc6c58593 100644 --- a/oox/source/dump/dumperbase.cxx +++ b/oox/source/dump/dumperbase.cxx @@ -829,7 +829,7 @@ void ConfigItemBase::readConfigBlockContents( TextInputStream& rStrm ) } ConfigItemBase::LineType ConfigItemBase::readConfigLine( - TextInputStream& rStrm, OUString& orKey, OUString& orData ) const + TextInputStream& rStrm, OUString& orKey, OUString& orData ) { OUString aLine; while( !rStrm.isEof() && aLine.isEmpty() ) diff --git a/oox/source/helper/attributelist.cxx b/oox/source/helper/attributelist.cxx index da8e2b3f1b32..34cd84020315 100644 --- a/oox/source/helper/attributelist.cxx +++ b/oox/source/helper/attributelist.cxx @@ -65,7 +65,7 @@ sal_Unicode lclGetXChar( const sal_Unicode*& rpcStr, const sal_Unicode* pcEnd ) sal_Int32 AttributeConversion::decodeToken( const OUString& rValue ) { - return StaticTokenMap::get().getTokenFromUnicode( rValue ); + return TokenMap::getTokenFromUnicode( rValue ); } OUString AttributeConversion::decodeXString( const OUString& rValue ) diff --git a/oox/source/ole/axcontrol.cxx b/oox/source/ole/axcontrol.cxx index 89f612c1a4dd..3abbef228239 100644 --- a/oox/source/ole/axcontrol.cxx +++ b/oox/source/ole/axcontrol.cxx @@ -248,7 +248,7 @@ void ControlConverter::convertColor( PropertyMap& rPropMap, sal_Int32 nPropId, s rPropMap.setProperty( nPropId, OleHelper::decodeOleColor( mrGraphicHelper, nOleColor, mbDefaultColorBgr ) ); } -void ControlConverter::convertToMSColor( PropertySet& rPropSet, sal_Int32 nPropId, sal_uInt32& nOleColor, sal_uInt32 nDefault ) const +void ControlConverter::convertToMSColor( PropertySet& rPropSet, sal_Int32 nPropId, sal_uInt32& nOleColor, sal_uInt32 nDefault ) { sal_uInt32 nRGB = 0; if (rPropSet.getProperty( nRGB, nPropId )) @@ -266,20 +266,20 @@ void ControlConverter::convertPicture( PropertyMap& rPropMap, const StreamDataSe } } -void ControlConverter::convertOrientation( PropertyMap& rPropMap, bool bHorizontal ) const +void ControlConverter::convertOrientation( PropertyMap& rPropMap, bool bHorizontal ) { sal_Int32 nScrollOrient = bHorizontal ? ScrollBarOrientation::HORIZONTAL : ScrollBarOrientation::VERTICAL; rPropMap.setProperty( PROP_Orientation, nScrollOrient ); } -void ControlConverter::convertToMSOrientation( PropertySet& rPropSet, bool& bHorizontal ) const +void ControlConverter::convertToMSOrientation( PropertySet& rPropSet, bool& bHorizontal ) { sal_Int32 nScrollOrient = ScrollBarOrientation::HORIZONTAL; if ( rPropSet.getProperty( nScrollOrient, PROP_Orientation ) ) bHorizontal = ( nScrollOrient == ScrollBarOrientation::HORIZONTAL ); } -void ControlConverter::convertVerticalAlign( PropertyMap& rPropMap, sal_Int32 nVerticalAlign ) const +void ControlConverter::convertVerticalAlign( PropertyMap& rPropMap, sal_Int32 nVerticalAlign ) { VerticalAlignment eAlign = VerticalAlignment_TOP; switch( nVerticalAlign ) @@ -307,7 +307,7 @@ void ControlConverter::convertScrollabilitySettings( PropertyMap& rPropMap, void ControlConverter::convertScrollBar( PropertyMap& rPropMap, sal_Int32 nMin, sal_Int32 nMax, sal_Int32 nPosition, - sal_Int32 nSmallChange, sal_Int32 nLargeChange, bool bAwtModel ) const + sal_Int32 nSmallChange, sal_Int32 nLargeChange, bool bAwtModel ) { rPropMap.setProperty( PROP_ScrollValueMin, ::std::min( nMin, nMax ) ); rPropMap.setProperty( PROP_ScrollValueMax, ::std::max( nMin, nMax ) ); @@ -417,7 +417,7 @@ void ControlConverter::convertAxBorder( PropertyMap& rPropMap, } void ControlConverter::convertToAxBorder( PropertySet& rPropSet, - sal_uInt32& nBorderColor, sal_Int32& nBorderStyle, sal_Int32& nSpecialEffect ) const + sal_uInt32& nBorderColor, sal_Int32& nBorderStyle, sal_Int32& nSpecialEffect ) { sal_Int16 nBorder = API_BORDER_NONE; rPropSet.getProperty( nBorder, PROP_Border ); @@ -437,13 +437,13 @@ void ControlConverter::convertToAxBorder( PropertySet& rPropSet, convertToMSColor( rPropSet, PROP_BorderColor, nBorderColor ); } -void ControlConverter::convertAxVisualEffect( PropertyMap& rPropMap, sal_Int32 nSpecialEffect ) const +void ControlConverter::convertAxVisualEffect( PropertyMap& rPropMap, sal_Int32 nSpecialEffect ) { sal_Int16 nVisualEffect = (nSpecialEffect == AX_SPECIALEFFECT_FLAT) ? VisualEffect::FLAT : VisualEffect::LOOK3D; rPropMap.setProperty( PROP_VisualEffect, nVisualEffect ); } -void ControlConverter::convertToAxVisualEffect( PropertySet& rPropSet, sal_Int32& nSpecialEffect ) const +void ControlConverter::convertToAxVisualEffect( PropertySet& rPropSet, sal_Int32& nSpecialEffect ) { sal_Int16 nVisualEffect = AX_SPECIALEFFECT_FLAT; rPropSet.getProperty( nVisualEffect, PROP_VisualEffect ); @@ -498,7 +498,7 @@ void ControlConverter::convertAxPicture( PropertyMap& rPropMap, const StreamData } void ControlConverter::convertAxState( PropertyMap& rPropMap, - const OUString& rValue, sal_Int32 nMultiSelect, ApiDefaultStateMode eDefStateMode, bool bAwtModel ) const + const OUString& rValue, sal_Int32 nMultiSelect, ApiDefaultStateMode eDefStateMode, bool bAwtModel ) { bool bBooleanState = eDefStateMode == API_DEFAULTSTATE_BOOLEAN; bool bSupportsTriState = eDefStateMode == API_DEFAULTSTATE_TRISTATE; @@ -523,7 +523,7 @@ void ControlConverter::convertAxState( PropertyMap& rPropMap, } void ControlConverter::convertToAxState( PropertySet& rPropSet, - OUString& rValue, sal_Int32& nMultiSelect, ApiDefaultStateMode eDefStateMode, bool /*bAwtModel*/ ) const + OUString& rValue, sal_Int32& nMultiSelect, ApiDefaultStateMode eDefStateMode, bool /*bAwtModel*/ ) { bool bSupportsTriState = eDefStateMode == API_DEFAULTSTATE_TRISTATE; @@ -546,7 +546,7 @@ void ControlConverter::convertToAxState( PropertySet& rPropSet, } void ControlConverter::convertAxOrientation( PropertyMap& rPropMap, - const AxPairData& rSize, sal_Int32 nOrientation ) const + const AxPairData& rSize, sal_Int32 nOrientation ) { bool bHorizontal = true; switch( nOrientation ) @@ -560,7 +560,7 @@ void ControlConverter::convertAxOrientation( PropertyMap& rPropMap, } void ControlConverter::convertToAxOrientation( PropertySet& rPropSet, - const AxPairData& /*rSize*/, sal_Int32& nOrientation ) const + const AxPairData& /*rSize*/, sal_Int32& nOrientation ) { bool bHorizontal = true; convertToMSOrientation( rPropSet, bHorizontal ); @@ -766,8 +766,8 @@ ApiControlType ComCtlScrollBarModel::getControlType() const void ComCtlScrollBarModel::convertProperties( PropertyMap& rPropMap, const ControlConverter& rConv ) const { rPropMap.setProperty( PROP_Border, API_BORDER_NONE ); - rConv.convertOrientation( rPropMap, getFlag( mnScrollBarFlags, COMCTL_SCROLLBAR_HOR ) ); - rConv.convertScrollBar( rPropMap, mnMin, mnMax, mnPosition, mnSmallChange, mnLargeChange, mbAwtModel ); + ControlConverter::convertOrientation( rPropMap, getFlag( mnScrollBarFlags, COMCTL_SCROLLBAR_HOR ) ); + ControlConverter::convertScrollBar( rPropMap, mnMin, mnMax, mnPosition, mnSmallChange, mnLargeChange, mbAwtModel ); ComCtlModelBase::convertProperties( rPropMap, rConv ); } @@ -1049,7 +1049,7 @@ void AxCommandButtonModel::convertProperties( PropertyMap& rPropMap, const Contr rPropMap.setProperty( PROP_MultiLine, getFlag( mnFlags, AX_FLAGS_WORDWRAP ) ); rPropMap.setProperty( PROP_FocusOnClick, mbFocusOnClick ); rConv.convertColor( rPropMap, PROP_TextColor, mnTextColor ); - rConv.convertVerticalAlign( rPropMap, mnVerticalAlign ); + ControlConverter::convertVerticalAlign( rPropMap, mnVerticalAlign ); rConv.convertAxBackground( rPropMap, mnBackColor, mnFlags, API_TRANSPARENCY_NOTSUPPORTED ); rConv.convertAxPicture( rPropMap, maPictureData, mnPicturePos ); AxFontDataModel::convertProperties( rPropMap, rConv ); @@ -1065,8 +1065,8 @@ void AxCommandButtonModel::convertFromProperties( PropertySet& rPropSet, const C setFlag( mnFlags, AX_FLAGS_WORDWRAP, bRes ); (void)rPropSet.getProperty(mbFocusOnClick, PROP_FocusOnClick); - rConv.convertToMSColor( rPropSet, PROP_TextColor, mnTextColor ); - rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); + ControlConverter::convertToMSColor( rPropSet, PROP_TextColor, mnTextColor ); + ControlConverter::convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); AxFontDataModel::convertFromProperties( rPropSet, rConv ); } @@ -1150,13 +1150,13 @@ void AxLabelModel::convertFromProperties( PropertySet& rPropSet, const ControlCo if ( rPropSet.getProperty( bRes, PROP_MultiLine ) ) setFlag( mnFlags, AX_FLAGS_WORDWRAP, bRes ); - rConv.convertToMSColor( rPropSet, PROP_TextColor, mnTextColor ); + ControlConverter::convertToMSColor( rPropSet, PROP_TextColor, mnTextColor ); // VerticleAlign doesn't seem to be read from binary // not sure about background color, how do we decide when to set // AX_FLAGS_OPAQUE ? - rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); - rConv.convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect ); + ControlConverter::convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); + ControlConverter::convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect ); AxFontDataModel::convertFromProperties( rPropSet, rConv ); } @@ -1195,7 +1195,7 @@ void AxLabelModel::convertProperties( PropertyMap& rPropMap, const ControlConver rPropMap.setProperty( PROP_Enabled, getFlag( mnFlags, AX_FLAGS_ENABLED ) ); rPropMap.setProperty( PROP_MultiLine, getFlag( mnFlags, AX_FLAGS_WORDWRAP ) ); rConv.convertColor( rPropMap, PROP_TextColor, mnTextColor ); - rConv.convertVerticalAlign( rPropMap, mnVerticalAlign ); + ControlConverter::convertVerticalAlign( rPropMap, mnVerticalAlign ); rConv.convertAxBackground( rPropMap, mnBackColor, mnFlags, API_TRANSPARENCY_VOID ); rConv.convertAxBorder( rPropMap, mnBorderColor, mnBorderStyle, mnSpecialEffect ); AxFontDataModel::convertProperties( rPropMap, rConv ); @@ -1566,9 +1566,9 @@ void AxToggleButtonModel::convertFromProperties( PropertySet& rPropSet, const Co if ( rPropSet.getProperty( bRes, PROP_MultiLine ) ) setFlag( mnFlags, AX_FLAGS_WORDWRAP, bRes ); - rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); + ControlConverter::convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); // need to process the image if one exists - rConv.convertToAxState( rPropSet, maValue, mnMultiSelect, API_DEFAULTSTATE_BOOLEAN, mbAwtModel ); + ControlConverter::convertToAxState( rPropSet, maValue, mnMultiSelect, API_DEFAULTSTATE_BOOLEAN, mbAwtModel ); AxMorphDataModelBase::convertFromProperties( rPropSet, rConv ); } @@ -1577,10 +1577,10 @@ void AxToggleButtonModel::convertProperties( PropertyMap& rPropMap, const Contro rPropMap.setProperty( PROP_Label, maCaption ); rPropMap.setProperty( PROP_MultiLine, getFlag( mnFlags, AX_FLAGS_WORDWRAP ) ); rPropMap.setProperty( PROP_Toggle, true ); - rConv.convertVerticalAlign( rPropMap, mnVerticalAlign ); + ControlConverter::convertVerticalAlign( rPropMap, mnVerticalAlign ); rConv.convertAxBackground( rPropMap, mnBackColor, mnFlags, API_TRANSPARENCY_NOTSUPPORTED ); rConv.convertAxPicture( rPropMap, maPictureData, mnPicturePos ); - rConv.convertAxState( rPropMap, maValue, mnMultiSelect, API_DEFAULTSTATE_BOOLEAN, mbAwtModel ); + ControlConverter::convertAxState( rPropMap, maValue, mnMultiSelect, API_DEFAULTSTATE_BOOLEAN, mbAwtModel ); AxMorphDataModelBase::convertProperties( rPropMap, rConv ); } @@ -1624,11 +1624,11 @@ void AxCheckBoxModel::convertProperties( PropertyMap& rPropMap, const ControlCon { rPropMap.setProperty( PROP_Label, maCaption ); rPropMap.setProperty( PROP_MultiLine, getFlag( mnFlags, AX_FLAGS_WORDWRAP ) ); - rConv.convertVerticalAlign( rPropMap, mnVerticalAlign ); + ControlConverter::convertVerticalAlign( rPropMap, mnVerticalAlign ); rConv.convertAxBackground( rPropMap, mnBackColor, mnFlags, API_TRANSPARENCY_VOID ); - rConv.convertAxVisualEffect( rPropMap, mnSpecialEffect ); + ControlConverter::convertAxVisualEffect( rPropMap, mnSpecialEffect ); rConv.convertAxPicture( rPropMap, maPictureData, mnPicturePos ); - rConv.convertAxState( rPropMap, maValue, mnMultiSelect, API_DEFAULTSTATE_TRISTATE, mbAwtModel ); + ControlConverter::convertAxState( rPropMap, maValue, mnMultiSelect, API_DEFAULTSTATE_TRISTATE, mbAwtModel ); AxMorphDataModelBase::convertProperties( rPropMap, rConv ); } @@ -1640,10 +1640,10 @@ void AxCheckBoxModel::convertFromProperties( PropertySet& rPropSet, const Contro if ( rPropSet.getProperty( bRes, PROP_MultiLine ) ) setFlag( mnFlags, AX_FLAGS_WORDWRAP, bRes ); - rConv.convertToAxVisualEffect( rPropSet, mnSpecialEffect ); - rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); + ControlConverter::convertToAxVisualEffect( rPropSet, mnSpecialEffect ); + ControlConverter::convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); // need to process the image if one exists - rConv.convertToAxState( rPropSet, maValue, mnMultiSelect, API_DEFAULTSTATE_BOOLEAN, mbAwtModel ); + ControlConverter::convertToAxState( rPropSet, maValue, mnMultiSelect, API_DEFAULTSTATE_BOOLEAN, mbAwtModel ); AxMorphDataModelBase::convertFromProperties( rPropSet, rConv ); } @@ -1686,11 +1686,11 @@ void AxOptionButtonModel::convertProperties( PropertyMap& rPropMap, const Contro { rPropMap.setProperty( PROP_Label, maCaption ); rPropMap.setProperty( PROP_MultiLine, getFlag( mnFlags, AX_FLAGS_WORDWRAP ) ); - rConv.convertVerticalAlign( rPropMap, mnVerticalAlign ); + ControlConverter::convertVerticalAlign( rPropMap, mnVerticalAlign ); rConv.convertAxBackground( rPropMap, mnBackColor, mnFlags, API_TRANSPARENCY_VOID ); - rConv.convertAxVisualEffect( rPropMap, mnSpecialEffect ); + ControlConverter::convertAxVisualEffect( rPropMap, mnSpecialEffect ); rConv.convertAxPicture( rPropMap, maPictureData, mnPicturePos ); - rConv.convertAxState( rPropMap, maValue, mnMultiSelect, API_DEFAULTSTATE_SHORT, mbAwtModel ); + ControlConverter::convertAxState( rPropMap, maValue, mnMultiSelect, API_DEFAULTSTATE_SHORT, mbAwtModel ); AxMorphDataModelBase::convertProperties( rPropMap, rConv ); } @@ -1702,10 +1702,10 @@ void AxOptionButtonModel::convertFromProperties( PropertySet& rPropSet, const Co if ( rPropSet.getProperty( bRes, PROP_MultiLine ) ) setFlag( mnFlags, AX_FLAGS_WORDWRAP, bRes ); - rConv.convertToAxVisualEffect( rPropSet, mnSpecialEffect ); - rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); + ControlConverter::convertToAxVisualEffect( rPropSet, mnSpecialEffect ); + ControlConverter::convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); // need to process the image if one exists - rConv.convertToAxState( rPropSet, maValue, mnMultiSelect, API_DEFAULTSTATE_BOOLEAN, mbAwtModel ); + ControlConverter::convertToAxState( rPropSet, maValue, mnMultiSelect, API_DEFAULTSTATE_BOOLEAN, mbAwtModel ); AxMorphDataModelBase::convertFromProperties( rPropSet, rConv ); } @@ -1781,9 +1781,9 @@ void AxTextBoxModel::convertFromProperties( PropertySet& rPropSet, const Control if ( rPropSet.getProperty( bRes, PROP_VScroll ) ) setFlag( mnScrollBars, AX_SCROLLBAR_VERTICAL, bRes ); - rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor, 0x80000005L ); + ControlConverter::convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor, 0x80000005L ); - rConv.convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect ); + ControlConverter::convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect ); AxMorphDataModelBase::convertFromProperties( rPropSet, rConv ); } @@ -1843,9 +1843,9 @@ void AxNumericFieldModel::convertFromProperties( PropertySet& rPropSet, const Co if ( rPropSet.getProperty( bRes, PROP_Spin ) ) setFlag( mnScrollBars, AX_SCROLLBAR_VERTICAL, bRes ); - rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); + ControlConverter::convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); - rConv.convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect ); + ControlConverter::convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect ); AxMorphDataModelBase::convertFromProperties( rPropSet, rConv ); } @@ -1898,10 +1898,9 @@ void AxListBoxModel::convertFromProperties( PropertySet& rPropSet, const Control { bool bRes = false; if ( rPropSet.getProperty( bRes, PROP_MultiSelection ) ) + ControlConverter::convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); - rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); - - rConv.convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect ); + ControlConverter::convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect ); AxMorphDataModelBase::convertFromProperties( rPropSet, rConv ); } @@ -1986,9 +1985,9 @@ void AxComboBoxModel::convertFromProperties( PropertySet& rPropSet, const Contro if ( !mnListRows ) mnListRows = 1; } - rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); + ControlConverter::convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); - rConv.convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect ); + ControlConverter::convertToAxBorder( rPropSet, mnBorderColor, mnBorderStyle, mnSpecialEffect ); AxMorphDataModelBase::convertFromProperties( rPropSet, rConv ); } @@ -2111,11 +2110,11 @@ void AxSpinButtonModel::convertProperties( PropertyMap& rPropMap, const ControlC rPropMap.setProperty( PROP_Border, API_BORDER_NONE ); rConv.convertColor( rPropMap, PROP_SymbolColor, mnArrowColor ); rConv.convertAxBackground( rPropMap, mnBackColor, mnFlags, API_TRANSPARENCY_NOTSUPPORTED ); - rConv.convertAxOrientation( rPropMap, maSize, mnOrientation ); + ControlConverter::convertAxOrientation( rPropMap, maSize, mnOrientation ); AxControlModelBase::convertProperties( rPropMap, rConv ); } -void AxSpinButtonModel::convertFromProperties( PropertySet& rPropSet, const ControlConverter& rConv ) +void AxSpinButtonModel::convertFromProperties( PropertySet& rPropSet, const ControlConverter& ) { bool bRes = false; if ( rPropSet.getProperty( bRes, PROP_Enabled ) ) @@ -2125,10 +2124,10 @@ void AxSpinButtonModel::convertFromProperties( PropertySet& rPropSet, const Cont rPropSet.getProperty( mnSmallChange, PROP_SpinIncrement ); rPropSet.getProperty( mnPosition, ( mbAwtModel ? PROP_SpinValue : PROP_DefaultSpinValue ) ); rPropSet.getProperty( mnDelay, PROP_RepeatDelay ); - rConv.convertToMSColor( rPropSet, PROP_SymbolColor, mnArrowColor); - rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); + ControlConverter::convertToMSColor( rPropSet, PROP_SymbolColor, mnArrowColor); + ControlConverter::convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); - rConv.convertToAxOrientation( rPropSet, maSize, mnOrientation ); + ControlConverter::convertToAxOrientation( rPropSet, maSize, mnOrientation ); } void AxSpinButtonModel::exportCompObj( BinaryOutputStream& rOutStream ) @@ -2285,21 +2284,21 @@ void AxScrollBarModel::convertProperties( PropertyMap& rPropMap, const ControlCo } rConv.convertColor( rPropMap, PROP_SymbolColor, mnArrowColor ); rConv.convertAxBackground( rPropMap, mnBackColor, mnFlags, API_TRANSPARENCY_NOTSUPPORTED ); - rConv.convertAxOrientation( rPropMap, maSize, mnOrientation ); - rConv.convertScrollBar( rPropMap, mnMin, mnMax, mnPosition, mnSmallChange, mnLargeChange, mbAwtModel ); + ControlConverter::convertAxOrientation( rPropMap, maSize, mnOrientation ); + ControlConverter::convertScrollBar( rPropMap, mnMin, mnMax, mnPosition, mnSmallChange, mnLargeChange, mbAwtModel ); AxControlModelBase::convertProperties( rPropMap, rConv ); } -void AxScrollBarModel::convertFromProperties( PropertySet& rPropSet, const ControlConverter& rConv ) +void AxScrollBarModel::convertFromProperties( PropertySet& rPropSet, const ControlConverter& ) { bool bRes = false; if ( rPropSet.getProperty( bRes, PROP_Enabled ) ) setFlag( mnFlags, AX_FLAGS_ENABLED, bRes ); rPropSet.getProperty( mnDelay, PROP_RepeatDelay ); mnPropThumb = AX_PROPTHUMB_ON; // default - rConv.convertToMSColor( rPropSet, PROP_SymbolColor, mnArrowColor); - rConv.convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); - rConv.convertToAxOrientation( rPropSet, maSize, mnOrientation ); + ControlConverter::convertToMSColor( rPropSet, PROP_SymbolColor, mnArrowColor); + ControlConverter::convertToMSColor( rPropSet, PROP_BackgroundColor, mnBackColor ); + ControlConverter::convertToAxOrientation( rPropSet, maSize, mnOrientation ); rPropSet.getProperty( mnMin, PROP_ScrollValueMin ); rPropSet.getProperty( mnMax, PROP_ScrollValueMax ); diff --git a/oox/source/token/tokenmap.cxx b/oox/source/token/tokenmap.cxx index 318aee40538b..fb96c37fe3a3 100644 --- a/oox/source/token/tokenmap.cxx +++ b/oox/source/token/tokenmap.cxx @@ -73,14 +73,14 @@ TokenMap::~TokenMap() { } -sal_Int32 TokenMap::getTokenFromUnicode( const OUString& rUnicodeName ) const +sal_Int32 TokenMap::getTokenFromUnicode( const OUString& rUnicodeName ) { OString aUtf8Name = OUStringToOString( rUnicodeName, RTL_TEXTENCODING_UTF8 ); const struct xmltoken* pToken = Perfect_Hash::in_word_set( aUtf8Name.getStr(), aUtf8Name.getLength() ); return pToken ? pToken->nToken : XML_TOKEN_INVALID; } -sal_Int32 TokenMap::getTokenPerfectHash( const char *pStr, sal_Int32 nLength ) const +sal_Int32 TokenMap::getTokenPerfectHash( const char *pStr, sal_Int32 nLength ) { const struct xmltoken* pToken = Perfect_Hash::in_word_set( pStr, nLength ); return pToken ? pToken->nToken : XML_TOKEN_INVALID; |