LibreOffice Module vcl (master)  1
builderpage.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 
10 #ifndef INCLUDED_VCL_BUILDERPAGE_HXX
11 #define INCLUDED_VCL_BUILDERPAGE_HXX
12 
13 #include <vcl/weld.hxx>
14 
16 {
17 public:
18  BuilderPage(weld::Widget* pParent, weld::DialogController* pController,
19  const OUString& rUIXMLDescription, const OString& rID);
20  virtual ~BuilderPage() COVERITY_NOEXCEPT_FALSE;
21 
22  /* The title of the page, in an Assistant the dialog may append this page title to the
23  dialog title.
24 
25  While in a Dialog hosting a single Page it may use the title as
26  the dialog title.
27  */
28  void SetPageTitle(const OUString& rPageTitle) { m_aPageTitle = rPageTitle; }
29  const OUString& GetPageTitle() const { return m_aPageTitle; }
30 
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();
35 
36  OString GetHelpId() const { return m_xContainer->get_help_id(); }
37 
38 protected:
40  std::unique_ptr<weld::Builder> m_xBuilder;
41  std::unique_ptr<weld::Container> m_xContainer;
42 
43 private:
44  OUString m_aPageTitle;
45 };
46 
47 #endif
48 
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
std::unique_ptr< weld::Builder > m_xBuilder
Definition: builderpage.hxx:40
OString GetHelpId() const
Definition: builderpage.hxx:36
const OUString & GetPageTitle() const
Definition: builderpage.hxx:29
std::unique_ptr< weld::Container > m_xContainer
Definition: builderpage.hxx:41
weld::DialogController * m_pDialogController
Definition: builderpage.hxx:39
OUString m_aPageTitle
Definition: builderpage.hxx:44
void SetPageTitle(const OUString &rPageTitle)
Definition: builderpage.hxx:28