summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-03-18 12:14:11 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2016-03-21 13:49:30 +0200
commita112d3dc70f25bd2ceb35f563414f79391f13593 (patch)
tree25d73d25ff2e83779cafc96f37c8dae8451c67a1 /chart2
parent2d4e9abc07b013bcf0fb6cec56ddd326c7fd1da4 (diff)
Move clipboard stuff to the top like in other modules
Change-Id: I0e07e58f058ce7dde57277868597a56273d3b5ce
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index 4a9c18ea3c95..a9f98d97112c 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -994,6 +994,11 @@ void ChartController::execute_Command( const CommandEvent& rCEvt )
if( xPopupMenu.is())
{
sal_Int16 nUniqueId = 1;
+ lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:Cut" );
+ lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:Copy" );
+ lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:Paste" );
+ xPopupMenu->insertSeparator( -1 );
+
ObjectType eObjectType = ObjectIdentifier::getObjectType( m_aSelection.getSelectedCID() );
Reference< XDiagram > xDiagram = ChartModelHelper::findDiagram( getModel() );
@@ -1232,10 +1237,6 @@ void ChartController::execute_Command( const CommandEvent& rCEvt )
lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:DataRanges" );
lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:DiagramData" );
lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:View3D" );
- xPopupMenu->insertSeparator( -1 );
- lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:Cut" );
- lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:Copy" );
- lcl_insertMenuCommand( xPopupMenu, nUniqueId++, ".uno:Paste" );
::svt::ContextMenuHelper aContextMenuHelper( m_xFrame );
aContextMenuHelper.completeAndExecute( aPos, xPopupMenu );