xref: /aoo41x/main/sd/source/ui/inc/copydlg.hxx (revision c45d927a)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef SD_COPY_DLG_HXX
25 #define SD_COPY_DLG_HXX
26 
27 #include <vcl/group.hxx>
28 #ifndef _SV_BUTTON_HXX //autogen
29 #include <vcl/button.hxx>
30 #endif
31 #include <svx/dlgctrl.hxx>
32 #include <vcl/field.hxx>
33 #include <vcl/fixed.hxx>
34 #include <sfx2/basedlgs.hxx>
35 
36 class XColorTable;
37 
38 namespace sd {
39 
40 class View;
41 
42 /*************************************************************************
43 |*
44 |* Dialog zum Einstellen des Bildschirms
45 |*
46 \************************************************************************/
47 class CopyDlg
48     : public SfxModalDialog
49 {
50 public:
51     CopyDlg( ::Window* pWindow, const SfxItemSet& rInAttrs,
52         XColorTable* pColTab, ::sd::View* pView );
53     ~CopyDlg();
54 
55 	void	GetAttr( SfxItemSet& rOutAttrs );
56 	DECL_LINK( Reset, void* );
57 
58 private:
59 	FixedText			maFtCopies;
60 	NumericField		maNumFldCopies;
61 	ImageButton			maBtnSetViewData;
62 
63 	FixedLine			maGrpMovement;
64 	FixedText			maFtMoveX;
65 	MetricField 		maMtrFldMoveX;
66 	FixedText			maFtMoveY;
67 	MetricField 		maMtrFldMoveY;
68 	FixedText			maFtAngle;
69 	MetricField 		maMtrFldAngle;
70 	FixedLine			maGrpEnlargement;
71 
72 	FixedText			maFtWidth;
73 	MetricField 		maMtrFldWidth;
74 	FixedText			maFtHeight;
75 	MetricField 		maMtrFldHeight;
76 
77 	FixedLine			maGrpColor;
78 	FixedText			maFtStartColor;
79 	ColorLB 			maLbStartColor;
80 	FixedText			maFtEndColor;
81 	ColorLB 			maLbEndColor;
82 
83 	OKButton			maBtnOK;
84 	CancelButton		maBtnCancel;
85 	HelpButton			maBtnHelp;
86 	PushButton			maBtnSetDefault;
87 
88 	const SfxItemSet&	mrOutAttrs;
89 	XColorTable*		mpColorTab;
90 	Fraction			maUIScale;
91 	::sd::View*			mpView;
92 
93 	DECL_LINK( SelectColorHdl, void * );
94 	DECL_LINK( SetViewData, void * );
95 	DECL_LINK( SetDefault, void * );
96 };
97 
98 } // end of namespace sd
99 
100 #endif
101 
102