fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / ui / inc / custsdlg.hxx
bloba97143bd574dd471e52b31c4f896945140fe6d58
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
31 class SdDrawDocument;
32 class SdCustomShow;
33 class SdCustomShowList;
35 //------------------------------------------------------------------------
37 class SdCustomShowDlg : public ModalDialog
39 private:
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;
48 OKButton* m_pBtnOK;
50 SdDrawDocument& rDoc;
51 SdCustomShowList* pCustomShowList;
52 SdCustomShow* pCustomShow;
53 sal_Bool bModified;
55 void CheckState();
57 DECL_LINK( ClickButtonHdl, void * );
58 DECL_LINK( StartShowHdl, void* );
60 public:
61 SdCustomShowDlg( Window* pWindow, SdDrawDocument& rDrawDoc );
62 ~SdCustomShowDlg();
64 sal_Bool IsModified() const { return( bModified ); }
65 sal_Bool IsCustomShow() const;
69 //------------------------------------------------------------------------
71 class SdDefineCustomShowDlg : public ModalDialog
73 private:
74 Edit* m_pEdtName;
75 ListBox* m_pLbPages;
76 PushButton* m_pBtnAdd;
77 PushButton* m_pBtnRemove;
78 SvTreeListBox* m_pLbCustomPages;
79 OKButton* m_pBtnOK;
80 CancelButton* m_pBtnCancel;
81 HelpButton* m_pBtnHelp;
83 SdDrawDocument& rDoc;
84 SdCustomShow*& rpCustomShow;
85 sal_Bool bModified;
86 String aOldName;
88 void CheckState();
89 void CheckCustomShow();
91 DECL_LINK( ClickButtonHdl, void * );
92 DECL_LINK( OKHdl, void * );
94 public:
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: */