bump product version to 6.3.0.0.beta1
[LibreOffice.git] / sd / source / ui / inc / custsdlg.hxx
blobb114a48758e15fd579d36c699c38a73ab22cdfb7
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 .
20 #ifndef INCLUDED_SD_SOURCE_UI_INC_CUSTSDLG_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_CUSTSDLG_HXX
23 #include <vcl/weld.hxx>
25 class SdDrawDocument;
26 class SdCustomShow;
27 class SdCustomShowList;
29 class SdCustomShowDlg : public weld::GenericDialogController
31 private:
32 SdDrawDocument& rDoc;
33 SdCustomShowList* pCustomShowList;
34 bool bModified;
36 std::unique_ptr<weld::TreeView> m_xLbCustomShows;
37 std::unique_ptr<weld::CheckButton> m_xCbxUseCustomShow;
38 std::unique_ptr<weld::Button> m_xBtnNew;
39 std::unique_ptr<weld::Button> m_xBtnEdit;
40 std::unique_ptr<weld::Button> m_xBtnRemove;
41 std::unique_ptr<weld::Button> m_xBtnCopy;
42 std::unique_ptr<weld::Button> m_xBtnHelp;
43 std::unique_ptr<weld::Button> m_xBtnStartShow;
44 std::unique_ptr<weld::Button> m_xBtnOK;
46 void CheckState();
48 DECL_LINK( ClickButtonHdl, weld::Button&, void );
49 DECL_LINK( SelectListBoxHdl, weld::TreeView&, void );
50 DECL_LINK( StartShowHdl, weld::Button&, void );
51 void SelectHdl(void const *);
53 public:
54 SdCustomShowDlg(weld::Window* pWindow, SdDrawDocument& rDrawDoc);
55 virtual ~SdCustomShowDlg() override;
56 bool IsModified() const { return bModified; }
57 bool IsCustomShow() const;
60 class SdDefineCustomShowDlg : public weld::GenericDialogController
62 private:
63 SdDrawDocument& rDoc;
64 std::unique_ptr<SdCustomShow>& rpCustomShow;
65 bool bModified;
66 OUString aOldName;
68 std::unique_ptr<weld::Entry> m_xEdtName;
69 std::unique_ptr<weld::TreeView> m_xLbPages;
70 std::unique_ptr<weld::Button> m_xBtnAdd;
71 std::unique_ptr<weld::Button> m_xBtnRemove;
72 std::unique_ptr<weld::TreeView> m_xLbCustomPages;
73 std::unique_ptr<weld::Button> m_xBtnOK;
74 std::unique_ptr<weld::Button> m_xBtnCancel;
75 std::unique_ptr<weld::Button> m_xBtnHelp;
77 void CheckState();
78 void CheckCustomShow();
80 DECL_LINK( ClickButtonHdl, weld::Button&, void );
81 DECL_LINK( ClickButtonEditHdl, weld::Entry&, void );
82 DECL_LINK( ClickButtonHdl3, weld::TreeView&, void );
83 DECL_LINK( ClickButtonHdl4, weld::TreeView&, void );
84 DECL_LINK( OKHdl, weld::Button&, void );
85 void ClickButtonHdl2(void const *);
87 public:
89 SdDefineCustomShowDlg(weld::Window* pWindow, SdDrawDocument& rDrawDoc, std::unique_ptr<SdCustomShow>& rpCS);
90 virtual ~SdDefineCustomShowDlg() override;
92 bool IsModified() const { return bModified; }
95 #endif // INCLUDED_SD_SOURCE_UI_INC_CUSTSDLG_HXX
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */