Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef INCLUDED_SW_SOURCE_UI_INC_LABIMG_HXX
21 : #define INCLUDED_SW_SOURCE_UI_INC_LABIMG_HXX
22 :
23 : #include <svl/poolitem.hxx>
24 : #include <unotools/configitem.hxx>
25 : #include "swdllapi.h"
26 :
27 : // class SwLabItem ----------------------------------------------------------
28 : class SwLabCfgItem;
29 :
30 0 : class SW_DLLPUBLIC SwLabItem : public SfxPoolItem
31 : {
32 :
33 : public:
34 :
35 : SwLabItem();
36 : SwLabItem(const SwLabItem& rItem);
37 :
38 : SwLabItem& operator =(const SwLabItem& rItem);
39 :
40 : virtual bool operator ==(const SfxPoolItem& rItem) const SAL_OVERRIDE;
41 :
42 : virtual SfxPoolItem* Clone(SfxItemPool* = 0) const SAL_OVERRIDE;
43 :
44 : OUString aLstMake; // remember last selection
45 : OUString aLstType;
46 : OUString sDBName; // used database
47 :
48 : OUString aWriting; // label
49 : OUString aMake; // label mark
50 : OUString aType; // label type
51 : OUString aBin; // printer shaft
52 : sal_Int32 lHDist; // horizontal distance (user)
53 : sal_Int32 lVDist; // vertical distance (user)
54 : sal_Int32 lWidth; // width (user)
55 : sal_Int32 lHeight; // height (user)
56 : sal_Int32 lLeft; // left border (user)
57 : sal_Int32 lUpper; // upper border (user)
58 : sal_Int32 nCols; // number of columns (user)
59 : sal_Int32 nRows; // number of rows (user)
60 : sal_Int32 nCol; // column for single print
61 : sal_Int32 nRow; // row for single print
62 : sal_Int32 lPHeight; // paper height
63 : sal_Int32 lPWidth; // paper width
64 : sal_Bool bAddr;// address as label?
65 : sal_Bool bCont;// continuous paper?
66 : sal_Bool bPage;// whole page or single labels?
67 : sal_Bool bSynchron;// synchronise all labels
68 :
69 : //parts of the business card
70 : OUString aPrivFirstName;
71 : OUString aPrivName;
72 : OUString aPrivShortCut;
73 : OUString aPrivFirstName2;
74 : OUString aPrivName2;
75 : OUString aPrivShortCut2;
76 : OUString aPrivStreet;
77 : OUString aPrivZip;
78 : OUString aPrivCity;
79 : OUString aPrivCountry;
80 : OUString aPrivState;
81 : OUString aPrivTitle;
82 : OUString aPrivProfession;
83 : OUString aPrivPhone;
84 : OUString aPrivMobile;
85 : OUString aPrivFax;
86 : OUString aPrivWWW;
87 : OUString aPrivMail;
88 : OUString aCompCompany;
89 : OUString aCompCompanyExt;
90 : OUString aCompSlogan;
91 : OUString aCompStreet;
92 : OUString aCompZip;
93 : OUString aCompCity;
94 : OUString aCompCountry;
95 : OUString aCompState;
96 : OUString aCompPosition;
97 : OUString aCompPhone;
98 : OUString aCompMobile;
99 : OUString aCompFax;
100 : OUString aCompWWW;
101 : OUString aCompMail;
102 :
103 : OUString sGlossaryGroup;
104 : OUString sGlossaryBlockName;
105 : };
106 :
107 : // class SwLabCfgItem -------------------------------------------------------
108 0 : class SwLabCfgItem : public utl::ConfigItem
109 : {
110 : SwLabItem aItem;
111 : sal_Bool bIsLabel;
112 :
113 : com::sun::star::uno::Sequence<OUString> GetPropertyNames();
114 : public:
115 : SwLabCfgItem(sal_Bool bLabel);
116 :
117 0 : SwLabItem& GetItem() {return aItem;}
118 :
119 : virtual void Commit() SAL_OVERRIDE;
120 : virtual void Notify( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) SAL_OVERRIDE;
121 : };
122 :
123 : #endif
124 :
125 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|