30#include <bitmaps.hlst>
42 ,m_aBorder( 3, 1, 3, 3 )
48 m_aToolbox->SetBackground(
Wallpaper( GetSettings().GetStyleSettings().GetDialogColor() ) );
56 SetSizePixel(LogicToPixel(
Size(80,200),
MapMode(MapUnit::MapAppFont)));
73 SfxDockingWindow::SetText( i_rText );
92 Size aWindowSize( GetOutputSizePixel() );
124 ApplyControlFont(rRenderContext, rStyleSettings.
GetAppFont());
148 Size aWindowSize(GetOutputSizePixel());
151 int nOuterRight = aWindowSize.
Width() - 1;
154 int nOuterBottom = aWindowSize.
Height() - 1;
159 rRenderContext.
DrawRect(aTitleBarBox);
161 if (nInnerLeft > nOuterLeft)
163 if (nOuterRight > nInnerRight)
165 if (nInnerBottom < nOuterBottom)
172 rRenderContext.
DrawLine(
Point(nInnerLeft, nInnerTop),
Point(nInnerLeft, nInnerBottom));
178 rRenderContext.
DrawLine(
Point(nInnerRight, nInnerBottom),
Point(nInnerLeft, nInnerBottom));
180 rRenderContext.
DrawLine(
Point(nInnerRight, nInnerBottom),
Point(nInnerRight, nInnerTop));
185 rRenderContext.
DrawText(aTitleBarBox,
187 DrawTextFlags::Left | DrawTextFlags::VCenter | DrawTextFlags::MultiLine | DrawTextFlags::WordBreak);
190 rRenderContext.
Pop();
213 const sal_uInt16 nChildWindowId( GetChildWindow_Impl()->GetType() );
214 const SfxBoolItem aVisibility( nChildWindowId,
false );
217 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD,
228 case StateChangedType::InitShow:
234 case StateChangedType::Visible:
243 if (pBase !=
nullptr)
257 SfxDockingWindow::DataChanged( i_rDataChangedEvent );
259 switch ( i_rDataChangedEvent.
GetType() )
261 case DataChangedEventType::SETTINGS:
262 if ( !( i_rDataChangedEvent.
GetFlags() & AllSettingsFlags::STYLE ) )
265 case DataChangedEventType::FONTS:
266 case DataChangedEventType::FONTSUBSTITUTION:
288 SfxDockingWindow::MouseButtonDown(rEvent);
294 if (pSplitWindow ==
nullptr)
298 const sal_uInt16 nSetId (pSplitWindow->
GetSet(
nId));
308 rValidSizeRange.
Min() + nCompensation,
309 rValidSizeRange.
Max() + nCompensation));
315 if (pSplitWindow ==
nullptr)
const StyleSettings & GetStyleSettings() const
DataChangedEventType GetType() const
AllSettingsFlags GetFlags() const
sal_uInt16 GetButtons() const
const vcl::Font & GetFont() const
void SetFont(const vcl::Font &rNewFont)
void DrawRect(const tools::Rectangle &rRect)
void DrawLine(const Point &rStartPt, const Point &rEndPt)
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
void DrawText(const Point &rStartPt, const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, std::vector< tools::Rectangle > *pVector=nullptr, OUString *pDisplayText=nullptr, const SalLayoutGlyphs *pLayoutCache=nullptr)
const AllSettings & GetSettings() const
SfxDispatcher * GetDispatcher() const
const SfxPoolItem * ExecuteList(sal_uInt16 nSlot, SfxCallMode nCall, std::initializer_list< SfxPoolItem const * > args, std::initializer_list< SfxPoolItem const * > internalargs=std::initializer_list< SfxPoolItem const * >())
virtual void Resize() override
SfxBindings & GetBindings() const
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
virtual void StateChanged(StateChangedType nStateChange) override
virtual void dispose() override
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
constexpr tools::Long Width() const
sal_uInt16 GetItemId(vcl::Window *pWindow) const
void SetItemSizeRange(sal_uInt16 nId, const Range &rRange)
bool IsHorizontal() const
sal_uInt16 GetSet(sal_uInt16 nId) const
const Color & GetShadowColor() const
const Color & GetLightColor() const
const Color & GetDialogColor() const
const vcl::Font & GetAppFont() const
const Color & GetButtonTextColor() const
const Color & GetActiveTextColor() const
virtual void SetText(const OUString &i_rText) override
SvBorder m_aBorder
The border that is painted around the inner window.
const SvBorder & GetDecorationBorder() const
Return the border that is painted around the inner window as decoration.
int m_nTitleBarHeight
Height of the title bar.
void impl_resetToolBox()
internal version of ResetToolBox
virtual void ApplySettings(vcl::RenderContext &rRenderContext) override
virtual ~TitledDockingWindow() override
TitledDockingWindow(SfxBindings *i_pBindings, SfxChildWindow *i_pChildWindow, vcl::Window *i_pParent, const OUString &rsTitle)
Create a new docking window.
virtual void Paint(vcl::RenderContext &rRenderContext, const ::tools::Rectangle &i_rArea) override
VclPtr< Window > m_aContentWindow
vcl::Window & GetContentWindow()
returns the content window, which is to be used as parent window for any content to be displayed in t...
virtual void MouseButtonDown(const MouseEvent &rEvent) override
virtual void DataChanged(const DataChangedEvent &i_rDataChangedEvent) override
virtual void StateChanged(StateChangedType i_nType) override
virtual void Resize() override
VclPtr< ToolBox > m_aToolbox
void SetValidSizeRange(const Range &rValidSizeRange)
When docked the given range is passed to the parent SplitWindow.
Orientation GetOrientation() const
When the TitledDockingWindow is docked and managed by a split window it can derive its orientation fr...
virtual void dispose() override
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
static ViewShellBase * GetViewShellBase(SfxViewFrame const *pFrame)
When given a view frame this static method returns the corresponding sd::ViewShellBase object.
An SdWindow contains the actual working area of ViewShell.
static ::std::shared_ptr< FrameworkHelper > Instance(ViewShellBase &rBase)
Return the FrameworkHelper object that is associated with the given ViewShellBase.
void SetWeight(FontWeight)
void SetStyle(WinBits nStyle)
virtual SfxBindings & GetBindings() override
#define LINK(Instance, Class, Member)
SfxDispatcher * GetDispatcher()
IMPL_LINK(SdCharHeightPropertyBox, implMenuSelectHdl, const OUString &, rIdent, void)
OUString SdResId(TranslateId aId)
WinBits const WB_CLOSEABLE
WinBits const WB_MOVEABLE
WinBits const WB_DIALOGCONTROL
WinBits const WB_DOCKABLE