1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #ifndef _SD_CUSTSDLG_HXX
22 #define _SD_CUSTSDLG_HXX
24 #include <vcl/button.hxx>
25 #include <vcl/lstbox.hxx>
26 #include <vcl/fixed.hxx>
27 #include <vcl/edit.hxx>
28 #include <svtools/treelistbox.hxx>
29 #include <vcl/dialog.hxx>
33 class SdCustomShowList
;
35 //------------------------------------------------------------------------
37 class SdCustomShowDlg
: public ModalDialog
40 ListBox
* m_pLbCustomShows
;
41 CheckBox
* m_pCbxUseCustomShow
;
42 PushButton
* m_pBtnNew
;
43 PushButton
* m_pBtnEdit
;
44 PushButton
* m_pBtnRemove
;
45 PushButton
* m_pBtnCopy
;
46 HelpButton
* m_pBtnHelp
;
47 PushButton
* m_pBtnStartShow
;
51 SdCustomShowList
* pCustomShowList
;
52 SdCustomShow
* pCustomShow
;
57 DECL_LINK( ClickButtonHdl
, void * );
58 DECL_LINK( StartShowHdl
, void* );
61 SdCustomShowDlg( Window
* pWindow
, SdDrawDocument
& rDrawDoc
);
64 sal_Bool
IsModified() const { return( bModified
); }
65 sal_Bool
IsCustomShow() const;
69 //------------------------------------------------------------------------
71 class SdDefineCustomShowDlg
: public ModalDialog
76 PushButton
* m_pBtnAdd
;
77 PushButton
* m_pBtnRemove
;
78 SvTreeListBox
* m_pLbCustomPages
;
80 CancelButton
* m_pBtnCancel
;
81 HelpButton
* m_pBtnHelp
;
84 SdCustomShow
*& rpCustomShow
;
89 void CheckCustomShow();
91 DECL_LINK( ClickButtonHdl
, void * );
92 DECL_LINK( OKHdl
, void * );
96 SdDefineCustomShowDlg( Window
* pWindow
,
97 SdDrawDocument
& rDrawDoc
, SdCustomShow
*& rpCS
);
98 ~SdDefineCustomShowDlg();
100 sal_Bool
IsModified() const { return( bModified
); }
103 #endif // _SD_CUSTSDLG_HXX
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */