LibreOffice Module sw (master)  1
labimg.hxx
Go to the documentation of this file.
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 
30 {
31 
32 public:
33 
34  SwLabItem();
35 
36  SwLabItem& operator =(const SwLabItem& rItem);
37  SwLabItem(SwLabItem const &) = default; // SfxPoolItem copy function dichotomy
38 
39  virtual bool operator ==(const SfxPoolItem& rItem) const override;
40 
41  virtual SfxPoolItem* Clone(SfxItemPool* = nullptr) const override;
42 
43  OUString m_aLstMake; // remember last selection
44  OUString m_aLstType;
45  OUString m_sDBName; // used database
46 
47  OUString m_aWriting; // label
48  OUString m_aMake; // label mark
49  OUString m_aType; // label type
50  sal_Int32 m_lHDist; // horizontal distance (user)
51  sal_Int32 m_lVDist; // vertical distance (user)
52  sal_Int32 m_lWidth; // width (user)
53  sal_Int32 m_lHeight; // height (user)
54  sal_Int32 m_lLeft; // left border (user)
55  sal_Int32 m_lUpper; // upper border (user)
56  sal_Int32 m_nCols; // number of columns (user)
57  sal_Int32 m_nRows; // number of rows (user)
58  sal_Int32 m_nCol; // column for single print
59  sal_Int32 m_nRow; // row for single print
60  sal_Int32 m_lPHeight; // paper height
61  sal_Int32 m_lPWidth; // paper width
62  bool m_bAddr;// address as label?
63  bool m_bCont;// continuous paper?
64  bool m_bPage;// whole page or single labels?
65  bool m_bSynchron;// synchronise all labels
66 
67  //parts of the business card
68  OUString m_aPrivFirstName;
69  OUString m_aPrivName;
70  OUString m_aPrivShortCut;
72  OUString m_aPrivName2;
73  OUString m_aPrivShortCut2;
74  OUString m_aPrivStreet;
75  OUString m_aPrivZip;
76  OUString m_aPrivCity;
77  OUString m_aPrivCountry;
78  OUString m_aPrivState;
79  OUString m_aPrivTitle;
81  OUString m_aPrivPhone;
82  OUString m_aPrivMobile;
83  OUString m_aPrivFax;
84  OUString m_aPrivWWW;
85  OUString m_aPrivMail;
86  OUString m_aCompCompany;
88  OUString m_aCompSlogan;
89  OUString m_aCompStreet;
90  OUString m_aCompZip;
91  OUString m_aCompCity;
92  OUString m_aCompCountry;
93  OUString m_aCompState;
94  OUString m_aCompPosition;
95  OUString m_aCompPhone;
96  OUString m_aCompMobile;
97  OUString m_aCompFax;
98  OUString m_aCompWWW;
99  OUString m_aCompMail;
100 
103 };
104 
106 {
107 private:
109  bool const bIsLabel;
110 
111  css::uno::Sequence<OUString> GetPropertyNames();
112 
113  virtual void ImplCommit() override;
114 
115 public:
116  SwLabCfgItem(bool bLabel);
117 
118  SwLabItem& GetItem() {return aItem;}
119 
120  virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
121 };
122 
123 #endif
124 
125 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString m_aMake
Definition: labimg.hxx:48
OUString m_aCompStreet
Definition: labimg.hxx:89
OUString m_aPrivCity
Definition: labimg.hxx:76
sal_Int32 m_lHeight
Definition: labimg.hxx:53
OUString m_aCompSlogan
Definition: labimg.hxx:88
sal_Int32 m_lVDist
Definition: labimg.hxx:51
bool m_bAddr
Definition: labimg.hxx:62
virtual bool operator==(const SfxPoolItem &) const =0
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const =0
OUString m_aPrivTitle
Definition: labimg.hxx:79
sal_Int32 m_lLeft
Definition: labimg.hxx:54
SwLabItem aItem
Definition: labimg.hxx:108
SfxPoolItem & operator=(const SfxPoolItem &)=delete
OUString m_aCompCity
Definition: labimg.hxx:91
OUString m_aPrivPhone
Definition: labimg.hxx:81
OUString m_aCompMobile
Definition: labimg.hxx:96
OUString m_aPrivMobile
Definition: labimg.hxx:82
OUString m_aLstType
Definition: labimg.hxx:44
sal_Int32 m_lUpper
Definition: labimg.hxx:55
css::uno::Sequence< OUString > GetPropertyNames()
Definition: labimg.cxx:187
OUString m_aPrivMail
Definition: labimg.hxx:85
OUString m_aCompCompanyExt
Definition: labimg.hxx:87
OUString m_aPrivWWW
Definition: labimg.hxx:84
OUString m_sGlossaryBlockName
Definition: labimg.hxx:102
sal_Int32 m_lPWidth
Definition: labimg.hxx:61
OUString m_aPrivShortCut2
Definition: labimg.hxx:73
SwLabItem & GetItem()
Definition: labimg.hxx:118
OUString m_aPrivStreet
Definition: labimg.hxx:74
OUString m_aPrivProfession
Definition: labimg.hxx:80
bool m_bCont
Definition: labimg.hxx:63
OUString m_aCompZip
Definition: labimg.hxx:90
OUString m_aPrivState
Definition: labimg.hxx:78
OUString m_aPrivFax
Definition: labimg.hxx:83
OUString m_aPrivCountry
Definition: labimg.hxx:77
OUString m_aPrivZip
Definition: labimg.hxx:75
OUString m_aPrivFirstName2
Definition: labimg.hxx:71
sal_Int32 m_lHDist
Definition: labimg.hxx:50
sal_Int32 m_nRows
Definition: labimg.hxx:57
OUString m_aType
Definition: labimg.hxx:49
OUString m_aCompFax
Definition: labimg.hxx:97
sal_Int32 m_nCols
Definition: labimg.hxx:56
OUString m_aCompWWW
Definition: labimg.hxx:98
OUString m_aCompPhone
Definition: labimg.hxx:95
bool m_bPage
Definition: labimg.hxx:64
SwLabCfgItem(bool bLabel)
Definition: labimg.cxx:261
sal_Int32 m_nCol
Definition: labimg.hxx:58
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
OUString m_aPrivShortCut
Definition: labimg.hxx:70
OUString m_aCompMail
Definition: labimg.hxx:99
sal_Int32 m_lPHeight
Definition: labimg.hxx:60
OUString m_sGlossaryGroup
Definition: labimg.hxx:101
OUString m_aCompState
Definition: labimg.hxx:93
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: labimg.cxx:393
virtual void ImplCommit() override
Definition: labimg.cxx:395
sal_Int32 m_nRow
Definition: labimg.hxx:59
OUString m_aPrivName2
Definition: labimg.hxx:72
bool m_bSynchron
Definition: labimg.hxx:65
OUString m_aCompPosition
Definition: labimg.hxx:94
OUString m_aLstMake
Definition: labimg.hxx:43
OUString m_sDBName
Definition: labimg.hxx:45
OUString m_aCompCompany
Definition: labimg.hxx:86
bool const bIsLabel
Definition: labimg.hxx:109
sal_Int32 m_lWidth
Definition: labimg.hxx:52
OUString m_aPrivName
Definition: labimg.hxx:69
OUString m_aWriting
Definition: labimg.hxx:47
OUString m_aCompCountry
Definition: labimg.hxx:92
OUString m_aPrivFirstName
Definition: labimg.hxx:68