Bump version to 6.4-15
[LibreOffice.git] / include / vcl / builderpage.hxx
blobc2ba9d4163a127411761442fa2e7c8b29b07e255
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef INCLUDED_VCL_BUILDERPAGE_HXX
11 #define INCLUDED_VCL_BUILDERPAGE_HXX
13 #include <vcl/weld.hxx>
15 class VCL_DLLPUBLIC BuilderPage
17 public:
18 BuilderPage(weld::Widget* pParent, weld::DialogController* pController,
19 const OUString& rUIXMLDescription, const OString& 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
23 dialog title.
25 While in a Dialog hosting a single Page it may use the title as
26 the dialog title.
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 OString GetHelpId() const { return m_xContainer->get_help_id(); }
38 protected:
39 weld::DialogController* m_pDialogController;
40 std::unique_ptr<weld::Builder> m_xBuilder;
41 std::unique_ptr<weld::Container> m_xContainer;
43 private:
44 OUString m_aPageTitle;
47 #endif
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */