LibreOffice Module vcl (master)  1
bubblewindow.cxx
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  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #include <rtl/ustrbuf.hxx>
22 #include <vcl/lineinfo.hxx>
23 #include <vcl/settings.hxx>
24 #include <vcl/svapp.hxx>
25 #include <unotools/resmgr.hxx>
26 #include <bubblewindow.hxx>
27 #include <bitmaps.hlst>
28 
29 #define TIP_HEIGHT 15
30 #define TIP_WIDTH 7
31 #define TIP_RIGHT_OFFSET 18
32 #define BUBBLE_BORDER 10
33 #define TEXT_MAX_WIDTH 300
34 #define TEXT_MAX_HEIGHT 200
35 
36 BubbleWindow::BubbleWindow( vcl::Window* pParent, const OUString& rTitle,
37  const OUString& rText, const Image& rImage )
40  | WB_NOBORDER
41  )
42  , maBubbleTitle( rTitle )
43  , maBubbleText( rText )
44  , maBubbleImage( rImage )
45  , maMaxTextSize( TEXT_MAX_WIDTH, TEXT_MAX_HEIGHT )
46  , mnTipOffset( 0 )
47 {
48  SetBackground( Wallpaper( GetSettings().GetStyleSettings().GetHelpColor() ) );
49 }
50 
52 {
54 
55  Size aSize = GetSizePixel();
56 
57  if ( ( aSize.Height() < 20 ) || ( aSize.Width() < 60 ) )
58  return;
59 
60  tools::Rectangle aRect( 0, TIP_HEIGHT, aSize.Width(), aSize.Height() - TIP_HEIGHT );
61  maRectPoly = tools::Polygon( aRect, 6, 6 );
62  vcl::Region aRegion( maRectPoly );
63  tools::Long nTipOffset = aSize.Width() - TIP_RIGHT_OFFSET + mnTipOffset;
64 
65  Point aPointArr[4];
66  aPointArr[0] = Point( nTipOffset, TIP_HEIGHT );
67  aPointArr[1] = Point( nTipOffset, 0 );
68  aPointArr[2] = Point( nTipOffset + TIP_WIDTH , TIP_HEIGHT );
69  aPointArr[3] = Point( nTipOffset, TIP_HEIGHT );
70  maTriPoly = tools::Polygon( 4, aPointArr );
71  vcl::Region aTriRegion( maTriPoly );
72 
73  aRegion.Union( aTriRegion);
74  maBounds = aRegion;
75 
77 }
78 
79 void BubbleWindow::SetTitleAndText( const OUString& rTitle,
80  const OUString& rText,
81  const Image& rImage )
82 {
83  maBubbleTitle = rTitle;
84  maBubbleText = rText;
85  maBubbleImage = rImage;
86 
87  Resize();
88 }
89 
90 void BubbleWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& /*rRect*/)
91 {
92  LineInfo aThickLine( LineStyle::Solid, 2 );
93 
94  rRenderContext.DrawPolyLine( maRectPoly, aThickLine );
95  rRenderContext.DrawPolyLine( maTriPoly );
96 
97  Color aOldLine = rRenderContext.GetLineColor();
98  Size aSize = GetSizePixel();
99  tools::Long nTipOffset = aSize.Width() - TIP_RIGHT_OFFSET + mnTipOffset;
100 
101  rRenderContext.SetLineColor( GetSettings().GetStyleSettings().GetHelpColor() );
102  rRenderContext.DrawLine( Point( nTipOffset+2, TIP_HEIGHT ),
103  Point( nTipOffset + TIP_WIDTH -1 , TIP_HEIGHT ),
104  aThickLine );
105  rRenderContext.SetLineColor( aOldLine );
106 
107  Size aImgSize = maBubbleImage.GetSizePixel();
108 
110 
111  vcl::Font aOldFont = GetFont();
112  vcl::Font aBoldFont = aOldFont;
113  aBoldFont.SetWeight( WEIGHT_BOLD );
114 
115  SetFont( aBoldFont );
116  tools::Rectangle aTitleRect = maTitleRect;
117  aTitleRect.Move( aImgSize.Width(), 0 );
119 
120  SetFont( aOldFont );
121  tools::Rectangle aTextRect = maTextRect;
122  aTextRect.Move( aImgSize.Width(), 0 );
124 }
125 
127 {
128  Show( false );
129 }
130 
131 void BubbleWindow::Show( bool bVisible )
132 {
133  if ( !bVisible )
134  {
135  FloatingWindow::Show( bVisible );
136  return;
137  }
138 
139  // don't show bubbles without a text
140  if ( ( maBubbleTitle.isEmpty() ) && ( maBubbleText.isEmpty() ) )
141  return;
142 
143  Size aWindowSize = GetSizePixel();
144 
145  Size aImgSize = maBubbleImage.GetSizePixel();
146 
147  RecalcTextRects();
148 
149  aWindowSize.setHeight( maTitleRect.GetHeight() * 7 / 4+ maTextRect.GetHeight() +
150  3 * BUBBLE_BORDER + TIP_HEIGHT );
151 
153  aWindowSize.setWidth( maTitleRect.GetWidth() );
154  else
155  aWindowSize.setWidth( maTextRect.GetWidth() );
156 
157  aWindowSize.setWidth( aWindowSize.Width() + 3 * BUBBLE_BORDER + aImgSize.Width() );
158 
159  if ( aWindowSize.Height() < aImgSize.Height() + TIP_HEIGHT + 2 * BUBBLE_BORDER )
160  aWindowSize.setHeight( aImgSize.Height() + TIP_HEIGHT + 2 * BUBBLE_BORDER );
161 
162  Point aPos;
163  aPos.setX( maTipPos.X() - aWindowSize.Width() + TIP_RIGHT_OFFSET );
164  aPos.setY( maTipPos.Y() );
165  Point aScreenPos = GetParent()->OutputToAbsoluteScreenPixel( aPos );
166  if ( aScreenPos.X() < 0 )
167  {
168  mnTipOffset = aScreenPos.X();
169  aPos.AdjustX( -mnTipOffset );
170  }
171  SetPosSizePixel( aPos, aWindowSize );
172 
174 }
175 
177 {
178  Size aTotalSize;
179  bool bFinished = false;
180  vcl::Font aOldFont = GetFont();
181  vcl::Font aBoldFont = aOldFont;
182 
183  aBoldFont.SetWeight( WEIGHT_BOLD );
184 
185  while ( !bFinished )
186  {
187  SetFont( aBoldFont );
188 
192 
193  SetFont( aOldFont );
195  maBubbleText,
197 
198  if ( maTextRect.GetHeight() < 10 )
199  maTextRect.setHeight( 10 );
200 
201  aTotalSize.setHeight( maTitleRect.GetHeight() +
202  aBoldFont.GetFontHeight() * 3 / 4 +
204  3 * BUBBLE_BORDER + TIP_HEIGHT );
205  if ( aTotalSize.Height() > maMaxTextSize.Height() )
206  {
209  }
210  else
211  bFinished = true;
212  }
215 }
216 
218  : mnIconID (0)
219  , mbShowMenuIcon(false)
220  , mbShowBubble(false)
221  , mbBubbleChanged( false )
222 {
223  maTimeoutTimer.SetTimeout( 10000 );
225 
228 
229  maApplicationEventHdl = LINK(this, MenuBarUpdateIconManager, ApplicationEventHdl);
231 
232  maWindowEventHdl = LINK(this, MenuBarUpdateIconManager, WindowEventHdl);
233 }
234 
236 {
237  if ( !mpIconSysWin )
238  return nullptr;
239 
241  if( aIconRect.IsEmpty() )
242  return nullptr;
243 
244  auto pBubbleWin = mpBubbleWin;
245 
246  if ( !pBubbleWin ) {
249  mbBubbleChanged = false;
250  }
251  else if ( mbBubbleChanged ) {
252  pBubbleWin->SetTitleAndText( maBubbleTitle, maBubbleText,
253  maBubbleImage );
254  mbBubbleChanged = false;
255  }
256 
257  Point aWinPos = aIconRect.BottomCenter();
258 
259  pBubbleWin->SetTipPosPixel( aWinPos );
260 
261  return pBubbleWin;
262 }
263 
265 {
266  RemoveBubbleWindow( false );
267 }
268 
269 IMPL_LINK(MenuBarUpdateIconManager, WindowEventHdl, VclWindowEvent&, rEvent, void)
270 {
271  VclEventId nEventID = rEvent.GetId();
272 
273  if ( VclEventId::ObjectDying == nEventID )
274  {
275  if ( mpIconSysWin == rEvent.GetWindow() )
276  {
277  mpIconSysWin->RemoveEventListener( maWindowEventHdl );
278  RemoveBubbleWindow( true );
279  }
280  }
281  else if ( VclEventId::WindowMenubarAdded == nEventID )
282  {
283  vcl::Window *pWindow = rEvent.GetWindow();
284  if ( pWindow )
285  {
286  SystemWindow *pSysWin = pWindow->GetSystemWindow();
287  if ( pSysWin )
288  {
289  AddMenuBarIcon( pSysWin, false );
290  }
291  }
292  }
293  else if ( VclEventId::WindowMenubarRemoved == nEventID )
294  {
295  MenuBar *pMBar = static_cast<MenuBar*>(rEvent.GetData());
296  if ( pMBar && ( pMBar == mpIconMBar ) )
297  RemoveBubbleWindow( true );
298  }
299  else if ( ( nEventID == VclEventId::WindowMove ) ||
300  ( nEventID == VclEventId::WindowResize ) )
301  {
302  if ( ( mpIconSysWin == rEvent.GetWindow() ) &&
303  mpBubbleWin && ( mpIconMBar != nullptr ) )
304  {
305  tools::Rectangle aIconRect = mpIconMBar->GetMenuBarButtonRectPixel( mnIconID );
306  Point aWinPos = aIconRect.BottomCenter();
307  mpBubbleWin->SetTipPosPixel( aWinPos );
308  if ( mpBubbleWin->IsVisible() )
309  mpBubbleWin->Show(); // This will recalc the screen position of the bubble
310  }
311  }
312 }
313 
314 IMPL_LINK(MenuBarUpdateIconManager, ApplicationEventHdl, VclSimpleEvent&, rEvent, void)
315 {
316  switch (rEvent.GetId())
317  {
321 
322  vcl::Window *pWindow = static_cast< VclWindowEvent * >(&rEvent)->GetWindow();
323  if ( pWindow && pWindow->IsTopWindow() )
324  {
325  SystemWindow *pSysWin = pWindow->GetSystemWindow();
326  MenuBar *pMBar = pSysWin ? pSysWin->GetMenuBar() : nullptr;
327  if (pMBar)
328  {
329  AddMenuBarIcon( pSysWin, true );
330  }
331  }
332  break;
333  }
334  default: break;
335  }
336 }
337 
338 IMPL_LINK_NOARG(MenuBarUpdateIconManager, UserEventHdl, void*, void)
339 {
342  SystemWindow *pActiveSysWin = nullptr;
343 
344  vcl::Window *pBubbleWin = nullptr;
345  if ( mpBubbleWin )
346  pBubbleWin = mpBubbleWin;
347 
348  if ( pActiveWin && ( pActiveWin != pBubbleWin ) && pActiveWin->IsTopWindow() )
349  pActiveSysWin = pActiveWin->GetSystemWindow();
350 
351  if ( pActiveWin == pBubbleWin )
352  pActiveSysWin = nullptr;
353 
354  while ( !pActiveSysWin && pTopWin )
355  {
356  if ( ( pTopWin != pBubbleWin ) && pTopWin->IsTopWindow() )
357  pActiveSysWin = pTopWin->GetSystemWindow();
358  if ( !pActiveSysWin )
359  pTopWin = Application::GetNextTopLevelWindow( pTopWin );
360  }
361 
362  if ( pActiveSysWin )
363  AddMenuBarIcon( pActiveSysWin, true );
364 }
365 
367 {
368  maWaitIdle.Stop();
369  if ( mpBubbleWin )
370  mpBubbleWin->Show( false );
371 
372  maClickHdl.Call(nullptr);
373 
374  return false;
375 }
376 
378 {
379  if ( rData.bHighlight )
380  maWaitIdle.Start();
381  else
382  RemoveBubbleWindow(false);
383 
384  return false;
385 }
386 
388 {
389  mpBubbleWin = GetBubbleWindow();
390 
391  if ( mpBubbleWin )
392  {
393  mpBubbleWin->Show();
394  }
395 }
396 
398 {
400 
401  RemoveBubbleWindow(true);
402 }
403 
405 {
406  if ( bShowMenuIcon != mbShowMenuIcon )
407  {
408  mbShowMenuIcon = bShowMenuIcon;
409  if ( bShowMenuIcon )
411  else
412  RemoveBubbleWindow( true );
413  }
414 }
415 
417 {
418  mbShowBubble = bShowBubble;
419  if ( mbShowBubble )
421  else if ( mpBubbleWin )
422  mpBubbleWin->Show( false );
423 }
424 
426 {
427  mbBubbleChanged = true;
429  mpBubbleWin->Show( false );
430 }
431 
433 {
434  maBubbleImage = rImage;
436 }
437 
438 void MenuBarUpdateIconManager::SetBubbleTitle(const OUString& rTitle)
439 {
440  if (rTitle != maBubbleTitle)
441  {
442  maBubbleTitle = rTitle;
444  }
445 }
446 
447 void MenuBarUpdateIconManager::SetBubbleText(const OUString& rText)
448 {
449  if (rText != maBubbleText)
450  {
451  maBubbleText = rText;
453  }
454 }
455 
456 namespace {
457 Image GetMenuBarIcon( MenuBar const * pMBar )
458 {
459  OUString sResID;
460  vcl::Window *pMBarWin = pMBar->GetWindow();
461  sal_uInt32 nMBarHeight = 20;
462 
463  if ( pMBarWin )
464  nMBarHeight = pMBarWin->GetOutputSizePixel().getHeight();
465 
466  if (nMBarHeight >= 35)
467  sResID = RID_UPDATE_AVAILABLE_26;
468  else
469  sResID = RID_UPDATE_AVAILABLE_16;
470 
471  return Image(StockImage::Yes, sResID);
472 }
473 }
474 
476 {
477  if ( ! mbShowMenuIcon )
478  return;
479 
480  MenuBar *pActiveMBar = pSysWin->GetMenuBar();
481  if ( ( pSysWin != mpIconSysWin ) || ( pActiveMBar != mpIconMBar ) )
482  {
483  if ( bAddEventHdl && mpIconSysWin )
485 
486  RemoveBubbleWindow( true );
487 
488  if ( pActiveMBar )
489  {
490  OUStringBuffer aBuf;
491  if( !maBubbleTitle.isEmpty() )
492  aBuf.append( maBubbleTitle );
493  if( !maBubbleText.isEmpty() )
494  {
495  if( !maBubbleTitle.isEmpty() )
496  aBuf.append( "\n\n" );
497  aBuf.append( maBubbleText );
498  }
499 
500  Image aImage = GetMenuBarIcon( pActiveMBar );
501  mnIconID = pActiveMBar->AddMenuBarButton( aImage,
502  LINK( this, MenuBarUpdateIconManager, ClickHdl ),
503  aBuf.makeStringAndClear()
504  );
506  LINK( this, MenuBarUpdateIconManager, HighlightHdl ) );
507  }
508  mpIconMBar = pActiveMBar;
509  mpIconSysWin = pSysWin;
510  if ( bAddEventHdl && mpIconSysWin )
512  }
513 
514  if ( mbShowBubble && pActiveMBar )
515  {
517  if ( mpBubbleWin )
518  {
519  mpBubbleWin->Show();
521  }
522  mbShowBubble = false;
523  }
524 }
525 
527 {
528  maWaitIdle.Stop();
530 
531  if ( mpBubbleWin )
532  {
534  }
535 
536  if ( bRemoveIcon )
537  {
538  try {
539  if ( mpIconMBar && ( mnIconID != 0 ) )
540  {
542  mpIconMBar = nullptr;
543  mnIconID = 0;
544  }
545  }
546  catch ( ... ) {
547  mpIconMBar = nullptr;
548  mnIconID = 0;
549  }
550 
551  mpIconSysWin = nullptr;
552  }
553 }
554 
555 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Size GetSizePixel() const
Definition: Image.cxx:86
void SetBackground()
Definition: window3.cxx:100
WinBits const WB_SYSTEMWINDOW
SystemWindow * GetSystemWindow() const
Definition: stacking.cxx:806
void DrawImage(const Point &rPos, const Image &rImage, DrawImageFlags nStyle=DrawImageFlags::NONE)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setWidth(tools::Long nWidth)
void Union(const tools::Rectangle &rRegion)
Definition: region.cxx:505
Image maBubbleImage
static void RemoveEventListener(const Link< VclSimpleEvent &, void > &rEventListener)
Remove a VCL event listener from the application.
Definition: svapp.cxx:799
long Long
void disposeAndClear()
Definition: vclptr.hxx:200
Link< VclWindowEvent &, void > maWindowEventHdl
void AddMenuBarIcon(SystemWindow *pSysWin, bool bAddEventHdl)
virtual Size GetSizePixel() const
Definition: window.cxx:2392
aBuf
void SetBubbleText(const OUString &rText)
void SetWeight(FontWeight)
Definition: font/font.cxx:225
void DrawPolyLine(const tools::Polygon &rPoly)
Render the given polygon as a line stroke.
Definition: polyline.cxx:33
const ContentProperties & rData
static ImplSVEvent * PostUserEvent(const Link< void *, void > &rLink, void *pCaller=nullptr, bool bReferenceLink=false)
Post a user event to the default window.
Definition: svapp.cxx:1025
constexpr Point BottomCenter() const
static void AddEventListener(const Link< VclSimpleEvent &, void > &rEventListener)
Add a VCL event listener to the application.
Definition: svapp.cxx:793
tools::Long GetFontHeight() const
Definition: font/font.cxx:834
WEIGHT_BOLD
constexpr tools::Long Width() const
void SetShowBubble(bool bShowBubble)
#define TEXT_MAX_WIDTH
WinBits const WB_OWNERDRAWDECORATION
IMPL_LINK(MenuBarUpdateIconManager, WindowEventHdl, VclWindowEvent &, rEvent, void)
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
OUString maBubbleText
VclEventId
Definition: vclevent.hxx:37
constexpr tools::Long GetWidth() const
void SetMenuBarButtonHighlightHdl(sal_uInt16 nId, const Link< MenuBar::MenuBarButtonCallbackArg &, bool > &)
Definition: menu.cxx:2652
bool IsTopWindow() const
Definition: stacking.cxx:608
IMPL_LINK_NOARG(MenuBarUpdateIconManager, TimeOutHdl, Timer *, void)
void SetWindowRegionPixel()
Definition: paint.cxx:1058
constexpr tools::Long getHeight() const
void DrawLine(const Point &rStartPt, const Point &rEndPt)
Definition: line.cxx:160
VclPtr< MenuBar > mpIconMBar
constexpr bool IsEmpty() const
#define BUBBLE_BORDER
static vcl::Window * GetFirstTopLevelWindow()
Get the first top-level window of the application.
Definition: svapp.cxx:1074
tools::Rectangle maTextRect
void SetLineColor()
Definition: line.cxx:36
#define TIP_HEIGHT
tools::Polygon maTriPoly
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:168
const AllSettings & GetSettings() const
Definition: window3.cxx:129
const Color & GetLineColor() const
Definition: outdev.hxx:507
virtual void Start(bool bStartTimer=true) override
Schedules the task for execution.
Definition: timer.cxx:83
BubbleWindow(vcl::Window *pParent, const OUString &rTitle, const OUString &rText, const Image &rImage)
sal_uInt16 AddMenuBarButton(const Image &, const Link< MenuBar::MenuBarButtonCallbackArg &, bool > &, const OUString &)
Definition: menu.cxx:2646
VclPtr< SystemWindow > mpIconSysWin
void SetTimeout(sal_uInt64 nTimeoutMs)
Definition: timer.cxx:90
vcl::Window * GetParent() const
Definition: window2.cxx:1091
static vcl::Window * GetActiveTopWindow()
Get the "active" top window.
Definition: svapp.cxx:1118
Point OutputToAbsoluteScreenPixel(const Point &rPos) const
Definition: window.cxx:2842
void RemoveBubbleWindow(bool bRemoveIcon)
WinBits const WB_NOBORDER
virtual void SetPosSizePixel(const Point &rNewPos, const Size &rNewSize)
Definition: window2.cxx:1262
vcl::Window * GetWindow(GetWindowType nType) const
Definition: stacking.cxx:1035
OUString maBubbleTitle
void AddEventListener(const Link< VclWindowEvent &, void > &rEventListener)
Definition: event.cxx:302
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
VclPtr< BubbleWindow > mpBubbleWin
void Show(bool bVisible=true)
void Stop()
Definition: scheduler.cxx:590
static vcl::Window * GetNextTopLevelWindow(vcl::Window const *pWindow)
Get the next top level window.
Definition: svapp.cxx:1080
void SetTitleAndText(const OUString &rTitle, const OUString &rText, const Image &rImage)
MenuBar * GetMenuBar() const
Definition: syswin.hxx:184
constexpr tools::Long Height() const
vcl::Window * GetWindow() const
Definition: menu.hxx:383
VclPtr< BubbleWindow > GetBubbleWindow()
void SetShowMenuIcon(bool bShowMenuIcon)
#define TIP_RIGHT_OFFSET
Definition: image.hxx:39
static VclPtr< reference_type > Create(Arg &&...arg)
A construction helper for VclPtr.
Definition: vclptr.hxx:127
tools::Rectangle GetTextRect(const tools::Rectangle &rRect, const OUString &rStr, DrawTextFlags nStyle=DrawTextFlags::WordBreak, TextRectInfo *pInfo=nullptr, const vcl::ITextLayout *_pTextLayout=nullptr) const
Definition: window3.cxx:201
void SetInvokeHandler(const Link< Timer *, void > &rLink)
Definition: timer.hxx:56
const vcl::Font & GetFont() const
Definition: window3.cxx:58
Link< VclSimpleEvent &, void > maApplicationEventHdl
Size GetOutputSizePixel() const
Definition: window3.cxx:89
#define TIP_WIDTH
void setHeight(tools::Long nHeight)
tools::Rectangle maTitleRect
void Move(tools::Long nHorzMoveDelta, tools::Long nVertMoveDelta)
void RemoveEventListener(const Link< VclWindowEvent &, void > &rEventListener)
Definition: event.cxx:307
Definition: timer.hxx:26
void SetPriority(TaskPriority ePriority)
Definition: scheduler.cxx:597
void SetFont(const vcl::Font &rNewFont)
Definition: window3.cxx:59
tools::Rectangle GetMenuBarButtonRectPixel(sal_uInt16 nId)
Definition: menu.cxx:2668
tools::Long mnTipOffset
void SetBubbleImage(const Image &rImage)
Low, very idle cleanup tasks.
void RecalcTextRects()
void SetBubbleTitle(const OUString &rTitle)
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)
Definition: text.cxx:772
virtual void Resize() override
Definition: syswin.cxx:999
tools::Polygon maRectPoly
void RemoveMenuBarButton(sal_uInt16 nId)
Definition: menu.cxx:2660
void setHeight(tools::Long n)
#define TEXT_MAX_HEIGHT
vcl::Region maBounds
constexpr tools::Long GetHeight() const
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
Definition: window.cxx:2177
void Resize() override