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_UIBASE_INC_LABIMG_HXX
21 : #define INCLUDED_SW_SOURCE_UIBASE_INC_LABIMG_HXX
22 :
23 : #include <svl/poolitem.hxx>
24 : #include <unotools/configitem.hxx>
25 : #include "swdllapi.h"
26 :
27 : class SwLabCfgItem;
28 :
29 0 : class SW_DLLPUBLIC SwLabItem : public SfxPoolItem
30 : {
31 :
32 : public:
33 :
34 : SwLabItem();
35 : SwLabItem(const SwLabItem& rItem);
36 :
37 : SwLabItem& operator =(const SwLabItem& rItem);
38 :
39 : virtual bool operator ==(const SfxPoolItem& rItem) const SAL_OVERRIDE;
40 :
41 : virtual SfxPoolItem* Clone(SfxItemPool* = 0) const SAL_OVERRIDE;
42 :
43 : OUString aLstMake; // remember last selection
44 : OUString aLstType;
45 : OUString sDBName; // used database
46 :
47 : OUString aWriting; // label
48 : OUString aMake; // label mark
49 : OUString aType; // label type
50 : OUString aBin; // printer shaft
51 : sal_Int32 lHDist; // horizontal distance (user)
52 : sal_Int32 lVDist; // vertical distance (user)
53 : sal_Int32 lWidth; // width (user)
54 : sal_Int32 lHeight; // height (user)
55 : sal_Int32 lLeft; // left border (user)
56 : sal_Int32 lUpper; // upper border (user)
57 : sal_Int32 nCols; // number of columns (user)
58 : sal_Int32 nRows; // number of rows (user)
59 : sal_Int32 nCol; // column for single print
60 : sal_Int32 nRow; // row for single print
61 : sal_Int32 lPHeight; // paper height
62 : sal_Int32 lPWidth; // paper width
63 : bool bAddr;// address as label?
64 : bool bCont;// continuous paper?
65 : bool bPage;// whole page or single labels?
66 : bool bSynchron;// synchronise all labels
67 :
68 : //parts of the business card
69 : OUString aPrivFirstName;
70 : OUString aPrivName;
71 : OUString aPrivShortCut;
72 : OUString aPrivFirstName2;
73 : OUString aPrivName2;
74 : OUString aPrivShortCut2;
75 : OUString aPrivStreet;
76 : OUString aPrivZip;
77 : OUString aPrivCity;
78 : OUString aPrivCountry;
79 : OUString aPrivState;
80 : OUString aPrivTitle;
81 : OUString aPrivProfession;
82 : OUString aPrivPhone;
83 : OUString aPrivMobile;
84 : OUString aPrivFax;
85 : OUString aPrivWWW;
86 : OUString aPrivMail;
87 : OUString aCompCompany;
88 : OUString aCompCompanyExt;
89 : OUString aCompSlogan;
90 : OUString aCompStreet;
91 : OUString aCompZip;
92 : OUString aCompCity;
93 : OUString aCompCountry;
94 : OUString aCompState;
95 : OUString aCompPosition;
96 : OUString aCompPhone;
97 : OUString aCompMobile;
98 : OUString aCompFax;
99 : OUString aCompWWW;
100 : OUString aCompMail;
101 :
102 : OUString sGlossaryGroup;
103 : OUString sGlossaryBlockName;
104 : };
105 :
106 0 : class SwLabCfgItem : public utl::ConfigItem
107 : {
108 : private:
109 : SwLabItem aItem;
110 : bool bIsLabel;
111 :
112 : com::sun::star::uno::Sequence<OUString> GetPropertyNames();
113 :
114 : virtual void ImplCommit() SAL_OVERRIDE;
115 :
116 : public:
117 : SwLabCfgItem(bool bLabel);
118 :
119 0 : SwLabItem& GetItem() {return aItem;}
120 :
121 : virtual void Notify( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) SAL_OVERRIDE;
122 : };
123 :
124 : #endif
125 :
126 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|