LibreOffice Module sd (master) 1
custsdlg.hxx
Go to the documentation of this file.
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#pragma once
21
22#include <vcl/weld.hxx>
23#include <vcl/weldutils.hxx>
24
25class SdDrawDocument;
26class SdCustomShow;
28
30{
31private:
34
35 std::unique_ptr<weld::TreeView> m_xLbCustomShows;
36 std::unique_ptr<weld::Button> m_xBtnNew;
37 std::unique_ptr<weld::Button> m_xBtnEdit;
38 std::unique_ptr<weld::Button> m_xBtnRemove;
39 std::unique_ptr<weld::Button> m_xBtnCopy;
40 std::unique_ptr<weld::Button> m_xBtnStartShow;
41
42 void CheckState();
43
44 DECL_LINK( ClickButtonHdl, weld::Button&, void );
45 DECL_LINK( SelectListBoxHdl, weld::TreeView&, void );
46 DECL_LINK( StartShowHdl, weld::Button&, void );
47 void SelectHdl(void const *);
48
49public:
50 SdCustomShowDlg(weld::Window* pWindow, SdDrawDocument& rDrawDoc);
51 virtual ~SdCustomShowDlg() override;
52 bool IsCustomShow() const;
53};
54
56{
57private:
59 std::unique_ptr<SdCustomShow>& rpCustomShow;
61 OUString aOldName;
62
63 std::unique_ptr<weld::Entry> m_xEdtName;
64 std::unique_ptr<weld::TreeView> m_xLbPages;
65 std::unique_ptr<weld::Button> m_xBtnAdd;
66 std::unique_ptr<weld::Button> m_xBtnRemove;
67 std::unique_ptr<weld::TreeView> m_xLbCustomPages;
68 std::unique_ptr<weld::ReorderingDropTarget> m_xDropTargetHelper;
69 std::unique_ptr<weld::Button> m_xBtnOK;
70
71 void CheckState();
72 void CheckCustomShow();
73
74 DECL_LINK( ClickButtonHdl, weld::Button&, void );
75 DECL_LINK( ClickButtonEditHdl, weld::Entry&, void );
76 DECL_LINK( ClickButtonHdl3, weld::TreeView&, void );
77 DECL_LINK( ClickButtonHdl4, weld::TreeView&, void );
78 DECL_LINK( OKHdl, weld::Button&, void );
79 void ClickButtonHdl2(void const *);
80
81public:
82
83 SdDefineCustomShowDlg(weld::Window* pWindow, SdDrawDocument& rDrawDoc, std::unique_ptr<SdCustomShow>& rpCS);
84 virtual ~SdDefineCustomShowDlg() override;
85};
86
87/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Button > m_xBtnEdit
Definition: custsdlg.hxx:37
bool IsCustomShow() const
Definition: custsdlg.cxx:232
std::unique_ptr< weld::Button > m_xBtnRemove
Definition: custsdlg.hxx:38
SdCustomShowDlg(weld::Window *pWindow, SdDrawDocument &rDrawDoc)
Definition: custsdlg.cxx:35
DECL_LINK(SelectListBoxHdl, weld::TreeView &, void)
SdDrawDocument & rDoc
Definition: custsdlg.hxx:32
std::unique_ptr< weld::Button > m_xBtnCopy
Definition: custsdlg.hxx:39
std::unique_ptr< weld::TreeView > m_xLbCustomShows
Definition: custsdlg.hxx:35
std::unique_ptr< weld::Button > m_xBtnStartShow
Definition: custsdlg.hxx:40
void CheckState()
Definition: custsdlg.cxx:81
void SelectHdl(void const *)
Definition: custsdlg.cxx:105
SdCustomShowList * pCustomShowList
Definition: custsdlg.hxx:33
DECL_LINK(StartShowHdl, weld::Button &, void)
DECL_LINK(ClickButtonHdl, weld::Button &, void)
virtual ~SdCustomShowDlg() override
Definition: custsdlg.cxx:77
std::unique_ptr< weld::Button > m_xBtnNew
Definition: custsdlg.hxx:36
DECL_LINK(OKHdl, weld::Button &, void)
SdDefineCustomShowDlg(weld::Window *pWindow, SdDrawDocument &rDrawDoc, std::unique_ptr< SdCustomShow > &rpCS)
Definition: custsdlg.cxx:241
std::unique_ptr< weld::TreeView > m_xLbPages
Definition: custsdlg.hxx:64
DECL_LINK(ClickButtonHdl, weld::Button &, void)
SdDrawDocument & rDoc
Definition: custsdlg.hxx:58
std::unique_ptr< weld::Button > m_xBtnOK
Definition: custsdlg.hxx:69
std::unique_ptr< SdCustomShow > & rpCustomShow
Definition: custsdlg.hxx:59
std::unique_ptr< weld::Entry > m_xEdtName
Definition: custsdlg.hxx:63
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: custsdlg.hxx:65
DECL_LINK(ClickButtonHdl3, weld::TreeView &, void)
DECL_LINK(ClickButtonEditHdl, weld::Entry &, void)
std::unique_ptr< weld::ReorderingDropTarget > m_xDropTargetHelper
Definition: custsdlg.hxx:68
void ClickButtonHdl2(void const *)
Definition: custsdlg.cxx:339
std::unique_ptr< weld::Button > m_xBtnRemove
Definition: custsdlg.hxx:66
void CheckCustomShow()
Checks the page pointer of the Show since entries can be moved and copied by TreeLB.
Definition: custsdlg.cxx:386
std::unique_ptr< weld::TreeView > m_xLbCustomPages
Definition: custsdlg.hxx:67
DECL_LINK(ClickButtonHdl4, weld::TreeView &, void)
virtual ~SdDefineCustomShowDlg() override
Definition: custsdlg.cxx:302