22 #if !defined(VCL_DLLIMPLEMENTATION) && !defined(TOOLKIT_DLLIMPLEMENTATION) && !defined(VCL_INTERNALS)
23 #error "don't use this in new code"
27 #include <string_view>
64 SAL_DLLPRIVATE
void RemoveFromDlgList();
65 SAL_DLLPRIVATE
void ImplInitDialogData();
66 SAL_DLLPRIVATE
void ImplInitSettings();
84 SAL_DLLPRIVATE
bool IsInClose()
const {
return mbInClose; }
86 SAL_DLLPRIVATE
void disposeOwnedButtons();
90 explicit Dialog(
vcl::Window* pParent, std::u16string_view rID,
const OUString& rUIXMLDescription);
98 void set_content_area(
VclBox* pBox);
102 virtual ~
Dialog()
override;
103 virtual void dispose()
override;
115 virtual bool set_property(
const OString &rKey,
const OUString &rValue)
override;
119 virtual bool Close()
override;
129 bool ImplStartExecute();
130 static void ImplEndExecuteModal();
131 void ImplSetModalInputMode(
bool bModal);
142 void GetDrawWindowBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
143 sal_Int32& rRightBorder, sal_Int32& rBottomBorder )
const;
145 void SetModalInputMode(
bool bModal );
148 void GrabFocusToFirstControl();
149 virtual void Resize()
override;
155 void SetLOKTunnelingState(
bool bEnabled);
157 void add_button(
PushButton* pButton,
int nResponse,
bool bTransferOwnership);
158 void set_default_response(
int nResponse);
159 int get_default_response()
const;
160 vcl::Window* get_widget_for_response(
int nResponse);
virtual FactoryFunction GetUITestFactory() const
virtual bool EventNotify(NotifyEvent &rNEvt) override
VclBox * get_content_area()
bool IsInSyncExecute() const
std::function< std::unique_ptr< UIObject >vcl::Window *)> FactoryFunction
VclPtr< VclButtonBox > mpActionArea
virtual void DumpAsPropertyTree(tools::JsonWriter &)
Dumps itself and potentially its children to a property tree, to be written easily to JSON...
Creates a hierarchy of vcl::Windows (widgets) from a .ui file for dialogs, sidebar, etc.
bool IsModalInputMode() const
VclPtr< VclBox > mpContentArea
virtual void doDeferredInit(WinBits nBits)
virtual void ApplySettings(vcl::RenderContext &rRenderContext)
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
virtual void Draw(::OutputDevice *pDev, const Point &rPos, DrawFlags nFlags)
virtual void PixelInvalidate(const tools::Rectangle *pRectangle)
Notification about some rectangle of the output device got invalidated.
DECL_DLLPRIVATE_LINK(ImplHandleLayoutTimerHdl, Timer *, void)
virtual bool set_property(const OString &rKey, const OUString &rValue)
VclButtonBox * get_action_area()
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects...
virtual void queue_resize(StateChangedType eReason=StateChangedType::Layout) override
virtual void settingOptimalLayoutSize(Window *pBox)
virtual void StateChanged(StateChangedType nStateChange)
OutputDevice & operator=(const OutputDevice &)=delete
virtual void Command(const CommandEvent &rCEvt)
std::unique_ptr< DialogImpl > mpDialogImpl
SAL_DLLPRIVATE bool IsInClose() const
virtual void Resize() override
tools::Long mnMousePositioned
virtual void DataChanged(const DataChangedEvent &rDCEvt)