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_VCL_BUILDERPAGE_HXX
11 #define INCLUDED_VCL_BUILDERPAGE_HXX
13 #include <vcl/weld.hxx>
15 class VCL_DLLPUBLIC BuilderPage
18 BuilderPage(weld::Widget
* pParent
, weld::DialogController
* pController
,
19 const OUString
& rUIXMLDescription
, const OUString
& rID
, bool bIsMobile
= false);
20 virtual ~BuilderPage() COVERITY_NOEXCEPT_FALSE
;
22 /* The title of the page, in an Assistant the dialog may append this page title to the
25 While in a Dialog hosting a single Page it may use the title as
28 void SetPageTitle(const OUString
& rPageTitle
) { m_aPageTitle
= rPageTitle
; }
29 const OUString
& GetPageTitle() const { return m_aPageTitle
; }
31 // In a Notebook or Assistant the controller typically calls Activate on entering
32 // this page, and Deactivate on leaving
33 virtual void Activate();
34 virtual void Deactivate();
36 void SetHelpId(const OUString
& rHelpId
) { m_xContainer
->set_help_id(rHelpId
); }
37 OUString
GetHelpId() const { return m_xContainer
->get_help_id(); }
40 weld::DialogController
* m_pDialogController
;
41 std::unique_ptr
<weld::Builder
> m_xBuilder
;
42 std::unique_ptr
<weld::Container
> m_xContainer
;
45 OUString m_aPageTitle
;
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */