diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-01-17 17:58:18 +0100 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-18 12:25:25 -0500 |
commit | 4b13d3dc1d29132f7e188932ca5ee00c977d3655 (patch) | |
tree | a5448366caad6aef8cf5f0d079d4046f16c2cccb /chart2/source/controller/main | |
parent | 0cd32bec488d80cef111ccbff8c172b35421a394 (diff) |
Some more dead code removal
Diffstat (limited to 'chart2/source/controller/main')
5 files changed, 0 insertions, 70 deletions
diff --git a/chart2/source/controller/main/ChartController_TextEdit.cxx b/chart2/source/controller/main/ChartController_TextEdit.cxx index 631bce3d48aa..8635e80a6597 100644 --- a/chart2/source/controller/main/ChartController_TextEdit.cxx +++ b/chart2/source/controller/main/ChartController_TextEdit.cxx @@ -58,7 +58,6 @@ namespace chart { //............................................................................. using namespace ::com::sun::star; -//using namespace ::com::sun::star::chart2; //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- @@ -81,10 +80,6 @@ void ChartController::StartTextEdit( const Point* pMousePixel ) m_xUndoManager->preAction( getModel()); SdrOutliner* pOutliner = m_pDrawViewWrapper->getOutliner(); - //pOutliner->SetRefDevice(m_pChartWindow); - //pOutliner->SetStyleSheetPool((SfxStyleSheetPool*)pStyleSheetPool); - //pOutliner->SetDefaultLanguage( eLang ); - //pOutliner->SetHyphenator( xHyphenator ); //#i77362 change notification for changes on additional shapes are missing uno::Reference< beans::XPropertySet > xChartViewProps( m_xChartView, uno::UNO_QUERY ); @@ -102,12 +97,6 @@ void ChartController::StartTextEdit( const Point* pMousePixel ) ); if(bEdit) { - // set undo manager at topmost shell ( SdDrawTextObjectBar ) - /* - if( pViewSh ) - pViewSh->GetViewFrame()->GetDispatcher()->GetShell( 0 )-> - SetUndoManager(&pOutliner->GetUndoManager()); - */ m_pDrawViewWrapper->SetEditMode(); // #i12587# support for shapes in chart @@ -236,8 +225,6 @@ void SAL_CALL ChartController::executeDispatch_InsertSpecialCharacter() // attributes become unique (sel. has to be erased anyway) pOutlinerView->InsertText(String()); - //SfxUndoManager& rUndoMgr = pOutliner->GetUndoManager(); - //rUndoMgr.EnterListAction( String( SchResId( STR_UNDO_INSERT_SPECCHAR )), String( SchResId( STR_UNDO_INSERT_SPECCHAR ))); pOutlinerView->InsertText(aString, TRUE); ESelection aSel = pOutlinerView->GetSelection(); @@ -245,8 +232,6 @@ void SAL_CALL ChartController::executeDispatch_InsertSpecialCharacter() aSel.nStartPos = aSel.nEndPos; pOutlinerView->SetSelection(aSel); - //rUndoMgr.LeaveListAction(); - // show changes pOutliner->SetUpdateMode(TRUE); pOutlinerView->ShowCursor(); diff --git a/chart2/source/controller/main/ChartController_Tools.cxx b/chart2/source/controller/main/ChartController_Tools.cxx index 261561125bd3..23dc588dd13f 100644 --- a/chart2/source/controller/main/ChartController_Tools.cxx +++ b/chart2/source/controller/main/ChartController_Tools.cxx @@ -155,51 +155,6 @@ bool lcl_deleteDataCurve( return bResult; } -// void lcl_CopyPageContentToPage( -// const Reference< drawing::XDrawPage > & xSourcePage, -// const Reference< drawing::XDrawPage > & xDestPage ) -// { -// try -// { -// Reference< container::XIndexAccess > xSourceIA( xSourcePage, uno::UNO_QUERY_THROW ); -// sal_Int32 nCount( xSourceIA->getCount()); -// for( sal_Int32 i=0; i<nCount; ++i ) -// { -// Reference< drawing::XShape > xShape; -// if( xSourceIA->getByIndex( i ) >>= xShape ) -// xDestPage->add( xShape ); -// } -// } -// catch( const uno::Exception & ex ) -// { -// ASSERT_EXCEPTION( ex ); -// } -// } - -// // copies all shapes on all pages of xSource to the only page of xDestination -// void lcl_CopyShapesToChart( -// const Reference< frame::XModel > & xSource, const Reference< frame::XModel > & xDestination ) -// { -// try -// { -// Reference< drawing::XDrawPageSupplier > xDestPGSupp( xDestination, uno::UNO_QUERY_THROW ); -// Reference< drawing::XDrawPage > xDestPage( xDestPGSupp->getDrawPage()); -// Reference< drawing::XDrawPagesSupplier > xSourcePGsSupp( xSource, uno::UNO_QUERY_THROW ); -// Reference< drawing::XDrawPages > xSourcePages( xSourcePGsSupp->getDrawPages()); - -// sal_Int32 nCount( xSourcePages->getCount()); -// for( sal_Int32 i=0; i<nCount; ++i ) -// { -// Reference< drawing::XDrawPage > xSourcePage( xSourcePages->getByIndex( i ), uno::UNO_QUERY_THROW ); -// lcl_CopyPageContentToPage( xSourcePage, xDestPage ); -// } -// } -// catch( const uno::Exception & ex ) -// { -// ASSERT_EXCEPTION( ex ); -// } -// } - } // anonymous namespace diff --git a/chart2/source/controller/main/CommandDispatchContainer.cxx b/chart2/source/controller/main/CommandDispatchContainer.cxx index 399b0e1d6aab..8ee5f4ad712a 100644 --- a/chart2/source/controller/main/CommandDispatchContainer.cxx +++ b/chart2/source/controller/main/CommandDispatchContainer.cxx @@ -76,12 +76,6 @@ void CommandDispatchContainer::setModel( m_xModel = xModel; } -// void CommandDispatchContainer::setUndoManager( -// const Reference< chart2::XUndoManager > & xUndoManager ) -// { -// m_xUndoManager = xUndoManager; -// } - void CommandDispatchContainer::setChartDispatch( const Reference< frame::XDispatch > xChartDispatch, const ::std::set< OUString > & rChartCommands ) diff --git a/chart2/source/controller/main/CommandDispatchContainer.hxx b/chart2/source/controller/main/CommandDispatchContainer.hxx index 8d99247c908d..b698494a9f1e 100644 --- a/chart2/source/controller/main/CommandDispatchContainer.hxx +++ b/chart2/source/controller/main/CommandDispatchContainer.hxx @@ -87,9 +87,6 @@ public: void setModel( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & xModel ); -// void setUndoManager( -// const ::com::sun::star::uno::Reference< -// ::com::sun::star::chart2::XUndoManager > & xUndoManager ); /** Set a chart dispatcher that is used for all commands contained in rChartCommands diff --git a/chart2/source/controller/main/SelectionHelper.cxx b/chart2/source/controller/main/SelectionHelper.cxx index c5fcb7e53e1a..903acfab38bc 100644 --- a/chart2/source/controller/main/SelectionHelper.cxx +++ b/chart2/source/controller/main/SelectionHelper.cxx @@ -51,7 +51,6 @@ namespace chart { //............................................................................. using namespace ::com::sun::star; -//using namespace ::com::sun::star::chart2; namespace { |