diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-27 09:58:12 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-27 09:58:12 +0000 |
commit | 2c32696a04bc195c8ce61a0df6dcafb8c0c49fe0 (patch) | |
tree | 20f65f4b4d1a3a1c7c73f694210b3a07b6bea496 /sd/source/ui/dlg/custsdlg.cxx | |
parent | 534bd7f86535dc81073d673d9bc185bb34520a55 (diff) |
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'sd/source/ui/dlg/custsdlg.cxx')
-rw-r--r-- | sd/source/ui/dlg/custsdlg.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sd/source/ui/dlg/custsdlg.cxx b/sd/source/ui/dlg/custsdlg.cxx index a67d316c12c4..27294d503081 100644 --- a/sd/source/ui/dlg/custsdlg.cxx +++ b/sd/source/ui/dlg/custsdlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: custsdlg.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:48:31 $ + * last change: $Author: hr $ $Date: 2003-03-27 10:57:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -70,6 +70,8 @@ #include "drawdoc.hxx" #include "sdpage.hxx" #include "cusshow.hxx" +#include "app.hxx" +#include "optsitem.hxx" #ifndef _SV_MSGBOX_HXX //autogen #include <vcl/msgbox.hxx> @@ -148,12 +150,15 @@ SdCustomShowDlg::~SdCustomShowDlg() \************************************************************************/ void SdCustomShowDlg::CheckState() { + bool bStartWithActualPage = SD_MOD()->GetSdOptions( rDoc.GetDocumentType() )->IsStartWithActualPage(); USHORT nPos = aLbCustomShows.GetSelectEntryPos(); + BOOL bEnable = nPos != LISTBOX_ENTRY_NOTFOUND; aBtnEdit.Enable( bEnable ); aBtnRemove.Enable( bEnable ); aBtnCopy.Enable( bEnable ); - aCbxUseCustomShow.Enable( bEnable ); + aCbxUseCustomShow.Enable( bEnable && !bStartWithActualPage); + aBtnStartShow.Enable( !bStartWithActualPage ); if( bEnable ) pCustomShowList->Seek( nPos ); |