1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: labimg.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
34 #include <svtools/poolitem.hxx>
35 #include <unotools/configitem.hxx>
38 // class SwLabItem ----------------------------------------------------------
41 class SW_DLLPUBLIC SwLabItem
: public SfxPoolItem
47 SwLabItem(const SwLabItem
& rItem
);
49 SwLabItem
& operator =(const SwLabItem
& rItem
);
51 virtual int operator ==(const SfxPoolItem
& rItem
) const;
53 virtual SfxPoolItem
* Clone(SfxItemPool
* = 0) const;
55 rtl::OUString aLstMake
; //Letzte Auswahl merken.
56 rtl::OUString aLstType
;
57 rtl::OUString sDBName
; // Verwendete Datenbank
59 rtl::OUString aWriting
; // Aufschrift
60 rtl::OUString aMake
; // Etikettenmarke
61 rtl::OUString aType
; // Etikettentyp
62 rtl::OUString aBin
; // Druckerschacht
63 sal_Int32 lHDist
; // Horizontaler Abstand (Benutzer)
64 sal_Int32 lVDist
; // Vertikaler Abstand (Benutzer)
65 sal_Int32 lWidth
; // Breite (Benutzer)
66 sal_Int32 lHeight
; // Hoehe (Benutzer)
67 sal_Int32 lLeft
; // Rand links (Benutzer)
68 sal_Int32 lUpper
; // Rand oben (Benutzer)
69 sal_Int32 nCols
; // Anzahl Spalten (Benutzer)
70 sal_Int32 nRows
; // Anzahl Zeilen (Benutzer)
71 sal_Int32 nCol
; // Spalte fuer Einzeldruck
72 sal_Int32 nRow
; // Zeile fuer Einzeldruck
73 sal_Bool bAddr
;// Adresse als Aufschrift?
74 sal_Bool bCont
;// Endlospapier?
75 sal_Bool bPage
;// Ganze Seite oder einzelnes Etikett?
76 sal_Bool bSynchron
;// Alle Etiketten synchronisieren
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
;
112 rtl::OUString sGlossaryGroup
;
113 rtl::OUString sGlossaryBlockName
;
116 // class SwLabCfgItem -------------------------------------------------------
118 class SwLabCfgItem
: public utl::ConfigItem
123 com::sun::star::uno::Sequence
<rtl::OUString
> GetPropertyNames();
125 SwLabCfgItem(sal_Bool bLabel
);
127 SwLabItem
& GetItem() {return aItem
;}
129 virtual void Commit();