LibreOffice Module unotools (master)
1
include
unotools
useroptions.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
#ifndef INCLUDED_UNOTOOLS_USEROPTIONS_HXX
20
#define INCLUDED_UNOTOOLS_USEROPTIONS_HXX
21
22
#include <
unotools/unotoolsdllapi.h
>
23
#include <rtl/ustring.hxx>
24
#include <
unotools/options.hxx
>
25
#include <memory>
26
27
namespace
osl
{
class
Mutex; }
28
29
// define ----------------------------------------------------------------
30
enum class
UserOptToken
31
{
32
City
= 0,
33
Company
= 1,
34
Country
= 2,
35
Email
= 3,
36
Fax
= 4,
37
FirstName
= 5,
38
LastName
= 6,
39
Position
= 7,
40
State
= 8,
41
Street
= 9,
42
TelephoneHome
= 10,
43
TelephoneWork
= 11,
44
Title
= 12,
45
ID
= 13,
46
Zip
= 14,
47
FathersName
= 15,
48
Apartment
= 16,
49
SigningKey
= 17,
50
EncryptionKey
= 18,
51
EncryptToSelf
= 19,
52
LAST
=
EncryptToSelf
,
53
};
54
55
// class SvtUserOptions --------------------------------------------------
56
57
class
SAL_WARN_UNUSED
UNOTOOLS_DLLPUBLIC
SvtUserOptions
final :
public
utl::detail::Options
58
{
59
public
:
60
SvtUserOptions
();
61
virtual
~SvtUserOptions
()
override
;
62
63
// get the address token
64
OUString GetCompany ()
const
;
65
OUString GetFirstName ()
const
;
66
OUString GetLastName ()
const
;
67
OUString GetID ()
const
;
68
OUString GetStreet ()
const
;
69
OUString GetCity ()
const
;
70
OUString
GetState
()
const
;
71
OUString GetZip ()
const
;
72
OUString GetCountry ()
const
;
73
OUString GetPosition ()
const
;
74
OUString
GetTitle
()
const
;
75
OUString GetTelephoneHome ()
const
;
76
OUString GetTelephoneWork ()
const
;
77
OUString GetFax ()
const
;
78
OUString GetEmail ()
const
;
79
OUString GetSigningKey ()
const
;
80
OUString GetEncryptionKey ()
const
;
81
bool
GetEncryptToSelf ()
const
;
82
83
OUString GetFullName ()
const
;
84
85
bool
IsTokenReadonly (
UserOptToken
nToken
)
const
;
86
OUString GetToken (
UserOptToken
nToken
)
const
;
87
void
SetToken (
UserOptToken
nToken
, OUString
const
&
rNewToken
);
88
void
SetBoolValue (
UserOptToken
nToken
,
bool
bNewValue);
89
90
private
:
91
class
SAL_DLLPRIVATE
Impl
;
92
std::shared_ptr<Impl>
xImpl
;
93
static
std::weak_ptr<Impl>
xSharedImpl
;
94
private
:
95
class
SAL_DLLPRIVATE
ChangeListener
;
96
};
97
98
#endif
// INCLUDED_UNOTOOLS_USEROPTIONS_HXX
99
100
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvtUserOptions::ChangeListener
Definition:
useroptions.cxx:74
SvtUserOptions::Impl
Definition:
useroptions.cxx:88
SvtUserOptions
Definition:
useroptions.hxx:58
SvtUserOptions::xSharedImpl
static std::weak_ptr< Impl > xSharedImpl
Definition:
useroptions.hxx:93
SvtUserOptions::xImpl
std::shared_ptr< Impl > xImpl
Definition:
useroptions.hxx:92
utl::detail::Options
Definition:
options.hxx:96
SwFieldIds::LAST
@ LAST
SvxAuthorFormat::FirstName
@ FirstName
SvxAuthorFormat::LastName
@ LastName
rNewToken
std::u16string_view rNewToken
Definition:
fontdefs.hxx:45
Title
Title
osl
GetState
void GetState(const SdrMarkView *pSdrView, SfxItemSet &rSet)
ShapePropertyProviderId::Position
@ Position
utl::UCBContentHelper::GetTitle
UNOTOOLS_DLLPUBLIC bool GetTitle(OUString const &url, OUString *title)
Definition:
ucbhelper.cxx:175
State
State
RTFKeyword::ID
@ ID
options.hxx
PrinterCapType::Fax
@ Fax
nToken
DefTokenId nToken
SAL_WARN_UNUSED
#define SAL_WARN_UNUSED
unotoolsdllapi.h
UNOTOOLS_DLLPUBLIC
#define UNOTOOLS_DLLPUBLIC
Definition:
unotoolsdllapi.h:28
UserOptToken
UserOptToken
Definition:
useroptions.hxx:31
UserOptToken::Company
@ Company
UserOptToken::EncryptionKey
@ EncryptionKey
UserOptToken::FathersName
@ FathersName
UserOptToken::TelephoneHome
@ TelephoneHome
UserOptToken::City
@ City
UserOptToken::Country
@ Country
UserOptToken::TelephoneWork
@ TelephoneWork
UserOptToken::EncryptToSelf
@ EncryptToSelf
UserOptToken::Apartment
@ Apartment
UserOptToken::Zip
@ Zip
UserOptToken::Email
@ Email
UserOptToken::Street
@ Street
UserOptToken::SigningKey
@ SigningKey
Generated on Sun Jul 30 2023 04:29:23 for LibreOffice Module unotools (master) by
1.9.3