diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-07-18 21:51:27 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-07-18 22:16:39 +0300 |
commit | 7352a7c17875e5adcc4226c45f4a03e11c44ff49 (patch) | |
tree | 29a10d45779472d1b5c342c772867d80baf21864 /sd/source/ui/view/drviewsa.cxx | |
parent | 9f75bad228ca1f410b7a450084b02ad13745110e (diff) |
Convert SdTbxControl to the generic controller
And remove the now unused stuff from SfxToolBoxControl.
Change-Id: I8805ba96a5dc41076d9cb8d887759a578a33526d
Diffstat (limited to 'sd/source/ui/view/drviewsa.cxx')
-rw-r--r-- | sd/source/ui/view/drviewsa.cxx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx index 2176907053b4..73ecd791e61e 100644 --- a/sd/source/ui/view/drviewsa.cxx +++ b/sd/source/ui/view/drviewsa.cxx @@ -191,8 +191,6 @@ DrawViewShell::~DrawViewShell() mpView = mpDrawView = NULL; mpFrameView->Disconnect(); - delete [] mpSlotArray; - maTabControl.disposeAndClear(); } @@ -204,7 +202,6 @@ void DrawViewShell::Construct(DrawDocShell* pDocSh, PageKind eInitialPageKind) mpActualPage = 0; mbMousePosFreezed = false; mbReadOnly = GetDocSh()->IsReadOnly(); - mpSlotArray = 0; mpClipEvtLstnr = 0; mbPastePossible = false; mbIsLayerModeActive = false; @@ -216,35 +213,6 @@ void DrawViewShell::Construct(DrawDocShell* pDocSh, PageKind eInitialPageKind) OSL_ASSERT (GetViewShell()!=NULL); - /* array for slot-/image mapping: - even entry: main-/toolbox slot - odd entry: mapped slot - Attention: adjust GetIdBySubId() !!! - Do not change order (especial zoom) !!! */ - mpSlotArray = new sal_uInt16[ SLOTARRAY_COUNT ]; - mpSlotArray[ 0 ] = SID_OBJECT_CHOOSE_MODE; - mpSlotArray[ 1 ] = SID_OBJECT_ROTATE; - mpSlotArray[ 2 ] = SID_ZOOM_TOOLBOX; - mpSlotArray[ 3 ] = SID_ZOOM_TOOLBOX; - mpSlotArray[ 4 ] = SID_DRAWTBX_TEXT; - mpSlotArray[ 5 ] = SID_ATTR_CHAR; - mpSlotArray[ 6 ] = SID_DRAWTBX_RECTANGLES; - mpSlotArray[ 7 ] = SID_DRAW_RECT; - mpSlotArray[ 8 ] = SID_DRAWTBX_ELLIPSES; - mpSlotArray[ 9 ] = SID_DRAW_ELLIPSE; - mpSlotArray[ 10 ] = SID_DRAWTBX_LINES; - mpSlotArray[ 11 ] = SID_DRAW_FREELINE_NOFILL; - mpSlotArray[ 12 ] = SID_DRAWTBX_3D_OBJECTS; - mpSlotArray[ 13 ] = SID_3D_CUBE; - mpSlotArray[ 14 ] = SID_DRAWTBX_INSERT; - mpSlotArray[ 15 ] = SID_INSERT_DIAGRAM; - mpSlotArray[ 16 ] = SID_POSITION; - mpSlotArray[ 17 ] = SID_FRAME_TO_TOP; - mpSlotArray[ 18 ] = SID_DRAWTBX_CONNECTORS; - mpSlotArray[ 19 ] = SID_TOOL_CONNECTOR; - mpSlotArray[ 20 ] = SID_DRAWTBX_ARROWS; - mpSlotArray[ 21 ] = SID_LINE_ARROW_END; - SetPool( &GetDoc()->GetPool() ); GetDoc()->CreateFirstPages(); |