bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / inc / copydlg.hxx
blob1da44c927a6c1e3c86e1da7ec1dc9bb3ff825ee6
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_COPYDLG_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_COPYDLG_HXX
23 #include <vcl/group.hxx>
24 #include <vcl/button.hxx>
25 #include <svx/dlgctrl.hxx>
26 #include <vcl/field.hxx>
27 #include <vcl/fixed.hxx>
28 #include <sfx2/basedlgs.hxx>
29 #include <tools/fract.hxx>
31 namespace sd {
33 class View;
35 /**
36 * dialog to adjust screen
38 class CopyDlg
39 : public SfxModalDialog
41 public:
42 CopyDlg( vcl::Window* pWindow, const SfxItemSet& rInAttrs,
43 const XColorListRef &pColList, ::sd::View* pView );
44 virtual ~CopyDlg();
45 virtual void dispose() SAL_OVERRIDE;
47 void GetAttr( SfxItemSet& rOutAttrs );
48 void Reset();
50 private:
51 VclPtr<NumericField> m_pNumFldCopies;
52 VclPtr<Button> m_pBtnSetViewData;
54 VclPtr<MetricField> m_pMtrFldMoveX;
55 VclPtr<MetricField> m_pMtrFldMoveY;
56 VclPtr<MetricField> m_pMtrFldAngle;
58 VclPtr<MetricField> m_pMtrFldWidth;
59 VclPtr<MetricField> m_pMtrFldHeight;
61 VclPtr<ColorLB> m_pLbStartColor;
62 VclPtr<FixedText> m_pFtEndColor;
63 VclPtr<ColorLB> m_pLbEndColor;
65 VclPtr<PushButton> m_pBtnSetDefault;
67 const SfxItemSet& mrOutAttrs;
68 XColorListRef mpColorList;
69 Fraction maUIScale;
70 ::sd::View* mpView;
72 DECL_LINK( SelectColorHdl, void * );
73 DECL_LINK( SetViewData, void * );
74 DECL_LINK( SetDefault, void * );
77 } // end of namespace sd
79 #endif
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */