merge the formfield patch from ooo-build
[ooovba.git] / binfilter / inc / bf_svtools / useroptions.hxx
blobd05264c813133f7f56d3c2cc5ac0624e4a776e73
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: useroptions.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef INCLUDED_SVTOOLS_USEROPTIONS_HXX
31 #define INCLUDED_SVTOOLS_USEROPTIONS_HXX
33 #ifndef INCLUDED_SVTDLLAPI_H
34 #include "bf_svtools/svtdllapi.h"
35 #endif
37 #ifndef _UTL_CONFIGITEM_HXX_
38 #include <unotools/configitem.hxx>
39 #endif
40 #ifndef _STRING_HXX
41 #include <tools/string.hxx>
42 #endif
43 #ifndef _OSL_MUTEX_HXX_
44 #include <osl/mutex.hxx>
45 #endif
46 #ifndef _SFXBRDCST_HXX
47 #include <bf_svtools/brdcst.hxx>
48 #endif
49 #ifndef _SFXLSTNER_HXX
50 #include <bf_svtools/lstner.hxx>
51 #endif
52 #ifndef INCLUDED_SVTOOLS_OPTIONS_HXX
53 #include <bf_svtools/options.hxx>
54 #endif
56 namespace binfilter
59 // define ----------------------------------------------------------------
61 #define USER_OPT_CITY ((USHORT)0)
62 #define USER_OPT_COMPANY ((USHORT)1)
63 #define USER_OPT_COUNTRY ((USHORT)2)
64 #define USER_OPT_EMAIL ((USHORT)3)
65 #define USER_OPT_FAX ((USHORT)4)
66 #define USER_OPT_FIRSTNAME ((USHORT)5)
67 #define USER_OPT_LASTNAME ((USHORT)6)
68 #define USER_OPT_POSITION ((USHORT)7)
69 #define USER_OPT_STATE ((USHORT)8)
70 #define USER_OPT_STREET ((USHORT)9)
71 #define USER_OPT_TELEPHONEHOME ((USHORT)10)
72 #define USER_OPT_TELEPHONEWORK ((USHORT)11)
73 #define USER_OPT_TITLE ((USHORT)12)
74 #define USER_OPT_ID ((USHORT)13)
75 #define USER_OPT_ZIP ((USHORT)14)
76 #define USER_OPT_FATHERSNAME ((USHORT)15)
77 #define USER_OPT_APARTMENT ((USHORT)16)
79 // class SvtUserOptions --------------------------------------------------
81 class SvtUserOptions_Impl;
83 class SvtUserOptions : public Options, public SfxBroadcaster, public SfxListener
85 private:
86 SvtUserOptions_Impl* pImp;
88 public:
89 SvtUserOptions();
90 virtual ~SvtUserOptions();
92 static ::osl::Mutex& GetInitMutex();
94 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
96 // get the address token
97 const String& GetCompany() const;
98 const String& GetFirstName() const;
99 const String& GetLastName() const;
100 const String& GetID() const;
101 const String& GetStreet() const;
102 const String& GetCity() const;
103 const String& GetState() const;
104 const String& GetZip() const;
105 const String& GetCountry() const;
106 const String& GetPosition() const;
107 const String& GetTitle() const;
108 const String& GetTelephoneHome() const;
109 const String& GetTelephoneWork() const;
110 const String& GetFax() const;
111 const String& GetEmail() const;
113 const String& GetFullName() const;
118 #endif // #ifndef INCLUDED_SVTOOLS_USEROPTIONS_HXX