diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-05-25 13:42:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-25 14:24:20 +0100 |
commit | 07f1a395098a7a3ac75eb5f05c35aa3982e33e67 (patch) | |
tree | de5521de6b2bc6c9a09ddfab61942a8e27214ebb /sd/source | |
parent | d9ac7def8ba320853e8865535a7a14f9af77521e (diff) |
(nearly) nothing uses GetUniqueId anymore, so remove it.
The odd one out is the usage in Formula, which attempts
to restore focus to a particular window identified by
an unique id. In this case restore focus by keeping a VclPtr
to the desired window.
Change-Id: I1dc335325c109d75745c6bba2e12662e6ae50638
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/dlg/animobjs.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/slideshow/showwin.cxx | 1 | ||||
-rw-r--r-- | sd/source/ui/view/drviews5.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/view/drviewsa.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/view/outlnvsh.cxx | 1 | ||||
-rw-r--r-- | sd/source/ui/view/sdwindow.cxx | 4 |
6 files changed, 0 insertions, 16 deletions
diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx index 8fd0c49d50c7..bd08b87dd9b8 100644 --- a/sd/source/ui/dlg/animobjs.cxx +++ b/sd/source/ui/dlg/animobjs.cxx @@ -163,9 +163,6 @@ AnimationWindow::AnimationWindow(SfxBindings* pInBindings, SfxChildWindow *pCW, m_pCtlDisplay->set_vexpand(true); m_pCtlDisplay->Show(); - //undo SfxDockingWindow HelpId clear hack - reverseUniqueHelpIdHack(*this); - // create new document with page pMyDoc = new SdDrawDocument(DOCUMENT_TYPE_IMPRESS, nullptr); SdPage* pPage = pMyDoc->AllocSdPage(false); diff --git a/sd/source/ui/slideshow/showwin.cxx b/sd/source/ui/slideshow/showwin.cxx index eeb01c664db5..b1a104f984f2 100644 --- a/sd/source/ui/slideshow/showwin.cxx +++ b/sd/source/ui/slideshow/showwin.cxx @@ -64,7 +64,6 @@ ShowWindow::ShowWindow( const ::rtl::Reference< SlideshowImpl >& xController, vc // set HelpId SetHelpId( HID_SD_WIN_PRESENTATION ); - SetUniqueId( HID_SD_WIN_PRESENTATION ); maPauseTimer.SetTimeoutHdl( LINK( this, ShowWindow, PauseTimeoutHdl ) ); maPauseTimer.SetTimeout( 1000 ); diff --git a/sd/source/ui/view/drviews5.cxx b/sd/source/ui/view/drviews5.cxx index 6c6396d24dd1..d8dc8a28466e 100644 --- a/sd/source/ui/view/drviews5.cxx +++ b/sd/source/ui/view/drviews5.cxx @@ -482,19 +482,16 @@ void DrawViewShell::ReadUserDataSequence ( const css::uno::Sequence < css::beans { SetHelpId( SID_NOTES_MODE ); GetActiveWindow()->SetHelpId( CMD_SID_NOTES_MODE ); - GetActiveWindow()->SetUniqueId( CMD_SID_NOTES_MODE ); } else if (mePageKind == PK_HANDOUT) { SetHelpId( SID_HANDOUT_MASTER_MODE ); GetActiveWindow()->SetHelpId( CMD_SID_HANDOUT_MASTER_MODE ); - GetActiveWindow()->SetUniqueId( CMD_SID_HANDOUT_MASTER_MODE ); } else { SetHelpId( SD_IF_SDDRAWVIEWSHELL ); GetActiveWindow()->SetHelpId( HID_SDDRAWVIEWSHELL ); - GetActiveWindow()->SetUniqueId( HID_SDDRAWVIEWSHELL ); } } diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx index 52cd788cf58a..c356a19e3689 100644 --- a/sd/source/ui/view/drviewsa.cxx +++ b/sd/source/ui/view/drviewsa.cxx @@ -281,7 +281,6 @@ void DrawViewShell::Construct(DrawDocShell* pDocSh, PageKind eInitialPageKind) { SetHelpId( SD_IF_SDGRAPHICVIEWSHELL ); GetActiveWindow()->SetHelpId( HID_SDGRAPHICVIEWSHELL ); - GetActiveWindow()->SetUniqueId( HID_SDGRAPHICVIEWSHELL ); } else { @@ -289,7 +288,6 @@ void DrawViewShell::Construct(DrawDocShell* pDocSh, PageKind eInitialPageKind) { SetHelpId( SID_NOTES_MODE ); GetActiveWindow()->SetHelpId( CMD_SID_NOTES_MODE ); - GetActiveWindow()->SetUniqueId( CMD_SID_NOTES_MODE ); // AutoLayouts have to be created GetDoc()->StopWorkStartupDelay(); @@ -298,7 +296,6 @@ void DrawViewShell::Construct(DrawDocShell* pDocSh, PageKind eInitialPageKind) { SetHelpId( SID_HANDOUT_MASTER_MODE ); GetActiveWindow()->SetHelpId( CMD_SID_HANDOUT_MASTER_MODE ); - GetActiveWindow()->SetUniqueId( CMD_SID_HANDOUT_MASTER_MODE ); // AutoLayouts have to be created GetDoc()->StopWorkStartupDelay(); @@ -307,7 +304,6 @@ void DrawViewShell::Construct(DrawDocShell* pDocSh, PageKind eInitialPageKind) { SetHelpId( SD_IF_SDDRAWVIEWSHELL ); GetActiveWindow()->SetHelpId( HID_SDDRAWVIEWSHELL ); - GetActiveWindow()->SetUniqueId( HID_SDDRAWVIEWSHELL ); } } diff --git a/sd/source/ui/view/outlnvsh.cxx b/sd/source/ui/view/outlnvsh.cxx index 86f71567221a..c875ce3de6d0 100644 --- a/sd/source/ui/view/outlnvsh.cxx +++ b/sd/source/ui/view/outlnvsh.cxx @@ -164,7 +164,6 @@ void OutlineViewShell::Construct(DrawDocShell* ) SetHelpId( SD_IF_SDOUTLINEVIEWSHELL ); GetActiveWindow()->SetHelpId( HID_SDOUTLINEVIEWSHELL ); - GetActiveWindow()->SetUniqueId( HID_SDOUTLINEVIEWSHELL ); } Reference<drawing::XDrawSubController> OutlineViewShell::CreateSubController() diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index c1e2594803f1..97c4a5d92c85 100644 --- a/sd/source/ui/view/sdwindow.cxx +++ b/sd/source/ui/view/sdwindow.cxx @@ -84,10 +84,6 @@ Window::Window(vcl::Window* pParent) ? sd::OUTPUT_DRAWMODE_CONTRAST : sd::OUTPUT_DRAWMODE_COLOR ); - // set Help ID - // SetHelpId(HID_SD_WIN_DOCUMENT); - SetUniqueId(HID_SD_WIN_DOCUMENT); - // #i78183# Added after discussed with AF EnableRTL(false); } |