diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 07:35:04 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 07:35:04 +0000 |
commit | 70346a32723a3f3c1cbfedd2c6096152260ef9f7 (patch) | |
tree | cdadef43a660b956867d0d9a0562160ec3069429 /chart2/source/controller/dialogs/DialogModel.cxx | |
parent | ff916ccce1527b63aad17bbae0ad02a834cd31d6 (diff) |
CWS-TOOLING: integrate CWS chart30
Diffstat (limited to 'chart2/source/controller/dialogs/DialogModel.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/DialogModel.cxx | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx index e980b1550996..28d9f6420419 100644 --- a/chart2/source/controller/dialogs/DialogModel.cxx +++ b/chart2/source/controller/dialogs/DialogModel.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DialogModel.cxx,v $ - * $Revision: 1.7 $ + * $Revision: 1.7.16.1 $ * * This file is part of OpenOffice.org. * @@ -717,37 +717,6 @@ bool DialogModel::setData( } // static -void DialogModel::restoreModel( - const Reference< chart2::XChartDocument > & xSource, - const Reference< chart2::XChartDocument > & xDestination ) -{ - ControllerLockGuard aLockedControllers( Reference< frame::XModel >( xDestination, uno::UNO_QUERY ) ); - - if( xSource.is() && xDestination.is()) - { - try - { - // diagram - xDestination->setFirstDiagram( xSource->getFirstDiagram()); - - // main title - Reference< chart2::XTitled > xDestinationTitled( xDestination, uno::UNO_QUERY_THROW ); - Reference< chart2::XTitled > xSourceTitled( xSource, uno::UNO_QUERY_THROW ); - xDestinationTitled->setTitleObject( xSourceTitled->getTitleObject()); - - // page background - comphelper::copyProperties( - xSource->getPageBackground(), - xDestination->getPageBackground() ); - } - catch( uno::Exception & ex ) - { - ASSERT_EXCEPTION( ex ); - } - } -} - -// static OUString DialogModel::ConvertRoleFromInternalToUI( const OUString & rRoleString ) { return lcl_ConvertRole( rRoleString, true ); |