xref: /trunk/main/sw/source/ui/inc/labimg.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
11d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
31d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
41d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
51d2dbeb0SAndrew Rist  * distributed with this work for additional information
61d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
71d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
81d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
91d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
111d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
131d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
141d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
151d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
161d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
171d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
181d2dbeb0SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
201d2dbeb0SAndrew Rist  *************************************************************/
211d2dbeb0SAndrew Rist 
221d2dbeb0SAndrew 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
66*737f4475STsutomu Uchino     sal_Int32       lPaperWidth;  // Paper Width           (user)
67*737f4475STsutomu Uchino     sal_Int32       lPaperHeight; // Paper Height          (user)
68cdf0e10cSrcweir     sal_Bool        bAddr;// Adresse als Aufschrift?
69cdf0e10cSrcweir     sal_Bool        bCont;// Endlospapier?
70cdf0e10cSrcweir     sal_Bool        bPage;// Ganze Seite oder einzelnes Etikett?
71cdf0e10cSrcweir     sal_Bool        bSynchron;// Alle Etiketten synchronisieren
72cdf0e10cSrcweir 
73cdf0e10cSrcweir     //parts of the business card
74cdf0e10cSrcweir     rtl::OUString   aPrivFirstName;
75cdf0e10cSrcweir     rtl::OUString   aPrivName;
76cdf0e10cSrcweir     rtl::OUString   aPrivShortCut;
77cdf0e10cSrcweir     rtl::OUString   aPrivFirstName2;
78cdf0e10cSrcweir     rtl::OUString   aPrivName2;
79cdf0e10cSrcweir     rtl::OUString   aPrivShortCut2;
80cdf0e10cSrcweir     rtl::OUString   aPrivStreet;
81cdf0e10cSrcweir     rtl::OUString   aPrivZip;
82cdf0e10cSrcweir     rtl::OUString   aPrivCity;
83cdf0e10cSrcweir     rtl::OUString   aPrivCountry;
84cdf0e10cSrcweir     rtl::OUString   aPrivState;
85cdf0e10cSrcweir     rtl::OUString   aPrivTitle;
86cdf0e10cSrcweir     rtl::OUString   aPrivProfession;
87cdf0e10cSrcweir     rtl::OUString   aPrivPhone;
88cdf0e10cSrcweir     rtl::OUString   aPrivMobile;
89cdf0e10cSrcweir     rtl::OUString   aPrivFax;
90cdf0e10cSrcweir     rtl::OUString   aPrivWWW;
91cdf0e10cSrcweir     rtl::OUString   aPrivMail;
92cdf0e10cSrcweir     rtl::OUString   aCompCompany;
93cdf0e10cSrcweir     rtl::OUString   aCompCompanyExt;
94cdf0e10cSrcweir     rtl::OUString   aCompSlogan;
95cdf0e10cSrcweir     rtl::OUString   aCompStreet;
96cdf0e10cSrcweir     rtl::OUString   aCompZip;
97cdf0e10cSrcweir     rtl::OUString   aCompCity;
98cdf0e10cSrcweir     rtl::OUString   aCompCountry;
99cdf0e10cSrcweir     rtl::OUString   aCompState;
100cdf0e10cSrcweir     rtl::OUString   aCompPosition;
101cdf0e10cSrcweir     rtl::OUString   aCompPhone;
102cdf0e10cSrcweir     rtl::OUString   aCompMobile;
103cdf0e10cSrcweir     rtl::OUString   aCompFax;
104cdf0e10cSrcweir     rtl::OUString   aCompWWW;
105cdf0e10cSrcweir     rtl::OUString   aCompMail;
106cdf0e10cSrcweir 
107cdf0e10cSrcweir     rtl::OUString   sGlossaryGroup;
108cdf0e10cSrcweir     rtl::OUString   sGlossaryBlockName;
109cdf0e10cSrcweir };
110cdf0e10cSrcweir 
111cdf0e10cSrcweir // class SwLabCfgItem -------------------------------------------------------
112cdf0e10cSrcweir 
113cdf0e10cSrcweir class SwLabCfgItem : public utl::ConfigItem
114cdf0e10cSrcweir {
115cdf0e10cSrcweir     SwLabItem   aItem;
116cdf0e10cSrcweir     sal_Bool    bIsLabel;
117cdf0e10cSrcweir 
118cdf0e10cSrcweir     com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
119cdf0e10cSrcweir public:
120cdf0e10cSrcweir     SwLabCfgItem(sal_Bool bLabel);
121cdf0e10cSrcweir 
GetItem()122cdf0e10cSrcweir     SwLabItem&              GetItem() {return aItem;}
123cdf0e10cSrcweir 
124cdf0e10cSrcweir     virtual void Commit();
125cdf0e10cSrcweir     virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
126cdf0e10cSrcweir };
127cdf0e10cSrcweir 
128cdf0e10cSrcweir #endif
129