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 .
23 #include <svl/poolitem.hxx>
24 #include <unotools/configitem.hxx>
27 // class SwLabItem ----------------------------------------------------------
30 class SW_DLLPUBLIC SwLabItem
: public SfxPoolItem
36 SwLabItem(const SwLabItem
& rItem
);
38 SwLabItem
& operator =(const SwLabItem
& rItem
);
40 virtual int operator ==(const SfxPoolItem
& rItem
) const;
42 virtual SfxPoolItem
* Clone(SfxItemPool
* = 0) const;
44 OUString aLstMake
; // remember last selection
46 OUString sDBName
; // used database
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
69 //parts of the business card
70 OUString aPrivFirstName
;
72 OUString aPrivShortCut
;
73 OUString aPrivFirstName2
;
75 OUString aPrivShortCut2
;
79 OUString aPrivCountry
;
82 OUString aPrivProfession
;
88 OUString aCompCompany
;
89 OUString aCompCompanyExt
;
94 OUString aCompCountry
;
96 OUString aCompPosition
;
103 OUString sGlossaryGroup
;
104 OUString sGlossaryBlockName
;
107 // class SwLabCfgItem -------------------------------------------------------
108 class SwLabCfgItem
: public utl::ConfigItem
113 com::sun::star::uno::Sequence
<OUString
> GetPropertyNames();
115 SwLabCfgItem(sal_Bool bLabel
);
117 SwLabItem
& GetItem() {return aItem
;}
119 virtual void Commit();
120 virtual void Notify( const ::com::sun::star::uno::Sequence
< OUString
>& aPropertyNames
);
125 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */