xref: /trunk/main/sw/source/ui/inc/labimg.hxx (revision 737f4475)
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 
24 #ifndef _LABIMG_HXX
25 #define _LABIMG_HXX
26 
27 #include <svl/poolitem.hxx>
28 #include <unotools/configitem.hxx>
29 #include "swdllapi.h"
30 
31 // class SwLabItem ----------------------------------------------------------
32 
33 class SwLabCfgItem;
34 class SW_DLLPUBLIC SwLabItem : public SfxPoolItem
35 {
36 
37 public:
38 
39 	SwLabItem();
40 	SwLabItem(const SwLabItem& rItem);
41 
42 	SwLabItem& operator =(const SwLabItem& rItem);
43 
44 	virtual int operator ==(const SfxPoolItem& rItem) const;
45 
46 	virtual SfxPoolItem*	 Clone(SfxItemPool* = 0) const;
47 
48 	rtl::OUString 	aLstMake; //Letzte Auswahl merken.
49 	rtl::OUString 	aLstType;
50 	rtl::OUString 	sDBName;  // Verwendete Datenbank
51 
52 	rtl::OUString	aWriting; // Aufschrift
53 	rtl::OUString	aMake;	 // Etikettenmarke
54 	rtl::OUString	aType;	 // Etikettentyp
55 	rtl::OUString	aBin;	 // Druckerschacht
56 	sal_Int32  		lHDist;	 // Horizontaler Abstand   (Benutzer)
57 	sal_Int32   	lVDist;	 // Vertikaler Abstand	   (Benutzer)
58 	sal_Int32   	lWidth;	 // Breite				   (Benutzer)
59 	sal_Int32   	lHeight;  // Hoehe				   (Benutzer)
60 	sal_Int32  		lLeft;	 // Rand links			   (Benutzer)
61 	sal_Int32		lUpper;	 // Rand oben			   (Benutzer)
62 	sal_Int32 		nCols;	 // Anzahl Spalten		   (Benutzer)
63 	sal_Int32 		nRows;	 // Anzahl Zeilen		   (Benutzer)
64 	sal_Int32 		nCol;	 // Spalte fuer Einzeldruck
65 	sal_Int32 		nRow;	 // Zeile fuer Einzeldruck
66 	sal_Int32   	lPaperWidth;  // Paper Width		   (user)
67 	sal_Int32   	lPaperHeight; // Paper Height		   (user)
68 	sal_Bool   		bAddr;// Adresse als Aufschrift?
69 	sal_Bool   		bCont;// Endlospapier?
70 	sal_Bool   		bPage;// Ganze Seite oder einzelnes Etikett?
71 	sal_Bool		bSynchron;// Alle Etiketten synchronisieren
72 
73 	//parts of the business card
74 	rtl::OUString 	aPrivFirstName;
75 	rtl::OUString 	aPrivName;
76 	rtl::OUString 	aPrivShortCut;
77 	rtl::OUString 	aPrivFirstName2;
78 	rtl::OUString 	aPrivName2;
79 	rtl::OUString 	aPrivShortCut2;
80 	rtl::OUString 	aPrivStreet;
81 	rtl::OUString 	aPrivZip;
82 	rtl::OUString 	aPrivCity;
83 	rtl::OUString 	aPrivCountry;
84 	rtl::OUString 	aPrivState;
85 	rtl::OUString 	aPrivTitle;
86 	rtl::OUString 	aPrivProfession;
87 	rtl::OUString 	aPrivPhone;
88 	rtl::OUString 	aPrivMobile;
89 	rtl::OUString 	aPrivFax;
90 	rtl::OUString 	aPrivWWW;
91 	rtl::OUString 	aPrivMail;
92 	rtl::OUString 	aCompCompany;
93 	rtl::OUString 	aCompCompanyExt;
94 	rtl::OUString 	aCompSlogan;
95 	rtl::OUString 	aCompStreet;
96 	rtl::OUString 	aCompZip;
97 	rtl::OUString 	aCompCity;
98 	rtl::OUString 	aCompCountry;
99 	rtl::OUString 	aCompState;
100 	rtl::OUString 	aCompPosition;
101 	rtl::OUString 	aCompPhone;
102 	rtl::OUString 	aCompMobile;
103 	rtl::OUString 	aCompFax;
104 	rtl::OUString 	aCompWWW;
105 	rtl::OUString 	aCompMail;
106 
107 	rtl::OUString 	sGlossaryGroup;
108 	rtl::OUString 	sGlossaryBlockName;
109 };
110 
111 // class SwLabCfgItem -------------------------------------------------------
112 
113 class SwLabCfgItem : public utl::ConfigItem
114 {
115 	SwLabItem 	aItem;
116 	sal_Bool 	bIsLabel;
117 
118 	com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
119 public:
120 	SwLabCfgItem(sal_Bool bLabel);
121 
GetItem()122 	SwLabItem&				GetItem() {return aItem;}
123 
124 	virtual void Commit();
125 	virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
126 };
127 
128 #endif
129 
130