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>
25#include <swdllapi.h>
26
27class SwLabCfgItem;
28
30{
31
32public:
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 SwLabItem* 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
69 OUString m_aPrivName;
72 OUString m_aPrivName2;
74 OUString m_aPrivStreet;
75 OUString m_aPrivZip;
76 OUString m_aPrivCity;
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;
88 OUString m_aCompSlogan;
89 OUString m_aCompStreet;
90 OUString m_aCompZip;
91 OUString m_aCompCity;
93 OUString m_aCompState;
95 OUString m_aCompPhone;
96 OUString m_aCompMobile;
97 OUString m_aCompFax;
98 OUString m_aCompWWW;
99 OUString m_aCompMail;
100
103};
104
105class SwLabCfgItem final : public utl::ConfigItem
106{
107private:
110
111 css::uno::Sequence<OUString> GetPropertyNames() const;
112
113 virtual void ImplCommit() override;
114
115public:
116 SwLabCfgItem(bool bLabel);
117
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: */
virtual bool operator==(const SfxPoolItem &) const=0
SfxPoolItem & operator=(const SfxPoolItem &)=delete
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
SwLabItem m_aItem
Definition: labimg.hxx:108
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition: labimg.cxx:391
SwLabCfgItem(bool bLabel)
Definition: labimg.cxx:259
css::uno::Sequence< OUString > GetPropertyNames() const
Definition: labimg.cxx:185
bool m_bIsLabel
Definition: labimg.hxx:109
virtual void ImplCommit() override
Definition: labimg.cxx:393
SwLabItem & GetItem()
Definition: labimg.hxx:118
OUString m_aPrivName2
Definition: labimg.hxx:72
OUString m_aCompZip
Definition: labimg.hxx:90
OUString m_aCompMobile
Definition: labimg.hxx:96
bool m_bCont
Definition: labimg.hxx:63
sal_Int32 m_nRows
Definition: labimg.hxx:57
OUString m_aLstType
Definition: labimg.hxx:44
OUString m_aCompPosition
Definition: labimg.hxx:94
OUString m_aCompCompanyExt
Definition: labimg.hxx:87
OUString m_aLstMake
Definition: labimg.hxx:43
OUString m_aPrivWWW
Definition: labimg.hxx:84
OUString m_aPrivShortCut
Definition: labimg.hxx:70
OUString m_sDBName
Definition: labimg.hxx:45
OUString m_aPrivStreet
Definition: labimg.hxx:74
sal_Int32 m_lPWidth
Definition: labimg.hxx:61
OUString m_aCompStreet
Definition: labimg.hxx:89
sal_Int32 m_lUpper
Definition: labimg.hxx:55
OUString m_aPrivFax
Definition: labimg.hxx:83
OUString m_aPrivFirstName2
Definition: labimg.hxx:71
sal_Int32 m_lPHeight
Definition: labimg.hxx:60
bool m_bAddr
Definition: labimg.hxx:62
OUString m_aPrivShortCut2
Definition: labimg.hxx:73
OUString m_aWriting
Definition: labimg.hxx:47
bool m_bPage
Definition: labimg.hxx:64
OUString m_aPrivMail
Definition: labimg.hxx:85
OUString m_aPrivCity
Definition: labimg.hxx:76
OUString m_aPrivCountry
Definition: labimg.hxx:77
OUString m_aPrivProfession
Definition: labimg.hxx:80
sal_Int32 m_nCol
Definition: labimg.hxx:58
OUString m_aPrivMobile
Definition: labimg.hxx:82
OUString m_aCompPhone
Definition: labimg.hxx:95
OUString m_aCompCountry
Definition: labimg.hxx:92
sal_Int32 m_lWidth
Definition: labimg.hxx:52
OUString m_aCompMail
Definition: labimg.hxx:99
sal_Int32 m_lVDist
Definition: labimg.hxx:51
sal_Int32 m_nCols
Definition: labimg.hxx:56
sal_Int32 m_lLeft
Definition: labimg.hxx:54
OUString m_aPrivFirstName
Definition: labimg.hxx:68
OUString m_aCompCity
Definition: labimg.hxx:91
OUString m_aMake
Definition: labimg.hxx:48
OUString m_aPrivState
Definition: labimg.hxx:78
OUString m_aCompCompany
Definition: labimg.hxx:86
sal_Int32 m_lHeight
Definition: labimg.hxx:53
OUString m_sGlossaryBlockName
Definition: labimg.hxx:102
sal_Int32 m_nRow
Definition: labimg.hxx:59
OUString m_aCompFax
Definition: labimg.hxx:97
OUString m_aPrivTitle
Definition: labimg.hxx:79
OUString m_sGlossaryGroup
Definition: labimg.hxx:101
OUString m_aPrivPhone
Definition: labimg.hxx:81
OUString m_aCompSlogan
Definition: labimg.hxx:88
OUString m_aPrivName
Definition: labimg.hxx:69
OUString m_aCompWWW
Definition: labimg.hxx:98
OUString m_aPrivZip
Definition: labimg.hxx:75
sal_Int32 m_lHDist
Definition: labimg.hxx:50
OUString m_aCompState
Definition: labimg.hxx:93
bool m_bSynchron
Definition: labimg.hxx:65
SwLabItem(SwLabItem const &)=default
OUString m_aType
Definition: labimg.hxx:49
#define SW_DLLPUBLIC
Definition: swdllapi.h:28