1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_LABIMG_HXX
21 #define INCLUDED_SW_SOURCE_UIBASE_INC_LABIMG_HXX
23 #include <svl/poolitem.hxx>
24 #include <unotools/configitem.hxx>
29 class SW_DLLPUBLIC SwLabItem
: public SfxPoolItem
36 SwLabItem
& operator =(const SwLabItem
& rItem
);
37 SwLabItem(SwLabItem
const &) = default; // SfxPoolItem copy function dichotomy
39 virtual bool operator ==(const SfxPoolItem
& rItem
) const override
;
41 virtual SwLabItem
* Clone(SfxItemPool
* = nullptr) const override
;
43 OUString m_aLstMake
; // remember last selection
45 OUString m_sDBName
; // used database
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
67 //parts of the business card
68 OUString m_aPrivFirstName
;
70 OUString m_aPrivShortCut
;
71 OUString m_aPrivFirstName2
;
72 OUString m_aPrivName2
;
73 OUString m_aPrivShortCut2
;
74 OUString m_aPrivStreet
;
77 OUString m_aPrivCountry
;
78 OUString m_aPrivState
;
79 OUString m_aPrivTitle
;
80 OUString m_aPrivProfession
;
81 OUString m_aPrivPhone
;
82 OUString m_aPrivMobile
;
86 OUString m_aCompCompany
;
87 OUString m_aCompCompanyExt
;
88 OUString m_aCompSlogan
;
89 OUString m_aCompStreet
;
92 OUString m_aCompCountry
;
93 OUString m_aCompState
;
94 OUString m_aCompPosition
;
95 OUString m_aCompPhone
;
96 OUString m_aCompMobile
;
101 OUString m_sGlossaryGroup
;
102 OUString m_sGlossaryBlockName
;
105 class SwLabCfgItem
: public utl::ConfigItem
111 css::uno::Sequence
<OUString
> GetPropertyNames() const;
113 virtual void ImplCommit() override
;
116 SwLabCfgItem(bool bLabel
);
118 SwLabItem
& GetItem() {return aItem
;}
120 virtual void Notify( const css::uno::Sequence
< OUString
>& aPropertyNames
) override
;
125 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */