xref: /trunk/main/sw/source/ui/inc/labimg.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef _LABIMG_HXX
29*cdf0e10cSrcweir #define _LABIMG_HXX
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include <svl/poolitem.hxx>
32*cdf0e10cSrcweir #include <unotools/configitem.hxx>
33*cdf0e10cSrcweir #include "swdllapi.h"
34*cdf0e10cSrcweir 
35*cdf0e10cSrcweir // class SwLabItem ----------------------------------------------------------
36*cdf0e10cSrcweir 
37*cdf0e10cSrcweir class SwLabCfgItem;
38*cdf0e10cSrcweir class SW_DLLPUBLIC SwLabItem : public SfxPoolItem
39*cdf0e10cSrcweir {
40*cdf0e10cSrcweir 
41*cdf0e10cSrcweir public:
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir     SwLabItem();
44*cdf0e10cSrcweir     SwLabItem(const SwLabItem& rItem);
45*cdf0e10cSrcweir 
46*cdf0e10cSrcweir     SwLabItem& operator =(const SwLabItem& rItem);
47*cdf0e10cSrcweir 
48*cdf0e10cSrcweir     virtual int operator ==(const SfxPoolItem& rItem) const;
49*cdf0e10cSrcweir 
50*cdf0e10cSrcweir     virtual SfxPoolItem*     Clone(SfxItemPool* = 0) const;
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir     rtl::OUString   aLstMake; //Letzte Auswahl merken.
53*cdf0e10cSrcweir     rtl::OUString   aLstType;
54*cdf0e10cSrcweir     rtl::OUString   sDBName;  // Verwendete Datenbank
55*cdf0e10cSrcweir 
56*cdf0e10cSrcweir     rtl::OUString   aWriting; // Aufschrift
57*cdf0e10cSrcweir     rtl::OUString   aMake;   // Etikettenmarke
58*cdf0e10cSrcweir     rtl::OUString   aType;   // Etikettentyp
59*cdf0e10cSrcweir     rtl::OUString   aBin;    // Druckerschacht
60*cdf0e10cSrcweir     sal_Int32       lHDist;  // Horizontaler Abstand   (Benutzer)
61*cdf0e10cSrcweir     sal_Int32       lVDist;  // Vertikaler Abstand     (Benutzer)
62*cdf0e10cSrcweir     sal_Int32       lWidth;  // Breite                 (Benutzer)
63*cdf0e10cSrcweir     sal_Int32       lHeight;  // Hoehe                 (Benutzer)
64*cdf0e10cSrcweir     sal_Int32       lLeft;   // Rand links             (Benutzer)
65*cdf0e10cSrcweir     sal_Int32       lUpper;  // Rand oben              (Benutzer)
66*cdf0e10cSrcweir     sal_Int32       nCols;   // Anzahl Spalten         (Benutzer)
67*cdf0e10cSrcweir     sal_Int32       nRows;   // Anzahl Zeilen          (Benutzer)
68*cdf0e10cSrcweir     sal_Int32       nCol;    // Spalte fuer Einzeldruck
69*cdf0e10cSrcweir     sal_Int32       nRow;    // Zeile fuer Einzeldruck
70*cdf0e10cSrcweir     sal_Bool        bAddr;// Adresse als Aufschrift?
71*cdf0e10cSrcweir     sal_Bool        bCont;// Endlospapier?
72*cdf0e10cSrcweir     sal_Bool        bPage;// Ganze Seite oder einzelnes Etikett?
73*cdf0e10cSrcweir     sal_Bool        bSynchron;// Alle Etiketten synchronisieren
74*cdf0e10cSrcweir 
75*cdf0e10cSrcweir     //parts of the business card
76*cdf0e10cSrcweir     rtl::OUString   aPrivFirstName;
77*cdf0e10cSrcweir     rtl::OUString   aPrivName;
78*cdf0e10cSrcweir     rtl::OUString   aPrivShortCut;
79*cdf0e10cSrcweir     rtl::OUString   aPrivFirstName2;
80*cdf0e10cSrcweir     rtl::OUString   aPrivName2;
81*cdf0e10cSrcweir     rtl::OUString   aPrivShortCut2;
82*cdf0e10cSrcweir     rtl::OUString   aPrivStreet;
83*cdf0e10cSrcweir     rtl::OUString   aPrivZip;
84*cdf0e10cSrcweir     rtl::OUString   aPrivCity;
85*cdf0e10cSrcweir     rtl::OUString   aPrivCountry;
86*cdf0e10cSrcweir     rtl::OUString   aPrivState;
87*cdf0e10cSrcweir     rtl::OUString   aPrivTitle;
88*cdf0e10cSrcweir     rtl::OUString   aPrivProfession;
89*cdf0e10cSrcweir     rtl::OUString   aPrivPhone;
90*cdf0e10cSrcweir     rtl::OUString   aPrivMobile;
91*cdf0e10cSrcweir     rtl::OUString   aPrivFax;
92*cdf0e10cSrcweir     rtl::OUString   aPrivWWW;
93*cdf0e10cSrcweir     rtl::OUString   aPrivMail;
94*cdf0e10cSrcweir     rtl::OUString   aCompCompany;
95*cdf0e10cSrcweir     rtl::OUString   aCompCompanyExt;
96*cdf0e10cSrcweir     rtl::OUString   aCompSlogan;
97*cdf0e10cSrcweir     rtl::OUString   aCompStreet;
98*cdf0e10cSrcweir     rtl::OUString   aCompZip;
99*cdf0e10cSrcweir     rtl::OUString   aCompCity;
100*cdf0e10cSrcweir     rtl::OUString   aCompCountry;
101*cdf0e10cSrcweir     rtl::OUString   aCompState;
102*cdf0e10cSrcweir     rtl::OUString   aCompPosition;
103*cdf0e10cSrcweir     rtl::OUString   aCompPhone;
104*cdf0e10cSrcweir     rtl::OUString   aCompMobile;
105*cdf0e10cSrcweir     rtl::OUString   aCompFax;
106*cdf0e10cSrcweir     rtl::OUString   aCompWWW;
107*cdf0e10cSrcweir     rtl::OUString   aCompMail;
108*cdf0e10cSrcweir 
109*cdf0e10cSrcweir     rtl::OUString   sGlossaryGroup;
110*cdf0e10cSrcweir     rtl::OUString   sGlossaryBlockName;
111*cdf0e10cSrcweir };
112*cdf0e10cSrcweir 
113*cdf0e10cSrcweir // class SwLabCfgItem -------------------------------------------------------
114*cdf0e10cSrcweir 
115*cdf0e10cSrcweir class SwLabCfgItem : public utl::ConfigItem
116*cdf0e10cSrcweir {
117*cdf0e10cSrcweir     SwLabItem   aItem;
118*cdf0e10cSrcweir     sal_Bool    bIsLabel;
119*cdf0e10cSrcweir 
120*cdf0e10cSrcweir     com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
121*cdf0e10cSrcweir public:
122*cdf0e10cSrcweir     SwLabCfgItem(sal_Bool bLabel);
123*cdf0e10cSrcweir 
124*cdf0e10cSrcweir     SwLabItem&              GetItem() {return aItem;}
125*cdf0e10cSrcweir 
126*cdf0e10cSrcweir     virtual void Commit();
127*cdf0e10cSrcweir     virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
128*cdf0e10cSrcweir };
129*cdf0e10cSrcweir 
130*cdf0e10cSrcweir #endif
131*cdf0e10cSrcweir 
132