LibreOffice Module sd (master) 1
copydlg.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 <sfx2/basedlgs.hxx>
23#include <tools/fract.hxx>
24
25class ColorListBox;
26
27namespace sd
28{
29class View;
30
35{
36public:
37 CopyDlg(weld::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView);
38 virtual ~CopyDlg() override;
39
40 void GetAttr(SfxItemSet& rOutAttrs);
41 void Reset();
42
43private:
47
48 std::unique_ptr<weld::SpinButton> m_xNumFldCopies;
49 std::unique_ptr<weld::Button> m_xBtnSetViewData;
50 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldMoveX;
51 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldMoveY;
52 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldAngle;
53 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldWidth;
54 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldHeight;
55 std::unique_ptr<weld::Label> m_xFtEndColor;
56 std::unique_ptr<weld::Button> m_xBtnSetDefault;
57 std::unique_ptr<ColorListBox> m_xLbStartColor;
58 std::unique_ptr<ColorListBox> m_xLbEndColor;
59
60 DECL_LINK(SelectColorHdl, ColorListBox&, void);
61 DECL_LINK(SetViewData, weld::Button&, void);
62 DECL_LINK(SetDefault, weld::Button&, void);
63};
64
65} // end of namespace sd
66
67/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
dialog to adjust screen
Definition: copydlg.hxx:35
void Reset()
reads provided item set or evaluate ini string
Definition: copydlg.cxx:90
DECL_LINK(SetViewData, weld::Button &, void)
void GetAttr(SfxItemSet &rOutAttrs)
fills provided item set with dialog box attributes
Definition: copydlg.cxx:181
DECL_LINK(SelectColorHdl, ColorListBox &, void)
std::unique_ptr< weld::SpinButton > m_xNumFldCopies
Definition: copydlg.hxx:48
std::unique_ptr< weld::Button > m_xBtnSetViewData
Definition: copydlg.hxx:49
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldWidth
Definition: copydlg.hxx:53
std::unique_ptr< ColorListBox > m_xLbStartColor
Definition: copydlg.hxx:57
std::unique_ptr< weld::Button > m_xBtnSetDefault
Definition: copydlg.hxx:56
::sd::View * mpView
Definition: copydlg.hxx:46
std::unique_ptr< ColorListBox > m_xLbEndColor
Definition: copydlg.hxx:58
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldMoveY
Definition: copydlg.hxx:51
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldHeight
Definition: copydlg.hxx:54
Fraction maUIScale
Definition: copydlg.hxx:45
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldAngle
Definition: copydlg.hxx:52
DECL_LINK(SetDefault, weld::Button &, void)
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldMoveX
Definition: copydlg.hxx:50
virtual ~CopyDlg() override
Definition: copydlg.cxx:72
const SfxItemSet & mrOutAttrs
Definition: copydlg.hxx:44
CopyDlg(weld::Window *pWindow, const SfxItemSet &rInAttrs, ::sd::View *pView)
Definition: copydlg.cxx:41
std::unique_ptr< weld::Label > m_xFtEndColor
Definition: copydlg.hxx:55