LibreOffice Module vcl (master) 1
messagedialog.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_INC_MESSAGEDIALOG_HXX
11#define INCLUDED_VCL_INC_MESSAGEDIALOG_HXX
12
15#include <vcl/layout.hxx>
16#include <vcl/toolkit/fixed.hxx>
17
18class MessageDialog final : public Dialog
19{
20private:
32 void create_owned_areas();
33
34 static void SetMessagesWidths(vcl::Window const* pParent, VclMultiLineEdit* pPrimaryMessage,
35 VclMultiLineEdit* pSecondaryMessage);
36
37 friend class VclPtr<MessageDialog>;
38 MessageDialog(vcl::Window* pParent, WinBits nStyle);
39
40 virtual void StateChanged(StateChangedType nType) override;
41
42public:
43 MessageDialog(vcl::Window* pParent, OUString aMessage, VclMessageType eMessageType,
44 VclButtonsType eButtonsType);
45 virtual bool set_property(const OUString& rKey, const OUString& rValue) override;
46 OUString const& get_primary_text() const;
47 OUString const& get_secondary_text() const;
48 void set_primary_text(const OUString& rPrimaryString);
49 void set_secondary_text(const OUString& rSecondaryString);
50 virtual ~MessageDialog() override;
51 virtual void dispose() override;
52
55};
56
57#endif
58
59/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString m_sPrimaryString
VclPtr< VclButtonBox > m_pOwnedActionArea
VclButtonsType m_eButtonsType
OUString const & get_secondary_text() const
Definition: layout.cxx:2593
virtual ~MessageDialog() override
Definition: layout.cxx:2564
VclPtr< VclMultiLineEdit > m_pPrimaryMessage
VclContainer * get_message_area() const
OUString const & get_primary_text() const
Definition: layout.cxx:2586
void set_primary_text(const OUString &rPrimaryString)
Definition: layout.cxx:2651
VclPtr< VclVBox > m_pMessageBox
void create_message_area()
Definition: layout.cxx:2355
VclPtr< VclGrid > m_pGrid
virtual void StateChanged(StateChangedType nType) override
Definition: layout.cxx:2673
VclMessageType m_eMessageType
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
Definition: layout.cxx:2551
VclPtr< VclBox > m_pOwnedContentArea
VclPtr< FixedImage > m_pImage
static void SetMessagesWidths(vcl::Window const *pParent, VclMultiLineEdit *pPrimaryMessage, VclMultiLineEdit *pSecondaryMessage)
Definition: layout.cxx:2569
void create_owned_areas()
Definition: layout.cxx:2483
VclPtr< VclMultiLineEdit > m_pSecondaryMessage
void set_secondary_text(const OUString &rSecondaryString)
Definition: layout.cxx:2662
OUString m_sSecondaryString
virtual bool set_property(const OUString &rKey, const OUString &rValue) override
Definition: layout.cxx:2600
MessageDialog(vcl::Window *pParent, WinBits nStyle)
Definition: layout.cxx:2498
reference_type * get() const
Get the body.
Definition: vclptr.hxx:143
VclMessageType
Definition: vclenum.hxx:226
VclButtonsType
Definition: vclenum.hxx:216
StateChangedType
Definition: window.hxx:291
sal_Int64 WinBits
Definition: wintypes.hxx:109