summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-03 14:40:49 +0200
committerNoel Grandin <noel@peralex.com>2014-03-05 09:17:44 +0200
commitadbf974f828b23c4645e39267131428a2fa46792 (patch)
treeaedbba471f91892dba1e58450171108fc6e7d478 /chart2
parentd61b787c84f80bb35b545cde069f0ca621dfc9fb (diff)
remove unused code chart::ChartModelHelper::setPageSize
Change-Id: I9c6d6f8d9389070a41af2a289e97b6eeb2fc750c
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/inc/ChartModelHelper.hxx4
-rw-r--r--chart2/source/tools/ChartModelHelper.cxx8
2 files changed, 0 insertions, 12 deletions
diff --git a/chart2/source/inc/ChartModelHelper.hxx b/chart2/source/inc/ChartModelHelper.hxx
index 9b947cd45a72..426bdafa8687 100644
--- a/chart2/source/inc/ChartModelHelper.hxx
+++ b/chart2/source/inc/ChartModelHelper.hxx
@@ -93,10 +93,6 @@ public:
const ::com::sun::star::uno::Reference<
::com::sun::star::frame::XModel >& xModel );
- static void setPageSize( const ::com::sun::star::awt::Size& rSize
- , const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel >& xModel );
-
static void triggerRangeHighlighting( const ::com::sun::star::uno::Reference<
::com::sun::star::frame::XModel >& xModel );
diff --git a/chart2/source/tools/ChartModelHelper.cxx b/chart2/source/tools/ChartModelHelper.cxx
index 05bda3059ef1..976cd4f91134 100644
--- a/chart2/source/tools/ChartModelHelper.cxx
+++ b/chart2/source/tools/ChartModelHelper.cxx
@@ -182,14 +182,6 @@ awt::Size ChartModelHelper::getPageSize( const uno::Reference< frame::XModel >&
return aPageSize;
}
-void ChartModelHelper::setPageSize( const awt::Size& rSize, const uno::Reference< frame::XModel >& xModel )
-{
- uno::Reference< embed::XVisualObject > xVisualObject(xModel,uno::UNO_QUERY);
- OSL_ENSURE(xVisualObject.is(),"need xVisualObject for page size");
- if( xVisualObject.is() )
- xVisualObject->setVisualAreaSize( embed::Aspects::MSOLE_CONTENT, rSize );
-}
-
void ChartModelHelper::triggerRangeHighlighting( const uno::Reference< frame::XModel >& xModel )
{
uno::Reference< chart2::data::XDataReceiver > xDataReceiver( xModel, uno::UNO_QUERY );