20#ifndef INCLUDED_VCL_INC_BRDWIN_HXX
21#define INCLUDED_VCL_INC_BRDWIN_HXX
28#include <com/sun/star/frame/XFrame.hpp>
104 using Window::ImplInit;
120 virtual void dispose()
override;
128 virtual void Resize()
override;
155 const css::uno::Reference<css::frame::XFrame>& rFrame,
165 void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
166 sal_Int32& rRightBorder, sal_Int32& rBottomBorder )
const;
220 virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
221 sal_Int32& rRightBorder, sal_Int32& rBottomBorder )
const = 0;
239 virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
240 sal_Int32& rRightBorder, sal_Int32& rBottomBorder )
const override;
261 virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
262 sal_Int32& rRightBorder, sal_Int32& rBottomBorder )
const override;
282 virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
283 sal_Int32& rRightBorder, sal_Int32& rBottomBorder )
const override;
static void ImplInitTitle(ImplBorderFrameData *pData)
virtual bool MouseButtonDown(const MouseEvent &rMEvt)
static tools::Long ImplCalcTitleWidth(const ImplBorderFrameData *pData)
static void ImplMouseMove(ImplBorderFrameData *pData, const MouseEvent &rMEvt)
virtual bool MouseMove(const MouseEvent &rMEvt)
virtual tools::Rectangle GetMenuRect() const
virtual bool Tracking(const TrackingEvent &rTEvt)
static OUString ImplRequestHelp(ImplBorderFrameData const *pData, const Point &rPos, tools::Rectangle &rHelpRect)
virtual ~ImplBorderWindowView()
virtual void DrawWindow(vcl::RenderContext &rRenderContext, const Point *pOffset=nullptr)=0
static BorderWindowHitTest ImplHitTest(ImplBorderFrameData const *pData, const Point &rPos)
virtual void GetBorder(sal_Int32 &rLeftBorder, sal_Int32 &rTopBorder, sal_Int32 &rRightBorder, sal_Int32 &rBottomBorder) const =0
virtual tools::Long CalcTitleWidth() const =0
virtual void Init(OutputDevice *pDev, tools::Long nWidth, tools::Long nHeight)=0
virtual OUString RequestHelp(const Point &rPos, tools::Rectangle &rHelpRect)
BorderWindowTitleType mnTitleType
void SetNotebookBar(const OUString &rUIXMLDescription, const css::uno::Reference< css::frame::XFrame > &rFrame, const NotebookBarAddonsItem &aNotebookBarAddonsItem)
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
ImplBorderWindow & operator=(const ImplBorderWindow &)=delete
void ImplInit(vcl::Window *pParent, WinBits nStyle, BorderWindowStyle nTypeStyle, SystemParentData *pParentData)
tools::Long CalcTitleWidth() const
void SetDockButton(bool bDockButton)
virtual ~ImplBorderWindow() override
std::unique_ptr< ImplBorderWindowView > mpBorderView
void UpdateView(bool bNewView, const Size &rNewOutSize)
void SetMenuBarWindow(vcl::Window *pWindow)
void SetHideButton(bool bHideButton)
virtual void MouseMove(const MouseEvent &rMEvt) override
const VclPtr< NotebookBar > & GetNotebookBar() const
ImplBorderWindow(const ImplBorderWindow &)=delete
virtual void Activate() override
VclPtr< NotebookBar > mpNotebookBar
void SetDisplayActive(bool bActive)
VclPtr< vcl::Window > mpMenuBarWindow
tools::Rectangle GetMenuRect() const
virtual void queue_resize(StateChangedType eReason=StateChangedType::Layout) override
void Draw(OutputDevice *pDev, const Point &rPos)
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
void SetMenuButton(bool bMenuButton)
virtual void Resize() override
WindowBorderStyle mnBorderStyle
void SetMaxOutputSize(tools::Long nWidth, tools::Long nHeight)
virtual void RequestHelp(const HelpEvent &rHEvt) override
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
void SetMenuBarMode(bool bHide)
void SetBorderStyle(WindowBorderStyle nStyle)
virtual void StateChanged(StateChangedType nType) override
void GetBorder(sal_Int32 &rLeftBorder, sal_Int32 &rTopBorder, sal_Int32 &rRightBorder, sal_Int32 &rBottomBorder) const
WindowBorderStyle GetBorderStyle() const
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
void SetTitleType(BorderWindowTitleType nTitleType, const Size &rSize)
virtual void Tracking(const TrackingEvent &rTEvt) override
virtual void Deactivate() override
tools::Long mnOrgMenuHeight
void SetMinOutputSize(tools::Long nWidth, tools::Long nHeight)
virtual Size GetOptimalSize() const override
virtual void Init(OutputDevice *pDev, tools::Long nWidth, tools::Long nHeight) override
virtual void GetBorder(sal_Int32 &rLeftBorder, sal_Int32 &rTopBorder, sal_Int32 &rRightBorder, sal_Int32 &rBottomBorder) const override
virtual void DrawWindow(vcl::RenderContext &rRenderContext, const Point *pOffset=nullptr) override
virtual tools::Long CalcTitleWidth() const override
virtual void GetBorder(sal_Int32 &rLeftBorder, sal_Int32 &rTopBorder, sal_Int32 &rRightBorder, sal_Int32 &rBottomBorder) const override
VclPtr< ImplBorderWindow > mpBorderWindow
virtual void Init(OutputDevice *pOutDev, tools::Long nWidth, tools::Long nHeight) override
ImplSmallBorderWindowView(ImplBorderWindow *pBorderWindow)
virtual void DrawWindow(vcl::RenderContext &rRenderContext, const Point *pOffset=nullptr) override
VclPtr< OutputDevice > mpOutDev
virtual tools::Long CalcTitleWidth() const override
virtual tools::Rectangle GetMenuRect() const override
virtual ~ImplStdBorderWindowView() override
virtual void Init(OutputDevice *pDev, tools::Long nWidth, tools::Long nHeight) override
virtual tools::Long CalcTitleWidth() const override
virtual void GetBorder(sal_Int32 &rLeftBorder, sal_Int32 &rTopBorder, sal_Int32 &rRightBorder, sal_Int32 &rBottomBorder) const override
virtual OUString RequestHelp(const Point &rPos, tools::Rectangle &rHelpRect) override
ImplStdBorderWindowView(ImplBorderWindow *pBorderWindow)
virtual bool Tracking(const TrackingEvent &rTEvt) override
virtual bool MouseMove(const MouseEvent &rMEvt) override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
virtual void DrawWindow(vcl::RenderContext &rRenderContext, const Point *pOffset=nullptr) override
ImplBorderFrameData maFrameData
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
DrawButtonFlags mnMenuState
tools::Rectangle maHelpRect
BorderWindowHitTest mnHitTest
DrawButtonFlags mnCloseState
tools::Rectangle maTitleRect
tools::Long mnTrackHeight
DrawButtonFlags mnHideState
BorderWindowTitleType mnTitleType
tools::Long mnTitleHeight
DrawButtonFlags mnDockState
VclPtr< ImplBorderWindow > mpBorderWindow
VclPtr< OutputDevice > mpOutDev
tools::Rectangle maHideRect
tools::Rectangle maCloseRect
tools::Rectangle maDockRect
DrawButtonFlags mnHelpState
tools::Rectangle maMenuRect