Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef _LABIMP_HXX
20 : #define _LABIMP_HXX
21 :
22 :
23 : #include <sfx2/tabdlg.hxx>
24 : #include <vcl/lstbox.hxx>
25 : #include <vcl/fixed.hxx>
26 : #include <svtools/svmedit.hxx>
27 : #include <vcl/field.hxx>
28 : #include <svtools/stdctrl.hxx>
29 : #include <com/sun/star/frame/XController.hpp>
30 : #include <com/sun/star/text/XTextCursor.hpp>
31 : #include <com/sun/star/text/XWordCursor.hpp>
32 : #include <com/sun/star/text/XParagraphCursor.hpp>
33 : #include <com/sun/star/text/XPageCursor.hpp>
34 : #include <com/sun/star/text/XSentenceCursor.hpp>
35 : #include <com/sun/star/awt/XFileDialog.hpp>
36 : #include <com/sun/star/awt/XTextComponent.hpp>
37 : #include <com/sun/star/awt/XListBox.hpp>
38 : #include <com/sun/star/awt/XProgressMonitor.hpp>
39 : #include <com/sun/star/awt/TextAlign.hpp>
40 : #include <com/sun/star/awt/XScrollBar.hpp>
41 : #include <com/sun/star/awt/XVclContainerPeer.hpp>
42 : #include <com/sun/star/awt/XTabControllerModel.hpp>
43 : #include <com/sun/star/awt/XMessageBox.hpp>
44 : #include <com/sun/star/awt/XTextEditField.hpp>
45 : #include <com/sun/star/awt/Style.hpp>
46 : #include <com/sun/star/awt/XTimeField.hpp>
47 : #include <com/sun/star/awt/XVclWindowPeer.hpp>
48 : #include <com/sun/star/awt/XControlModel.hpp>
49 : #include <com/sun/star/awt/XSpinField.hpp>
50 : #include <com/sun/star/awt/XUnoControlContainer.hpp>
51 : #include <com/sun/star/awt/XTextLayoutConstrains.hpp>
52 : #include <com/sun/star/awt/XNumericField.hpp>
53 : #include <com/sun/star/awt/XButton.hpp>
54 : #include <com/sun/star/awt/XTextArea.hpp>
55 : #include <com/sun/star/awt/XImageButton.hpp>
56 : #include <com/sun/star/awt/XFixedText.hpp>
57 : #include <com/sun/star/awt/XControlContainer.hpp>
58 : #include <com/sun/star/awt/XDialog.hpp>
59 : #include <com/sun/star/awt/ScrollBarOrientation.hpp>
60 : #include <com/sun/star/awt/XRadioButton.hpp>
61 : #include <com/sun/star/awt/XCurrencyField.hpp>
62 : #include <com/sun/star/awt/XPatternField.hpp>
63 : #include <com/sun/star/awt/VclWindowPeerAttribute.hpp>
64 : #include <com/sun/star/awt/XTabController.hpp>
65 : #include <com/sun/star/awt/XVclContainer.hpp>
66 : #include <com/sun/star/awt/XDateField.hpp>
67 : #include <com/sun/star/awt/XComboBox.hpp>
68 : #include <com/sun/star/awt/XControl.hpp>
69 : #include <com/sun/star/awt/XCheckBox.hpp>
70 : #include <com/sun/star/awt/MessageBoxCommand.hpp>
71 : #include <com/sun/star/awt/XLayoutConstrains.hpp>
72 : #include <com/sun/star/awt/XProgressBar.hpp>
73 : #include <com/sun/star/container/XNameAccess.hpp>
74 : #include <svtools/treelistbox.hxx>
75 : #include <label.hxx>
76 : #include <labimg.hxx>
77 : #include <vector>
78 :
79 : #define GETFLDVAL(rField) (rField).Denormalize((rField).GetValue(FUNIT_TWIP))
80 : #define SETFLDVAL(rField, lValue) (rField).SetValue((rField).Normalize(lValue), FUNIT_TWIP)
81 :
82 0 : class SwLabRec
83 : {
84 : public:
85 0 : SwLabRec(): lHDist(0), lVDist(0), lWidth(0), lHeight(0), lLeft(0), lUpper(0), lPWidth(0), lPHeight(0), nCols(0), nRows(0), bCont(false) {}
86 :
87 : void SetFromItem( const SwLabItem& rItem );
88 : void FillItem( SwLabItem& rItem ) const;
89 :
90 : String aMake;
91 : String aType;
92 : long lHDist;
93 : long lVDist;
94 : long lWidth;
95 : long lHeight;
96 : long lLeft;
97 : long lUpper;
98 : long lPWidth;
99 : long lPHeight;
100 : sal_Int32 nCols;
101 : sal_Int32 nRows;
102 : sal_Bool bCont;
103 : };
104 :
105 :
106 0 : class SwLabRecs : public std::vector<SwLabRec*> {
107 : public:
108 0 : ~SwLabRecs()
109 0 : {
110 0 : for(const_iterator it = begin(); it != end(); ++it)
111 0 : delete *it;
112 0 : }
113 : };
114 :
115 : #endif
116 :
117 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|