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