xref: /aoo4110/main/sw/source/ui/envelp/labimp.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 #ifndef _LABIMP_HXX
24 #define _LABIMP_HXX
25 
26 
27 #include <sfx2/tabdlg.hxx>
28 #include <vcl/lstbox.hxx>
29 #include <vcl/fixed.hxx>
30 #include <svtools/svmedit.hxx>
31 #include <vcl/field.hxx>
32 #include <svtools/stdctrl.hxx>
33 #include <com/sun/star/frame/XController.hpp>
34 #include <com/sun/star/text/XTextCursor.hpp>
35 #include <com/sun/star/text/XWordCursor.hpp>
36 #include <com/sun/star/text/XParagraphCursor.hpp>
37 #include <com/sun/star/text/XPageCursor.hpp>
38 #include <com/sun/star/text/XSentenceCursor.hpp>
39 #include <com/sun/star/awt/XFileDialog.hpp>
40 #include <com/sun/star/awt/XTextComponent.hpp>
41 #include <com/sun/star/awt/XListBox.hpp>
42 #include <com/sun/star/awt/XProgressMonitor.hpp>
43 #include <com/sun/star/awt/TextAlign.hpp>
44 #include <com/sun/star/awt/XScrollBar.hpp>
45 #include <com/sun/star/awt/XVclContainerPeer.hpp>
46 #include <com/sun/star/awt/XTabControllerModel.hpp>
47 #include <com/sun/star/awt/XMessageBox.hpp>
48 #include <com/sun/star/awt/XTextEditField.hpp>
49 #include <com/sun/star/awt/Style.hpp>
50 #include <com/sun/star/awt/XTimeField.hpp>
51 #include <com/sun/star/awt/XVclWindowPeer.hpp>
52 #include <com/sun/star/awt/XControlModel.hpp>
53 #include <com/sun/star/awt/XSpinField.hpp>
54 #include <com/sun/star/awt/XUnoControlContainer.hpp>
55 #include <com/sun/star/awt/XTextLayoutConstrains.hpp>
56 #include <com/sun/star/awt/XNumericField.hpp>
57 #include <com/sun/star/awt/XButton.hpp>
58 #include <com/sun/star/awt/XTextArea.hpp>
59 #include <com/sun/star/awt/XImageButton.hpp>
60 #include <com/sun/star/awt/XFixedText.hpp>
61 #include <com/sun/star/awt/XControlContainer.hpp>
62 #include <com/sun/star/awt/XDialog.hpp>
63 #include <com/sun/star/awt/ScrollBarOrientation.hpp>
64 #include <com/sun/star/awt/XRadioButton.hpp>
65 #include <com/sun/star/awt/XCurrencyField.hpp>
66 #include <com/sun/star/awt/XPatternField.hpp>
67 #include <com/sun/star/awt/VclWindowPeerAttribute.hpp>
68 #include <com/sun/star/awt/XTabController.hpp>
69 #include <com/sun/star/awt/XVclContainer.hpp>
70 #include <com/sun/star/awt/XDateField.hpp>
71 #include <com/sun/star/awt/XComboBox.hpp>
72 #include <com/sun/star/awt/XControl.hpp>
73 #include <com/sun/star/awt/XCheckBox.hpp>
74 #include <com/sun/star/awt/XLayoutConstrains.hpp>
75 #include <com/sun/star/awt/XProgressBar.hpp>
76 #include <com/sun/star/container/XNameAccess.hpp>
77 #include <svtools/svtreebx.hxx>
78 #include <label.hxx>
79 #include <labimg.hxx>
80 
81 #define GETFLDVAL(rField)		  (rField).Denormalize((rField).GetValue(FUNIT_TWIP))
82 #define SETFLDVAL(rField, lValue) (rField).SetValue((rField).Normalize(lValue), FUNIT_TWIP)
83 
84 class SwNewDBMgr;
85 
86 class SwLabRec
87 {
88 public:
SwLabRec()89 	SwLabRec() {}
90 
91 	void SetFromItem( const SwLabItem& rItem );
92 	void FillItem( SwLabItem& rItem ) const;
93 
94 	String 			aMake;
95 	String 			aType;
96 	long   			lHDist;
97 	long   			lVDist;
98 	long   			lWidth;
99 	long   			lHeight;
100 	long   			lLeft;
101 	long   			lUpper;
102 	sal_Int32 		nCols;
103 	sal_Int32 		nRows;
104 	sal_Bool   		bCont;
105 };
106 
107 /* --------------------------------------------------
108 
109  --------------------------------------------------*/
110 SV_DECL_PTRARR_DEL( SwLabRecs, SwLabRec*, 110, 10 )
111 
112 #endif
113 
114