diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2016-11-19 19:44:10 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-11-21 08:48:15 +0000 |
commit | 75346b4144b47d16d28f4c944199e366e97363ad (patch) | |
tree | e19740d009c4fffa0897895e17f4d77a97f10b9b /sd | |
parent | 04f49d0375788239d0c636470d4c971e3bbc73f7 (diff) |
Kill the AutoPilotPresentations UNO command
The presentation wizard was removed in
bb8040595c9b6f0ccde39e6833f27a50abb891d8 but the
corresponding UNO command is still available.
Change-Id: I54e676672bb53d0283394a0ebffbe9f94f29d9c0
Reviewed-on: https://gerrit.libreoffice.org/30983
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/sdi/app.sdi | 6 | ||||
-rw-r--r-- | sd/source/ui/app/sdmod1.cxx | 25 |
2 files changed, 0 insertions, 31 deletions
diff --git a/sd/sdi/app.sdi b/sd/sdi/app.sdi index b2f6e16a4574..e616b6ec1cf9 100644 --- a/sd/sdi/app.sdi +++ b/sd/sdi/app.sdi @@ -32,12 +32,6 @@ interface StarImpress StateMethod = GetState; ] - SID_SD_AUTOPILOT // ole : ?, status : ? - [ - ExecMethod = Execute ; - StateMethod = GetState ; - ] - SID_NEWSD // ole : ?, status : ? [ ExecMethod = Execute ; diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx index 0fb7a27d8714..7dc6dad1bc5f 100644 --- a/sd/source/ui/app/sdmod1.cxx +++ b/sd/source/ui/app/sdmod1.cxx @@ -193,7 +193,6 @@ void SdModule::Execute(SfxRequest& rReq) } break; - case SID_SD_AUTOPILOT: case SID_NEWSD: { SfxFrame* pFrame = ExecuteNewDocument( rReq ); @@ -314,30 +313,6 @@ bool SdModule::OutlineToImpress(SfxRequest& rRequest) void SdModule::GetState(SfxItemSet& rItemSet) { - // disable Autopilot during presentation - if (rItemSet.GetItemState(SID_SD_AUTOPILOT) != SfxItemState::UNKNOWN) - { - if (!SvtModuleOptions().IsImpress()) - { - rItemSet.DisableItem(SID_SD_AUTOPILOT); - } - else - { - ::sd::DrawDocShell* pDocShell = dynamic_cast< ::sd::DrawDocShell *>( SfxObjectShell::Current() ); - if (pDocShell) - { - ::sd::ViewShell* pViewShell = pDocShell->GetViewShell(); - if (pViewShell) - { - if( sd::SlideShow::IsRunning( pViewShell->GetViewShellBase() ) ) - { - rItemSet.DisableItem(SID_SD_AUTOPILOT); - } - } - } - } - } - if( SfxItemState::DEFAULT == rItemSet.GetItemState( SID_ATTR_METRIC ) ) { ::sd::DrawDocShell* pDocSh = dynamic_cast< ::sd::DrawDocShell *>( SfxObjectShell::Current() ); |