xref: /aoo41x/main/sw/source/ui/envelp/labimp.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _LABIMP_HXX
28 #define _LABIMP_HXX
29 
30 
31 #include <sfx2/tabdlg.hxx>
32 #include <vcl/lstbox.hxx>
33 #include <vcl/fixed.hxx>
34 #include <svtools/svmedit.hxx>
35 #include <vcl/field.hxx>
36 #include <svtools/stdctrl.hxx>
37 #include <com/sun/star/frame/XController.hpp>
38 #include <com/sun/star/text/XTextCursor.hpp>
39 #include <com/sun/star/text/XWordCursor.hpp>
40 #include <com/sun/star/text/XParagraphCursor.hpp>
41 #include <com/sun/star/text/XPageCursor.hpp>
42 #include <com/sun/star/text/XSentenceCursor.hpp>
43 #include <com/sun/star/awt/XFileDialog.hpp>
44 #include <com/sun/star/awt/XTextComponent.hpp>
45 #include <com/sun/star/awt/XListBox.hpp>
46 #include <com/sun/star/awt/XProgressMonitor.hpp>
47 #include <com/sun/star/awt/TextAlign.hpp>
48 #include <com/sun/star/awt/XScrollBar.hpp>
49 #include <com/sun/star/awt/XVclContainerPeer.hpp>
50 #include <com/sun/star/awt/XTabControllerModel.hpp>
51 #include <com/sun/star/awt/XMessageBox.hpp>
52 #include <com/sun/star/awt/XTextEditField.hpp>
53 #include <com/sun/star/awt/Style.hpp>
54 #include <com/sun/star/awt/XTimeField.hpp>
55 #include <com/sun/star/awt/XVclWindowPeer.hpp>
56 #include <com/sun/star/awt/XControlModel.hpp>
57 #include <com/sun/star/awt/XSpinField.hpp>
58 #include <com/sun/star/awt/XUnoControlContainer.hpp>
59 #include <com/sun/star/awt/XTextLayoutConstrains.hpp>
60 #include <com/sun/star/awt/XNumericField.hpp>
61 #include <com/sun/star/awt/XButton.hpp>
62 #include <com/sun/star/awt/XTextArea.hpp>
63 #include <com/sun/star/awt/XImageButton.hpp>
64 #include <com/sun/star/awt/XFixedText.hpp>
65 #include <com/sun/star/awt/XControlContainer.hpp>
66 #include <com/sun/star/awt/XDialog.hpp>
67 #include <com/sun/star/awt/ScrollBarOrientation.hpp>
68 #include <com/sun/star/awt/XRadioButton.hpp>
69 #include <com/sun/star/awt/XCurrencyField.hpp>
70 #include <com/sun/star/awt/XPatternField.hpp>
71 #include <com/sun/star/awt/VclWindowPeerAttribute.hpp>
72 #include <com/sun/star/awt/XTabController.hpp>
73 #include <com/sun/star/awt/XVclContainer.hpp>
74 #include <com/sun/star/awt/XDateField.hpp>
75 #include <com/sun/star/awt/XComboBox.hpp>
76 #include <com/sun/star/awt/XControl.hpp>
77 #include <com/sun/star/awt/XCheckBox.hpp>
78 #include <com/sun/star/awt/MessageBoxCommand.hpp>
79 #include <com/sun/star/awt/XLayoutConstrains.hpp>
80 #include <com/sun/star/awt/XProgressBar.hpp>
81 #include <com/sun/star/container/XNameAccess.hpp>
82 #include <svtools/svtreebx.hxx>
83 #include <label.hxx>
84 #include <labimg.hxx>
85 
86 #define GETFLDVAL(rField)		  (rField).Denormalize((rField).GetValue(FUNIT_TWIP))
87 #define SETFLDVAL(rField, lValue) (rField).SetValue((rField).Normalize(lValue), FUNIT_TWIP)
88 
89 class SwNewDBMgr;
90 
91 class SwLabRec
92 {
93 public:
94 	SwLabRec() {}
95 
96 	void SetFromItem( const SwLabItem& rItem );
97 	void FillItem( SwLabItem& rItem ) const;
98 
99 	String 			aMake;
100 	String 			aType;
101 	long   			lHDist;
102 	long   			lVDist;
103 	long   			lWidth;
104 	long   			lHeight;
105 	long   			lLeft;
106 	long   			lUpper;
107 	sal_Int32 		nCols;
108 	sal_Int32 		nRows;
109 	sal_Bool   		bCont;
110 };
111 
112 /* --------------------------------------------------
113 
114  --------------------------------------------------*/
115 SV_DECL_PTRARR_DEL( SwLabRecs, SwLabRec*, 110, 10 )
116 
117 #endif
118 
119