diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-10-06 17:13:25 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-10-06 17:14:16 +0200 |
commit | 5e47d8ca9a4282d2c7b6e1e561d7f2eb46166bd7 (patch) | |
tree | e1085b4327bddcf1745115c43f6a1b2872eda72d /oox/source | |
parent | 190bfac40e1b7a3b32793ac82eb3e67aefd6c785 (diff) |
Remove 3 oox::ole elements:
oox::ole::AxFormPageModel::AxFormPageModel()
oox::ole::AxMultiPageModel::AxMultiPageModel()
oox::ole::AxTabStripModel::AxTabStripModel()
Change-Id: I09c0993c2b6e98eed5536ac1c2a8b5559a3dcac6
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/ole/axcontrol.cxx | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/oox/source/ole/axcontrol.cxx b/oox/source/ole/axcontrol.cxx index 8592ba6dc4f8..9e70cfd5a38f 100644 --- a/oox/source/ole/axcontrol.cxx +++ b/oox/source/ole/axcontrol.cxx @@ -2263,64 +2263,6 @@ void AxScrollBarModel::convertFromProperties( PropertySet& rPropSet, const Contr // ============================================================================ -AxTabStripModel::AxTabStripModel() : - AxFontDataModel( false ), // no support for alignment properties - mnBackColor( AX_SYSCOLOR_BUTTONFACE ), - mnTextColor( AX_SYSCOLOR_BUTTONTEXT ), - mnFlags( AX_TABSTRIP_DEFFLAGS ), - mnSelectedTab( -1 ), - mnTabStyle( AX_TABSTRIP_TABS ), - mnTabFlagCount( 0 ) -{ -} - -bool AxTabStripModel::importBinaryModel( BinaryInputStream& rInStrm ) -{ - AxBinaryPropertyReader aReader( rInStrm ); - aReader.readIntProperty< sal_Int32 >( mnSelectedTab ); - aReader.readIntProperty< sal_uInt32 >( mnBackColor ); - aReader.readIntProperty< sal_uInt32 >( mnTextColor ); - aReader.skipUndefinedProperty(); - aReader.readPairProperty( maSize ); - aReader.readStringArrayProperty( maCaptions ); - aReader.skipIntProperty< sal_uInt8 >(); // mouse pointer - aReader.skipUndefinedProperty(); - aReader.skipIntProperty< sal_uInt32 >(); // tab orientation - aReader.readIntProperty< sal_uInt32 >( mnTabStyle ); - aReader.skipBoolProperty(); // multiple rows - aReader.skipIntProperty< sal_uInt32 >(); // fixed width - aReader.skipIntProperty< sal_uInt32 >(); // fixed height - aReader.skipBoolProperty(); // tooltips - aReader.skipUndefinedProperty(); - aReader.skipStringArrayProperty(); // tooltip strings - aReader.skipUndefinedProperty(); - aReader.skipStringArrayProperty(); // tab names - aReader.readIntProperty< sal_uInt32 >( mnFlags ); - aReader.skipBoolProperty(); // new version - aReader.skipIntProperty< sal_uInt32 >(); // tabs allocated - aReader.skipStringArrayProperty(); // tags - aReader.readIntProperty< sal_uInt32 >( mnTabFlagCount ); - aReader.skipStringArrayProperty(); // accelerators - aReader.skipPictureProperty(); // mouse icon - return aReader.finalizeImport() && AxFontDataModel::importBinaryModel( rInStrm ); -} - -ApiControlType AxTabStripModel::getControlType() const -{ - return API_CONTROL_TABSTRIP; -} - -void AxTabStripModel::convertProperties( PropertyMap& rPropMap, const ControlConverter& rConv ) const -{ - rPropMap.setProperty( PROP_Decoration, mnTabStyle != AX_TABSTRIP_NONE ); - // adjust for openoffice ( 1 based ) - rPropMap.setProperty( PROP_MultiPageValue, mnSelectedTab + 1); - rConv.convertColor( rPropMap, PROP_BackgroundColor, mnBackColor ); - AxFontDataModel::convertProperties( rPropMap, rConv ); -} - -// ============================================================================ - AxContainerModelBase::AxContainerModelBase( bool bFontSupport ) : AxFontDataModel( false ), // no support for alignment properties maLogicalSize( AX_CONTAINER_DEFWIDTH, AX_CONTAINER_DEFHEIGHT ), @@ -2448,44 +2390,6 @@ void AxFrameModel::convertProperties( PropertyMap& rPropMap, const ControlConver // ============================================================================ -AxFormPageModel::AxFormPageModel() -{ -} - -ApiControlType AxFormPageModel::getControlType() const -{ - return API_CONTROL_PAGE; -} - -void AxFormPageModel::convertProperties( PropertyMap& rPropMap, const ControlConverter& rConv ) const -{ - rPropMap.setProperty( PROP_Title, maCaption ); - rPropMap.setProperty( PROP_Enabled, getFlag( mnFlags, AX_CONTAINER_ENABLED ) ); - rConv.convertColor( rPropMap, PROP_BackgroundColor, mnBackColor ); - AxContainerModelBase::convertProperties( rPropMap, rConv ); -} - -// ============================================================================ - -AxMultiPageModel::AxMultiPageModel() -{ -} - -ApiControlType AxMultiPageModel::getControlType() const -{ - return API_CONTROL_MULTIPAGE; -} - -void AxMultiPageModel::convertProperties( PropertyMap& rPropMap, const ControlConverter& rConv ) const -{ - rPropMap.setProperty( PROP_Enabled, getFlag( mnFlags, AX_CONTAINER_ENABLED ) ); - if( mxTabStrip.get() ) - mxTabStrip->convertProperties( rPropMap, rConv ); - AxContainerModelBase::convertProperties( rPropMap, rConv ); -} - -// ============================================================================ - AxUserFormModel::AxUserFormModel() { } |