xref: /aoo4110/main/sd/source/ui/inc/dlgsnap.hxx (revision b1cdbd2c)
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 
25 #ifndef _SD_DLGSNAP_HXX
26 #define _SD_DLGSNAP_HXX
27 
28 
29 #ifndef _IMAGEBTN_HXX //autogen
30 #include <vcl/button.hxx>
31 #endif
32 #ifndef _FIXED_HXX //autogen
33 #include <vcl/fixed.hxx>
34 #endif
35 #ifndef _FIELD_HXX //autogen
36 #include <vcl/field.hxx>
37 #endif
38 #ifndef _GROUP_HXX //autogen
39 #include <vcl/group.hxx>
40 #endif
41 #ifndef _BUTTON_HXX //autogen
42 #include <vcl/button.hxx>
43 #endif
44 #include <tools/fract.hxx>
45 #ifndef _DIALOG_HXX //autogen
46 #include <vcl/dialog.hxx>
47 #endif
48 #include "sdenumdef.hxx"
49 /************************************************************************/
50 
51 class SfxItemSet;
52 namespace sd {
53     class View;
54 }
55 
56 /*************************************************************************
57 |*
58 |* Dialog zum Einstellen von Fanglinien und -punkten
59 |*
60 \************************************************************************/
61 
62 class SdSnapLineDlg : public ModalDialog
63 {
64 private:
65 	FixedLine			aFlPos;
66 	FixedText			aFtX;
67 	MetricField 		aMtrFldX;
68 	FixedText			aFtY;
69 	MetricField 		aMtrFldY;
70 	FixedLine			aFlDir;
71 	ImageRadioButton	aRbPoint;
72 	ImageRadioButton 	aRbVert;
73 	ImageRadioButton 	aRbHorz;
74 	OKButton			aBtnOK;
75 	CancelButton		aBtnCancel;
76 	HelpButton			aBtnHelp;
77 	PushButton			aBtnDelete;
78 	long				nXValue;
79 	long				nYValue;
80 	FieldUnit			eUIUnit;
81 	Fraction			aUIScale;
82 
83 	DECL_LINK( ClickHdl, Button * );
84 
85 public:
86 	SdSnapLineDlg(Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView);
87 
88 	void GetAttr(SfxItemSet& rOutAttrs);
89 
90 	void HideRadioGroup();
HideDeleteBtn()91 	void HideDeleteBtn() { aBtnDelete.Hide(); }
92 	void SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY);
93 };
94 
95 
96 
97 #endif		// _SD_DLGSNAP_HXX
98