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/.
10 #ifndef INCLUDED_CUI_SOURCE_OPTIONS_PERSONALIZATION_HXX
11 #define INCLUDED_CUI_SOURCE_OPTIONS_PERSONALIZATION_HXX
13 #include <sfx2/tabdlg.hxx>
17 class SvxPersonalizationTabPage
: public SfxTabPage
19 using SfxTabPage::DeactivatePage
;
22 RadioButton
*m_pNoPersona
; ///< Just the default look, without any bitmap
23 RadioButton
*m_pDefaultPersona
; ///< Use the built-in bitmap
24 RadioButton
*m_pOwnPersona
; ///< Use the user-defined bitmap
25 PushButton
*m_pSelectPersona
; ///< Let the user select in the 'own' case
26 OUString m_aPersonaSettings
; ///< Header and footer images + color to be set in the settings.
29 SvxPersonalizationTabPage( Window
*pParent
, const SfxItemSet
&rSet
);
30 virtual ~SvxPersonalizationTabPage();
32 static SfxTabPage
* Create( Window
*pParent
, const SfxItemSet
&rSet
);
34 /// Apply the settings ([OK] button).
35 virtual bool FillItemSet( SfxItemSet
&rSet
) SAL_OVERRIDE
;
37 /// Reset to default settings ([Revert] button).
38 virtual void Reset( const SfxItemSet
&rSet
) SAL_OVERRIDE
;
41 /// Handle the Persona selection
42 DECL_LINK( SelectPersona
, PushButton
* );
44 /// When 'own' is chosen, but the Persona is not chosen yet.
45 DECL_LINK( ForceSelect
, RadioButton
* );
47 /// Download the bitmaps + color settings, and copy them to user's profile.
48 bool CopyPersonaToGallery( const OUString
&rURL
);
51 #endif // INCLUDED_CUI_SOURCE_OPTIONS_PERSONALIZATION_HXX
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */