diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-07-18 14:55:12 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-07-18 14:55:12 +0100 |
commit | ee4569efa8322497112e8e951a67b9adca4ac55e (patch) | |
tree | 8c92c052d20d07e09938a8a62181695ebb9bb99a /sd/source/ui/slideshow | |
parent | 8ac71b29eeca8b025d7548e1cee519277af7b90f (diff) |
fdo#67045 - fix several nasty screen selection issues with presenter console.
Also add the ability to select the external screen (whatever it is) to the
configuration dialog.
Change-Id: Id2d157eafff0031d7ae9fa2140d7022ae4a0cc6b
Diffstat (limited to 'sd/source/ui/slideshow')
-rw-r--r-- | sd/source/ui/slideshow/slideshow.cxx | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx index 0fa31942940d..a34e66008c49 100644 --- a/sd/source/ui/slideshow/slideshow.cxx +++ b/sd/source/ui/slideshow/slideshow.cxx @@ -550,14 +550,6 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const sal_Int32 nDisplay = 0; if( aValue >>= nDisplay ) { - // Convert value to true display id. - if (nDisplay == 0) - nDisplay = Application::GetDisplayExternalScreen(); - else if (nDisplay < 0) - nDisplay = -1; - else - --nDisplay; - bIllegalArgument = false; SdOptions* pOptions = SD_MOD()->GetSdOptions(DOCUMENT_TYPE_IMPRESS); @@ -642,14 +634,7 @@ Any SAL_CALL SlideShow::getPropertyValue( const OUString& PropertyName ) throw(U case ATTR_PRESENT_DISPLAY: { SdOptions* pOptions = SD_MOD()->GetSdOptions(DOCUMENT_TYPE_IMPRESS); - const sal_Int32 nDisplay (pOptions->GetDisplay()); - // Convert true display id to the previously used schema. - if (nDisplay == (sal_Int32)Application::GetDisplayExternalScreen()) - return Any(sal_Int32(0)); - else if (nDisplay < 0) - return Any(sal_Int32(-1)); - else - return Any(nDisplay+1); + return Any(pOptions->GetDisplay()); } default: @@ -1288,8 +1273,8 @@ void SlideShow::StartFullscreenPresentation( ) // --------------------------------------------------------- +/// convert configuration setting display concept to real screens sal_Int32 SlideShow::GetDisplay() - { sal_Int32 nDisplay = 0; @@ -1297,6 +1282,15 @@ sal_Int32 SlideShow::GetDisplay() if( pOptions ) nDisplay = pOptions->GetDisplay(); + if( nDisplay < 0 ) + nDisplay = -1; + else if( nDisplay == 0) + nDisplay = (sal_Int32)Application::GetDisplayExternalScreen(); + else + nDisplay--; + + SAL_INFO("sd", "Presenting on real screen " << nDisplay); + return nDisplay; } |