43 DockingAreaWindow::DockingAreaWindow(
vcl::Window* pParent ) :
46 ImplInit( pParent, WB_CLIPCHILDREN|WB_3DLOOK,
nullptr );
51 DockingAreaWindow::~DockingAreaWindow()
56 void DockingAreaWindow::dispose()
64 Window::DataChanged( rDCEvt );
76 if(
ImplGetSVData()->maNWFData.mbMenuBarDockingAreaCommonBG &&
77 (pThis->GetAlign() == WindowAlign::Top)
93 Window::StateChanged( nType );
99 bool DockingAreaWindow::IsHorizontal()
const
101 return ( mpImplData->meAlign == WindowAlign::Top || mpImplData->meAlign == WindowAlign::Bottom );
104 void DockingAreaWindow::SetAlign(
WindowAlign eNewAlign )
106 if( eNewAlign != mpImplData->meAlign )
108 mpImplData->meAlign = eNewAlign;
115 return mpImplData->meAlign;
123 if (!rPersonaBitmap.
IsEmpty() && (GetAlign() == WindowAlign::Top || GetAlign()==WindowAlign::Bottom))
126 if (GetAlign() == WindowAlign::Top)
158 EnableNativeWidget();
175 Erase(rRenderContext);
176 else if (!
ImplGetSVData()->maNWFData.mbDockingAreaSeparateTB)
182 aCtrlRegion, nState, aControlValue, OUString() );
187 sal_uInt16 nChildren = GetChildCount();
188 for (sal_uInt16 n = 0;
n < nChildren;
n++)
198 rRenderContext.
DrawLine(aRect.TopLeft(), aRect.TopRight());
199 rRenderContext.
DrawLine(aRect.TopLeft(), aRect.BottomLeft());
202 rRenderContext.
DrawLine(aRect.BottomLeft(), aRect.BottomRight());
203 rRenderContext.
DrawLine(aRect.TopRight(), aRect.BottomRight());
211 Size aOutSz(GetOutputSizePixel());
212 std::map<int, int> ranges;
213 sal_uInt16 nChildren = GetChildCount();
214 for (sal_uInt16 n = 0;
n < nChildren;
n++)
220 ranges[aPos.Y()] = aSize.
Height();
222 ranges[aPos.X()] = aSize.
Width();
226 for (
auto const& range : ranges)
232 aTBRect.
SetRight( aOutSz.Width() - 1 );
233 aTBRect.
SetTop( range.first );
234 aTBRect.
SetBottom( range.first + range.second - 1 );
238 aTBRect.
SetLeft( range.first );
239 aTBRect.
SetRight( range.first + range.second - 1 );
241 aTBRect.
SetBottom( aOutSz.Height() - 1 );
244 aTBRect, nState, aControlValue, OUString());
249 void DockingAreaWindow::Resize()
virtual Point GetPosPixel() const
static void ImplInvalidateMenubar(DockingAreaWindow const *pThis)
SystemWindow * GetSystemWindow() const
const StyleSettings & GetStyleSettings() const
const Color & GetFaceColor() const
BitmapEx const & GetPersonaHeader() const
bool mbMenuBarDockingAreaCommonBG
virtual Size GetSizePixel() const
const Color & GetWorkspaceColor() const
Color GetSeparatorColor() const
DataChangedEventType GetType() const
bool IsNativeControlSupported(ControlType nType, ControlPart nPart) const
Query the platform layer for control support.
AllSettingsFlags GetFlags() const
const Color & GetLightColor() const
void DrawLine(const Point &rStartPt, const Point &rEndPt)
BitmapEx const & GetPersonaFooter() const
ImplSVData * ImplGetSVData()
tools::Long GetOutputHeightPixel() const
void SetStyle(WallpaperStyle eStyle)
virtual void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
tools::Long Width() const
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
bool DrawNativeControl(ControlType nType, ControlPart nPart, const tools::Rectangle &rControlRegion, ControlState nState, const ImplControlValue &aValue, const OUString &aCaption, const Color &rBackgroundColor=COL_AUTO)
Request rendering of a particular control and/or part.
const AllSettings & GetSettings() const
MenuBar * GetMenuBar() const
tools::Long Height() const
tools::Long GetOutputWidthPixel() const