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