Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _ENVIMG_HXX
29 : : #define _ENVIMG_HXX
30 : :
31 : : #include <svl/poolitem.hxx>
32 : : #include <unotools/configitem.hxx>
33 : : #include "swdllapi.h"
34 : :
35 : : // MakeSender -----------------------------------------------------------------
36 : : SW_DLLPUBLIC String MakeSender();
37 : :
38 : : // enum -----------------------------------------------------------------------
39 : : enum SwEnvAlign
40 : : {
41 : : ENV_HOR_LEFT = 0,
42 : : ENV_HOR_CNTR,
43 : : ENV_HOR_RGHT,
44 : : ENV_VER_LEFT,
45 : : ENV_VER_CNTR,
46 : : ENV_VER_RGHT
47 : : };
48 : :
49 : : // class SwEnvItem ------------------------------------------------------------
50 [ # # ]: 0 : class SW_DLLPUBLIC SwEnvItem : public SfxPoolItem
51 : : {
52 : : public:
53 : :
54 : : rtl::OUString aAddrText; // text for reciever
55 : : sal_Bool bSend; // sender?
56 : : rtl::OUString aSendText; // text for sender
57 : : sal_Int32 lAddrFromLeft; // left gap for reciever (twips)
58 : : sal_Int32 lAddrFromTop; // upper gap for reciever (twips)
59 : : sal_Int32 lSendFromLeft; // left gap for sender (twips)
60 : : sal_Int32 lSendFromTop; // upper gap for sender (twips)
61 : : sal_Int32 lWidth; // envelope's width (twips)
62 : : sal_Int32 lHeight; // envelope's height (twips)
63 : : SwEnvAlign eAlign; // alignment at indent
64 : : sal_Bool bPrintFromAbove; // print from above?
65 : : sal_Int32 lShiftRight; // shift to right (twips)
66 : : sal_Int32 lShiftDown; // shift down (twips)
67 : :
68 : : SwEnvItem();
69 : : SwEnvItem(const SwEnvItem& rItem);
70 : :
71 : : TYPEINFO();
72 : :
73 : : SwEnvItem& operator =(const SwEnvItem& rItem);
74 : :
75 : : virtual int operator ==(const SfxPoolItem& rItem) const;
76 : :
77 : : virtual SfxPoolItem* Clone(SfxItemPool* = 0) const;
78 : : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
79 : : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
80 : : };
81 : :
82 : : // class SwEnvCfgItem -------------------------------------------------------
83 : : class SwEnvCfgItem : public utl::ConfigItem
84 : : {
85 : : SwEnvItem aEnvItem;
86 : :
87 : : com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
88 : : public:
89 : : SwEnvCfgItem();
90 : : ~SwEnvCfgItem();
91 : :
92 : 0 : SwEnvItem& GetItem() {return aEnvItem;}
93 : :
94 : : virtual void Commit();
95 : : virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
96 : : };
97 : :
98 : : #endif
99 : :
100 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|