Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef _LABIMG_HXX
30 : : #define _LABIMG_HXX
31 : :
32 : : #include <svl/poolitem.hxx>
33 : : #include <unotools/configitem.hxx>
34 : : #include "swdllapi.h"
35 : :
36 : : // class SwLabItem ----------------------------------------------------------
37 : : class SwLabCfgItem;
38 : :
39 [ # # ]: 0 : class SW_DLLPUBLIC SwLabItem : public SfxPoolItem
40 : : {
41 : :
42 : : public:
43 : :
44 : : SwLabItem();
45 : : SwLabItem(const SwLabItem& rItem);
46 : :
47 : : SwLabItem& operator =(const SwLabItem& rItem);
48 : :
49 : : virtual int operator ==(const SfxPoolItem& rItem) const;
50 : :
51 : : virtual SfxPoolItem* Clone(SfxItemPool* = 0) const;
52 : :
53 : : rtl::OUString aLstMake; // remember last selection
54 : : rtl::OUString aLstType;
55 : : rtl::OUString sDBName; // used database
56 : :
57 : : rtl::OUString aWriting; // label
58 : : rtl::OUString aMake; // label mark
59 : : rtl::OUString aType; // label type
60 : : rtl::OUString aBin; // printer shaft
61 : : sal_Int32 lHDist; // horizontal distance (user)
62 : : sal_Int32 lVDist; // vertical distance (user)
63 : : sal_Int32 lWidth; // width (user)
64 : : sal_Int32 lHeight; // height (user)
65 : : sal_Int32 lLeft; // left border (user)
66 : : sal_Int32 lUpper; // upper border (user)
67 : : sal_Int32 nCols; // number of columns (user)
68 : : sal_Int32 nRows; // number of rows (user)
69 : : sal_Int32 nCol; // column for single print
70 : : sal_Int32 nRow; // row for single print
71 : : sal_Int32 lPHeight; // paper height
72 : : sal_Int32 lPWidth; // paper width
73 : : sal_Bool bAddr;// address as label?
74 : : sal_Bool bCont;// continuous paper?
75 : : sal_Bool bPage;// whole page or single labels?
76 : : sal_Bool bSynchron;// synchronise all labels
77 : :
78 : : //parts of the business card
79 : : rtl::OUString aPrivFirstName;
80 : : rtl::OUString aPrivName;
81 : : rtl::OUString aPrivShortCut;
82 : : rtl::OUString aPrivFirstName2;
83 : : rtl::OUString aPrivName2;
84 : : rtl::OUString aPrivShortCut2;
85 : : rtl::OUString aPrivStreet;
86 : : rtl::OUString aPrivZip;
87 : : rtl::OUString aPrivCity;
88 : : rtl::OUString aPrivCountry;
89 : : rtl::OUString aPrivState;
90 : : rtl::OUString aPrivTitle;
91 : : rtl::OUString aPrivProfession;
92 : : rtl::OUString aPrivPhone;
93 : : rtl::OUString aPrivMobile;
94 : : rtl::OUString aPrivFax;
95 : : rtl::OUString aPrivWWW;
96 : : rtl::OUString aPrivMail;
97 : : rtl::OUString aCompCompany;
98 : : rtl::OUString aCompCompanyExt;
99 : : rtl::OUString aCompSlogan;
100 : : rtl::OUString aCompStreet;
101 : : rtl::OUString aCompZip;
102 : : rtl::OUString aCompCity;
103 : : rtl::OUString aCompCountry;
104 : : rtl::OUString aCompState;
105 : : rtl::OUString aCompPosition;
106 : : rtl::OUString aCompPhone;
107 : : rtl::OUString aCompMobile;
108 : : rtl::OUString aCompFax;
109 : : rtl::OUString aCompWWW;
110 : : rtl::OUString aCompMail;
111 : :
112 : : rtl::OUString sGlossaryGroup;
113 : : rtl::OUString sGlossaryBlockName;
114 : : };
115 : :
116 : : // class SwLabCfgItem -------------------------------------------------------
117 [ # # ][ # # ]: 0 : class SwLabCfgItem : public utl::ConfigItem
118 : : {
119 : : SwLabItem aItem;
120 : : sal_Bool bIsLabel;
121 : :
122 : : com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
123 : : public:
124 : : SwLabCfgItem(sal_Bool bLabel);
125 : :
126 : 0 : SwLabItem& GetItem() {return aItem;}
127 : :
128 : : virtual void Commit();
129 : : virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
130 : : };
131 : :
132 : : #endif
133 : :
134 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|