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 .
20 #ifndef INCLUDED_SD_SOURCE_UI_INC_CUSTSDLG_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_CUSTSDLG_HXX
23 #include <vcl/button.hxx>
24 #include <vcl/lstbox.hxx>
25 #include <vcl/fixed.hxx>
26 #include <vcl/edit.hxx>
27 #include <svtools/treelistbox.hxx>
28 #include <vcl/dialog.hxx>
32 class SdCustomShowList
;
34 class SdCustomShowDlg
: public ModalDialog
37 VclPtr
<ListBox
> m_pLbCustomShows
;
38 VclPtr
<CheckBox
> m_pCbxUseCustomShow
;
39 VclPtr
<PushButton
> m_pBtnNew
;
40 VclPtr
<PushButton
> m_pBtnEdit
;
41 VclPtr
<PushButton
> m_pBtnRemove
;
42 VclPtr
<PushButton
> m_pBtnCopy
;
43 VclPtr
<HelpButton
> m_pBtnHelp
;
44 VclPtr
<PushButton
> m_pBtnStartShow
;
45 VclPtr
<OKButton
> m_pBtnOK
;
48 SdCustomShowList
* pCustomShowList
;
49 SdCustomShow
* pCustomShow
;
54 DECL_LINK( ClickButtonHdl
, void * );
55 DECL_LINK( StartShowHdl
, void* );
58 SdCustomShowDlg( vcl::Window
* pWindow
, SdDrawDocument
& rDrawDoc
);
59 virtual ~SdCustomShowDlg();
60 virtual void dispose() SAL_OVERRIDE
;
61 bool IsModified() const { return bModified
; }
62 bool IsCustomShow() const;
65 class SdDefineCustomShowDlg
: public ModalDialog
68 VclPtr
<Edit
> m_pEdtName
;
69 VclPtr
<ListBox
> m_pLbPages
;
70 VclPtr
<PushButton
> m_pBtnAdd
;
71 VclPtr
<PushButton
> m_pBtnRemove
;
72 VclPtr
<SvTreeListBox
> m_pLbCustomPages
;
73 VclPtr
<OKButton
> m_pBtnOK
;
74 VclPtr
<CancelButton
> m_pBtnCancel
;
75 VclPtr
<HelpButton
> m_pBtnHelp
;
78 SdCustomShow
*& rpCustomShow
;
83 void CheckCustomShow();
85 DECL_LINK( ClickButtonHdl
, void * );
86 DECL_LINK( OKHdl
, void * );
90 SdDefineCustomShowDlg( vcl::Window
* pWindow
,
91 SdDrawDocument
& rDrawDoc
, SdCustomShow
*& rpCS
);
92 virtual ~SdDefineCustomShowDlg();
93 virtual void dispose() SAL_OVERRIDE
;
95 bool IsModified() const { return bModified
; }
98 #endif // INCLUDED_SD_SOURCE_UI_INC_CUSTSDLG_HXX
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */