1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: labimp.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
34 #include <sfx2/tabdlg.hxx>
35 #include <vcl/lstbox.hxx>
36 #include <vcl/fixed.hxx>
37 #include <svtools/svmedit.hxx>
38 #include <vcl/field.hxx>
39 #include <svtools/stdctrl.hxx>
40 #include <com/sun/star/frame/XController.hpp>
41 #include <com/sun/star/text/XTextCursor.hpp>
42 #include <com/sun/star/text/XWordCursor.hpp>
43 #include <com/sun/star/text/XParagraphCursor.hpp>
44 #include <com/sun/star/text/XPageCursor.hpp>
45 #include <com/sun/star/text/XSentenceCursor.hpp>
46 #include <com/sun/star/awt/XFileDialog.hpp>
47 #include <com/sun/star/awt/XTextComponent.hpp>
48 #include <com/sun/star/awt/XListBox.hpp>
49 #include <com/sun/star/awt/XProgressMonitor.hpp>
50 #include <com/sun/star/awt/TextAlign.hpp>
51 #include <com/sun/star/awt/XScrollBar.hpp>
52 #include <com/sun/star/awt/XVclContainerPeer.hpp>
53 #include <com/sun/star/awt/XTabControllerModel.hpp>
54 #include <com/sun/star/awt/XMessageBox.hpp>
55 #include <com/sun/star/awt/XTextEditField.hpp>
56 #include <com/sun/star/awt/Style.hpp>
57 #include <com/sun/star/awt/XTimeField.hpp>
58 #include <com/sun/star/awt/XVclWindowPeer.hpp>
59 #include <com/sun/star/awt/XControlModel.hpp>
60 #include <com/sun/star/awt/XSpinField.hpp>
61 #include <com/sun/star/awt/XUnoControlContainer.hpp>
62 #include <com/sun/star/awt/XTextLayoutConstrains.hpp>
63 #include <com/sun/star/awt/XNumericField.hpp>
64 #include <com/sun/star/awt/XButton.hpp>
65 #include <com/sun/star/awt/XTextArea.hpp>
66 #include <com/sun/star/awt/XImageButton.hpp>
67 #include <com/sun/star/awt/XFixedText.hpp>
68 #include <com/sun/star/awt/XControlContainer.hpp>
69 #include <com/sun/star/awt/XDialog.hpp>
70 #include <com/sun/star/awt/ScrollBarOrientation.hpp>
71 #include <com/sun/star/awt/XRadioButton.hpp>
72 #include <com/sun/star/awt/XCurrencyField.hpp>
73 #include <com/sun/star/awt/XPatternField.hpp>
74 #include <com/sun/star/awt/VclWindowPeerAttribute.hpp>
75 #include <com/sun/star/awt/XTabController.hpp>
76 #include <com/sun/star/awt/XVclContainer.hpp>
77 #include <com/sun/star/awt/XDateField.hpp>
78 #include <com/sun/star/awt/XComboBox.hpp>
79 #include <com/sun/star/awt/XControl.hpp>
80 #include <com/sun/star/awt/XCheckBox.hpp>
81 #include <com/sun/star/awt/MessageBoxCommand.hpp>
82 #include <com/sun/star/awt/XLayoutConstrains.hpp>
83 #include <com/sun/star/awt/XProgressBar.hpp>
84 #include <com/sun/star/container/XNameAccess.hpp>
85 #include <svtools/svtreebx.hxx>
89 #define GETFLDVAL(rField) (rField).Denormalize((rField).GetValue(FUNIT_TWIP))
90 #define SETFLDVAL(rField, lValue) (rField).SetValue((rField).Normalize(lValue), FUNIT_TWIP)
99 void SetFromItem( const SwLabItem
& rItem
);
100 void FillItem( SwLabItem
& rItem
) const;
115 /* --------------------------------------------------
117 --------------------------------------------------*/
118 SV_DECL_PTRARR_DEL( SwLabRecs
, SwLabRec
*, 110, 10 )