diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-22 21:20:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 03:38:49 +0000 |
commit | 0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch) | |
tree | 5024cba9f9ea5e3b23ea26025323f6aef39488d0 /chart2/source/controller | |
parent | b81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff) |
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2/source/controller')
-rw-r--r-- | chart2/source/controller/dialogs/tp_ChartType.cxx | 14 | ||||
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 8 | ||||
-rw-r--r-- | chart2/source/controller/main/ChartController_Window.cxx | 6 |
3 files changed, 14 insertions, 14 deletions
diff --git a/chart2/source/controller/dialogs/tp_ChartType.cxx b/chart2/source/controller/dialogs/tp_ChartType.cxx index dd09bd7a3694..8fa152a4fcc4 100644 --- a/chart2/source/controller/dialogs/tp_ChartType.cxx +++ b/chart2/source/controller/dialogs/tp_ChartType.cxx @@ -1074,7 +1074,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll long nYPos = m_nYTopPos; - //------ + bool bShow = rTypeController.shouldShow_XAxisTypeControl(); long nXPos = m_pAxisTypeResourceGroup->getPosition().X(); m_pAxisTypeResourceGroup->showControls( bShow ); @@ -1083,7 +1083,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll m_pAxisTypeResourceGroup->setPosition( Point( nXPos, nYPos ) ); nYPos += m_pAxisTypeResourceGroup->getHeight() + lcl_getDistance(); } - //------ + bShow = rTypeController.shouldShow_3DLookControl(); m_pDim3DLookResourceGroup->showControls( bShow ); if(bShow) @@ -1091,7 +1091,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll m_pDim3DLookResourceGroup->setPosition( Point( nXPos, nYPos ) ); nYPos += m_pDim3DLookResourceGroup->getHeight() + lcl_getDistance(); } - //------ + bShow = rTypeController.shouldShow_StackingControl(); m_pStackingResourceGroup->showControls( bShow, rTypeController.shouldShow_DeepStackingControl() ); if(bShow) @@ -1102,7 +1102,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll m_pStackingResourceGroup->setPosition( Point( nStackingXPos, nYPos ) ); nYPos += m_pStackingResourceGroup->getHeight() + lcl_getDistance(); } - //------ + bShow = rTypeController.shouldShow_SplineControl(); m_pSplineResourceGroup->showControls( bShow ); if(bShow) @@ -1110,7 +1110,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll m_pSplineResourceGroup->setPosition( Point( nXPos, nYPos ) ); nYPos += m_pSplineResourceGroup->getHeight() + lcl_getDistance(); } - //------ + bShow = rTypeController.shouldShow_GeometryControl(); m_pGeometryResourceGroup->showControls( bShow ); if(bShow) @@ -1118,7 +1118,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll m_pGeometryResourceGroup->setPosition( Point( nXPos+17, nYPos ) ); nYPos += m_pGeometryResourceGroup->getHeight() + lcl_getDistance(); } - //------ + bShow = rTypeController.shouldShow_SortByXValuesResourceGroup(); m_pSortByXValuesResourceGroup->showControls( bShow ); if(bShow) @@ -1126,7 +1126,7 @@ void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeControll m_pSortByXValuesResourceGroup->setPosition( Point( nXPos, nYPos ) ); nYPos += m_pSortByXValuesResourceGroup->getHeight() + lcl_getDistance(); } - //------ + Size aPageSize( this->GetSizePixel() ); Size aRemainingSize = Size( aPageSize.Width()-nXPos, aPageSize.Height()-nYPos ); rTypeController.showExtraControls( this, Point( nXPos, nYPos ), aRemainingSize ); diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index b8ceebf2386b..f52c435684f1 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -58,17 +58,17 @@ #include <com/sun/star/document/XUndoManagerSupplier.hpp> #include <com/sun/star/document/XUndoAction.hpp> -//------- + // header for define RET_OK #include <vcl/msgbox.hxx> -//------- -//------- + + #include <toolkit/awt/vclxwindow.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <vcl/svapp.hxx> #include <osl/mutex.hxx> -//------- + #include <com/sun/star/frame/XLayoutManager.hpp> #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index f51dd49efe85..9b75609a020d 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -1022,7 +1022,7 @@ void ChartController::execute_Command( const CommandEvent& rCEvt ) lcl_insertMenuCommand( xPopupMenu, nUniqueId++, aFormatCommand ); //some commands for dataseries and points: - //----- + if( OBJECTTYPE_DATA_SERIES == eObjectType || OBJECTTYPE_DATA_POINT == eObjectType ) { bool bIsPoint = ( OBJECTTYPE_DATA_POINT == eObjectType ); @@ -1179,7 +1179,7 @@ void ChartController::execute_Command( const CommandEvent& rCEvt ) } //some commands for axes: and grids - //----- + else if( OBJECTTYPE_AXIS == eObjectType || OBJECTTYPE_GRID == eObjectType || OBJECTTYPE_SUBGRID == eObjectType ) { Reference< XAxis > xAxis = ObjectIdentifier::getAxisForCID( m_aSelection.getSelectedCID(), getModel() ); @@ -1247,7 +1247,7 @@ void ChartController::execute_Command( const CommandEvent& rCEvt ) if( bHasLegend ) lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:DeleteLegend" ); } - //----- + xPopupMenu->insertSeparator( -1 ); lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:DiagramType" ); |