xref: /aoo41x/main/sw/source/ui/inc/labimg.hxx (revision 1d2dbeb0)
1*1d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*1d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*1d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*1d2dbeb0SAndrew Rist  * distributed with this work for additional information
6*1d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*1d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*1d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
9*1d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*1d2dbeb0SAndrew Rist  *
11*1d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*1d2dbeb0SAndrew Rist  *
13*1d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*1d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
15*1d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*1d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
17*1d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
18*1d2dbeb0SAndrew Rist  * under the License.
19*1d2dbeb0SAndrew Rist  *
20*1d2dbeb0SAndrew Rist  *************************************************************/
21*1d2dbeb0SAndrew Rist 
22*1d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _LABIMG_HXX
25cdf0e10cSrcweir #define _LABIMG_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <svl/poolitem.hxx>
28cdf0e10cSrcweir #include <unotools/configitem.hxx>
29cdf0e10cSrcweir #include "swdllapi.h"
30cdf0e10cSrcweir 
31cdf0e10cSrcweir // class SwLabItem ----------------------------------------------------------
32cdf0e10cSrcweir 
33cdf0e10cSrcweir class SwLabCfgItem;
34cdf0e10cSrcweir class SW_DLLPUBLIC SwLabItem : public SfxPoolItem
35cdf0e10cSrcweir {
36cdf0e10cSrcweir 
37cdf0e10cSrcweir public:
38cdf0e10cSrcweir 
39cdf0e10cSrcweir 	SwLabItem();
40cdf0e10cSrcweir 	SwLabItem(const SwLabItem& rItem);
41cdf0e10cSrcweir 
42cdf0e10cSrcweir 	SwLabItem& operator =(const SwLabItem& rItem);
43cdf0e10cSrcweir 
44cdf0e10cSrcweir 	virtual int operator ==(const SfxPoolItem& rItem) const;
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 	virtual SfxPoolItem*	 Clone(SfxItemPool* = 0) const;
47cdf0e10cSrcweir 
48cdf0e10cSrcweir 	rtl::OUString 	aLstMake; //Letzte Auswahl merken.
49cdf0e10cSrcweir 	rtl::OUString 	aLstType;
50cdf0e10cSrcweir 	rtl::OUString 	sDBName;  // Verwendete Datenbank
51cdf0e10cSrcweir 
52cdf0e10cSrcweir 	rtl::OUString	aWriting; // Aufschrift
53cdf0e10cSrcweir 	rtl::OUString	aMake;	 // Etikettenmarke
54cdf0e10cSrcweir 	rtl::OUString	aType;	 // Etikettentyp
55cdf0e10cSrcweir 	rtl::OUString	aBin;	 // Druckerschacht
56cdf0e10cSrcweir 	sal_Int32  		lHDist;	 // Horizontaler Abstand   (Benutzer)
57cdf0e10cSrcweir 	sal_Int32   	lVDist;	 // Vertikaler Abstand	   (Benutzer)
58cdf0e10cSrcweir 	sal_Int32   	lWidth;	 // Breite				   (Benutzer)
59cdf0e10cSrcweir 	sal_Int32   	lHeight;  // Hoehe				   (Benutzer)
60cdf0e10cSrcweir 	sal_Int32  		lLeft;	 // Rand links			   (Benutzer)
61cdf0e10cSrcweir 	sal_Int32		lUpper;	 // Rand oben			   (Benutzer)
62cdf0e10cSrcweir 	sal_Int32 		nCols;	 // Anzahl Spalten		   (Benutzer)
63cdf0e10cSrcweir 	sal_Int32 		nRows;	 // Anzahl Zeilen		   (Benutzer)
64cdf0e10cSrcweir 	sal_Int32 		nCol;	 // Spalte fuer Einzeldruck
65cdf0e10cSrcweir 	sal_Int32 		nRow;	 // Zeile fuer Einzeldruck
66cdf0e10cSrcweir 	sal_Bool   		bAddr;// Adresse als Aufschrift?
67cdf0e10cSrcweir 	sal_Bool   		bCont;// Endlospapier?
68cdf0e10cSrcweir 	sal_Bool   		bPage;// Ganze Seite oder einzelnes Etikett?
69cdf0e10cSrcweir 	sal_Bool		bSynchron;// Alle Etiketten synchronisieren
70cdf0e10cSrcweir 
71cdf0e10cSrcweir 	//parts of the business card
72cdf0e10cSrcweir 	rtl::OUString 	aPrivFirstName;
73cdf0e10cSrcweir 	rtl::OUString 	aPrivName;
74cdf0e10cSrcweir 	rtl::OUString 	aPrivShortCut;
75cdf0e10cSrcweir 	rtl::OUString 	aPrivFirstName2;
76cdf0e10cSrcweir 	rtl::OUString 	aPrivName2;
77cdf0e10cSrcweir 	rtl::OUString 	aPrivShortCut2;
78cdf0e10cSrcweir 	rtl::OUString 	aPrivStreet;
79cdf0e10cSrcweir 	rtl::OUString 	aPrivZip;
80cdf0e10cSrcweir 	rtl::OUString 	aPrivCity;
81cdf0e10cSrcweir 	rtl::OUString 	aPrivCountry;
82cdf0e10cSrcweir 	rtl::OUString 	aPrivState;
83cdf0e10cSrcweir 	rtl::OUString 	aPrivTitle;
84cdf0e10cSrcweir 	rtl::OUString 	aPrivProfession;
85cdf0e10cSrcweir 	rtl::OUString 	aPrivPhone;
86cdf0e10cSrcweir 	rtl::OUString 	aPrivMobile;
87cdf0e10cSrcweir 	rtl::OUString 	aPrivFax;
88cdf0e10cSrcweir 	rtl::OUString 	aPrivWWW;
89cdf0e10cSrcweir 	rtl::OUString 	aPrivMail;
90cdf0e10cSrcweir 	rtl::OUString 	aCompCompany;
91cdf0e10cSrcweir 	rtl::OUString 	aCompCompanyExt;
92cdf0e10cSrcweir 	rtl::OUString 	aCompSlogan;
93cdf0e10cSrcweir 	rtl::OUString 	aCompStreet;
94cdf0e10cSrcweir 	rtl::OUString 	aCompZip;
95cdf0e10cSrcweir 	rtl::OUString 	aCompCity;
96cdf0e10cSrcweir 	rtl::OUString 	aCompCountry;
97cdf0e10cSrcweir 	rtl::OUString 	aCompState;
98cdf0e10cSrcweir 	rtl::OUString 	aCompPosition;
99cdf0e10cSrcweir 	rtl::OUString 	aCompPhone;
100cdf0e10cSrcweir 	rtl::OUString 	aCompMobile;
101cdf0e10cSrcweir 	rtl::OUString 	aCompFax;
102cdf0e10cSrcweir 	rtl::OUString 	aCompWWW;
103cdf0e10cSrcweir 	rtl::OUString 	aCompMail;
104cdf0e10cSrcweir 
105cdf0e10cSrcweir 	rtl::OUString 	sGlossaryGroup;
106cdf0e10cSrcweir 	rtl::OUString 	sGlossaryBlockName;
107cdf0e10cSrcweir };
108cdf0e10cSrcweir 
109cdf0e10cSrcweir // class SwLabCfgItem -------------------------------------------------------
110cdf0e10cSrcweir 
111cdf0e10cSrcweir class SwLabCfgItem : public utl::ConfigItem
112cdf0e10cSrcweir {
113cdf0e10cSrcweir 	SwLabItem 	aItem;
114cdf0e10cSrcweir 	sal_Bool 	bIsLabel;
115cdf0e10cSrcweir 
116cdf0e10cSrcweir 	com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
117cdf0e10cSrcweir public:
118cdf0e10cSrcweir 	SwLabCfgItem(sal_Bool bLabel);
119cdf0e10cSrcweir 
GetItem()120cdf0e10cSrcweir 	SwLabItem&				GetItem() {return aItem;}
121cdf0e10cSrcweir 
122cdf0e10cSrcweir 	virtual void Commit();
123cdf0e10cSrcweir 	virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
124cdf0e10cSrcweir };
125cdf0e10cSrcweir 
126cdf0e10cSrcweir #endif
127cdf0e10cSrcweir 
128