Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 : #ifndef INCLUDED_SD_SOURCE_UI_INC_CUSTSDLG_HXX
21 : #define INCLUDED_SD_SOURCE_UI_INC_CUSTSDLG_HXX
22 :
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>
29 :
30 : class SdDrawDocument;
31 : class SdCustomShow;
32 : class SdCustomShowList;
33 :
34 : class SdCustomShowDlg : public ModalDialog
35 : {
36 : private:
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;
46 :
47 : SdDrawDocument& rDoc;
48 : SdCustomShowList* pCustomShowList;
49 : SdCustomShow* pCustomShow;
50 : bool bModified;
51 :
52 : void CheckState();
53 :
54 : DECL_LINK( ClickButtonHdl, void * );
55 : DECL_LINK( StartShowHdl, void* );
56 :
57 : public:
58 : SdCustomShowDlg( vcl::Window* pWindow, SdDrawDocument& rDrawDoc );
59 : virtual ~SdCustomShowDlg();
60 : virtual void dispose() SAL_OVERRIDE;
61 0 : bool IsModified() const { return bModified; }
62 : bool IsCustomShow() const;
63 : };
64 :
65 : class SdDefineCustomShowDlg : public ModalDialog
66 : {
67 : private:
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;
76 :
77 : SdDrawDocument& rDoc;
78 : SdCustomShow*& rpCustomShow;
79 : bool bModified;
80 : OUString aOldName;
81 :
82 : void CheckState();
83 : void CheckCustomShow();
84 :
85 : DECL_LINK( ClickButtonHdl, void * );
86 : DECL_LINK( OKHdl, void * );
87 :
88 : public:
89 :
90 : SdDefineCustomShowDlg( vcl::Window* pWindow,
91 : SdDrawDocument& rDrawDoc, SdCustomShow*& rpCS );
92 : virtual ~SdDefineCustomShowDlg();
93 : virtual void dispose() SAL_OVERRIDE;
94 :
95 0 : bool IsModified() const { return bModified; }
96 : };
97 :
98 : #endif // INCLUDED_SD_SOURCE_UI_INC_CUSTSDLG_HXX
99 :
100 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|