LibreOffice Module vcl (master)  1
svdata.hxx
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 #pragma once
21 
22 #include <sal/config.h>
23 #include <config_version.h>
24 
25 #include <o3tl/lru_map.hxx>
26 #include <o3tl/hash_combine.hxx>
27 #include <tools/fldunit.hxx>
28 #include <unotools/options.hxx>
29 #include <vcl/bitmapex.hxx>
30 #include <vcl/settings.hxx>
31 #include <vcl/svapp.hxx>
32 #include <vcl/window.hxx>
33 #include <vcl/task.hxx>
34 #include <LibreOfficeKit/LibreOfficeKitTypes.h>
35 #include <unotools/resmgr.hxx>
36 
37 #include <com/sun/star/lang/XComponent.hpp>
38 #include <com/sun/star/i18n/XCharacterClassification.hpp>
39 
40 #include "vcleventlisteners.hxx"
41 #include "salwtype.hxx"
43 
44 #include <mutex>
45 #include <vector>
46 #include <unordered_map>
47 #include "ControlCacheKey.hxx"
48 #include "schedulerimpl.hxx"
49 #include <basegfx/DrawCommands.hxx>
50 
51 struct ImplPostEventData;
52 struct ImplTimerData;
53 struct ImplIdleData;
54 struct ImplConfigData;
55 namespace vcl::font
56 {
57  class DirectFontSubstitution;
58  class PhysicalFontCollection;
59 }
60 struct ImplHotKey;
61 struct ImplEventHook;
62 class Point;
63 class ImplAccelManager;
64 class ImplFontCache;
65 class HelpTextWindow;
66 class ImplTBDragMgr;
67 class ImplIdleMgr;
68 class FloatingWindow;
69 class AllSettings;
70 class NotifyEvent;
71 class Timer;
72 class AutoTimer;
73 class Idle;
74 class Help;
75 class Image;
76 class PopupMenu;
77 class Application;
78 class OutputDevice;
79 class SvFileStream;
80 class SystemWindow;
81 class WorkWindow;
82 class Dialog;
83 class VirtualDevice;
84 class Printer;
85 class SalFrame;
86 class SalInstance;
87 class SalSystem;
88 class ImplPrnQueueList;
89 class UnoWrapperBase;
90 class GraphicConverter;
91 class ImplWheelWindow;
92 class SalTimer;
93 class DockingManager;
94 class VclEventListeners2;
95 class SalData;
96 class OpenGLContext;
97 class UITestLogger;
98 
99 #define SV_ICON_ID_OFFICE 1
100 #define SV_ICON_ID_TEXT 2
101 #define SV_ICON_ID_TEXT_TEMPLATE 3
102 #define SV_ICON_ID_SPREADSHEET 4
103 #define SV_ICON_ID_SPREADSHEET_TEMPLATE 5
104 #define SV_ICON_ID_DRAWING 6
105 #define SV_ICON_ID_PRESENTATION 8
106 #define SV_ICON_ID_MASTER_DOCUMENT 10
107 #define SV_ICON_ID_TEMPLATE 11
108 #define SV_ICON_ID_DATABASE 12
109 #define SV_ICON_ID_FORMULA 13
110 
111 namespace com::sun::star::datatransfer::clipboard { class XClipboard; }
112 
113 namespace vcl
114 {
115  class DisplayConnectionDispatch;
116  class SettingsConfigItem;
117  class DeleteOnDeinitBase;
118  class Window;
119 }
120 
121 namespace basegfx
122 {
123  class SystemDependentDataManager;
124 }
125 
127 {
128 public:
130 };
131 
132 typedef std::pair<VclPtr<vcl::Window>, ImplPostEventData *> ImplPostEventPair;
133 
135 {
136  ~ImplSVAppData();
137 
138  std::optional<AllSettings> mxSettings; // Application settings
140  VclEventListeners maEventListeners; // listeners for vcl events (eg, extended toolkit)
141  std::vector<Link<VclWindowEvent&,bool> >
142  maKeyListeners; // listeners for key events only (eg, extended toolkit)
143  std::vector<ImplPostEventPair> maPostedEventList;
144  ImplAccelManager* mpAccelMgr; // Accelerator Manager
145  std::optional<OUString> mxAppName; // Application name
146  std::optional<OUString> mxAppFileName; // Abs. Application FileName
147  std::optional<OUString> mxDisplayName; // Application Display Name
148  std::optional<OUString> mxToolkitName; // Toolkit Name
149  Help* mpHelp = nullptr; // Application help
150  VclPtr<PopupMenu> mpActivePopupMenu; // Actives Popup-Menu (in Execute)
152  sal_uInt64 mnLastInputTime = 0; // GetLastInputTime()
153  sal_uInt16 mnDispatchLevel = 0; // DispatchLevel
154  sal_uInt16 mnModalMode = 0; // ModalMode Count
155  SystemWindowFlags mnSysWinMode = SystemWindowFlags(0); // Mode, when SystemWindows should be created
156  bool mbInAppMain = false; // is Application::Main() on stack
157  bool mbInAppExecute = false; // is Application::Execute() on stack
158  bool mbAppQuit = false; // is Application::Quit() called
159  bool mbSettingsInit = false; // true: Settings are initialized
160  DialogCancelMode meDialogCancel = DialogCancelMode::Off; // true: All Dialog::Execute() calls will be terminated immediately with return false
161  bool mbRenderToBitmaps = false; // set via svp / headless plugin
162 
166 
167  DECL_STATIC_LINK(ImplSVAppData, ImplQuitMsg, void*, void);
168  DECL_STATIC_LINK(ImplSVAppData, ImplPrepareExitMsg, void*, void);
169  DECL_STATIC_LINK(ImplSVAppData, ImplEndAllDialogsMsg, void*, void);
170  DECL_STATIC_LINK(ImplSVAppData, ImplEndAllPopupsMsg, void*, void);
171  DECL_STATIC_LINK(ImplSVAppData, ImplVclEventTestingHdl, void*, void);
172  DECL_LINK(VclEventTestingHdl, Timer*, void);
173 };
174 
179  ScaleCacheKey(SalBitmap *pBitmap, const Size &aDestSize)
180  {
181  mpBitmap = pBitmap;
182  maDestSize = aDestSize;
183  }
185  {
186  mpBitmap = key.mpBitmap;
187  maDestSize = key.maDestSize;
188  }
189  bool operator==(ScaleCacheKey const& rOther) const
190  {
191  return mpBitmap == rOther.mpBitmap && maDestSize == rOther.maDestSize;
192  }
193 };
194 
195 namespace std
196 {
197 template <> struct hash<ScaleCacheKey>
198 {
199  std::size_t operator()(ScaleCacheKey const& k) const noexcept
200  {
201  std::size_t seed = 0;
202  o3tl::hash_combine(seed, k.mpBitmap);
203  o3tl::hash_combine(seed, k.maDestSize.getWidth());
204  o3tl::hash_combine(seed, k.maDestSize.getHeight());
205  return seed;
206  }
207 };
208 
209 } // end std namespace
210 
212 
214 {
215  ~ImplSVGDIData();
216 
217  VclPtr<vcl::WindowOutputDevice> mpFirstWinGraphics; // First OutputDevice with a Frame Graphics
218  VclPtr<vcl::WindowOutputDevice> mpLastWinGraphics; // Last OutputDevice with a Frame Graphics
219  VclPtr<OutputDevice> mpFirstVirGraphics; // First OutputDevice with a VirtualDevice Graphics
220  VclPtr<OutputDevice> mpLastVirGraphics; // Last OutputDevice with a VirtualDevice Graphics
221  VclPtr<Printer> mpFirstPrnGraphics; // First OutputDevice with an InfoPrinter Graphics
222  VclPtr<Printer> mpLastPrnGraphics; // Last OutputDevice with an InfoPrinter Graphics
223  VclPtr<VirtualDevice> mpFirstVirDev; // First VirtualDevice
224  OpenGLContext* mpLastContext = nullptr; // Last OpenGLContext
225  VclPtr<Printer> mpFirstPrinter; // First Printer
226  std::unique_ptr<ImplPrnQueueList> mpPrinterQueueList; // List of all printer queue
227  std::shared_ptr<vcl::font::PhysicalFontCollection> mxScreenFontList; // Screen-Font-List
228  std::shared_ptr<ImplFontCache> mxScreenFontCache; // Screen-Font-Cache
229  lru_scale_cache maScaleCache = lru_scale_cache(10); // Cache for scaled images
230  vcl::font::DirectFontSubstitution* mpDirectFontSubst = nullptr; // Font-Substitutions defined in Tools->Options->Fonts
231  std::unique_ptr<GraphicConverter> mxGrfConverter; // Converter for graphics
232  tools::Long mnAppFontX = 0; // AppFont X-Numenator for 40/tel Width
233  tools::Long mnAppFontY = 0; // AppFont Y-Numenator for 80/tel Height
234  bool mbFontSubChanged = false; // true: FontSubstitution was changed between Begin/End
235 
238 };
239 
241 {
243  VclPtr<vcl::Window> mpFirstFrame; // First FrameWindow
244  VclPtr<vcl::Window> mpActiveApplicationFrame; // the last active application frame, can be used as DefModalDialogParent if no focuswin set
245  VclPtr<WorkWindow> mpAppWin; // Application-Window
246 
247  std::unique_ptr<UITestLogger> m_pUITestLogger;
248 };
249 
251 {
252  ~ImplSVWinData();
253  VclPtr<vcl::Window> mpFocusWin; // window, that has the focus
254  VclPtr<vcl::Window> mpCaptureWin; // window, that has the mouse capture
255  VclPtr<vcl::Window> mpLastDeacWin; // Window, that need a deactivate (FloatingWindow-Handling)
256  VclPtr<FloatingWindow> mpFirstFloat; // First FloatingWindow in PopupMode
257  std::vector<VclPtr<Dialog>> mpExecuteDialogs;
258  VclPtr<vcl::Window> mpExtTextInputWin; // Window, which is in ExtTextInput
259  VclPtr<vcl::Window> mpTrackWin; // window, that is in tracking mode
260  AutoTimer* mpTrackTimer = nullptr; // tracking timer
261  std::vector<Image> maMsgBoxImgList; // ImageList for MessageBox
262  VclPtr<vcl::Window> mpAutoScrollWin; // window, that is in AutoScrollMode mode
263  VclPtr<vcl::Window> mpLastWheelWindow; // window, that last received a mouse wheel event
264  SalWheelMouseEvent maLastWheelEvent; // the last received mouse wheel event
265 
268  bool mbNoDeactivate = false; // true: do not execute Deactivate
269  bool mbNoSaveFocus = false; // true: menus must not save/restore focus
270 };
271 
272 typedef std::vector< std::pair< OUString, FieldUnit > > FieldUnitStringList;
273 
275 {
276  std::vector<Image> maCheckImgList; // ImageList for CheckBoxes
277  std::vector<Image> maRadioImgList; // ImageList for RadioButtons
278  std::unique_ptr<Image> mpDisclosurePlus;
279  std::unique_ptr<Image> mpDisclosureMinus;
280  ImplTBDragMgr* mpTBDragMgr = nullptr; // DragMgr for ToolBox
281  sal_uInt16 mnCheckStyle = 0; // CheckBox-Style for ImageList-Update
282  sal_uInt16 mnRadioStyle = 0; // Radio-Style for ImageList-Update
283  Color mnLastCheckFColor; // Last FaceColor for CheckImage
284  Color mnLastCheckWColor; // Last WindowColor for CheckImage
285  Color mnLastCheckLColor; // Last LightColor for CheckImage
286  Color mnLastRadioFColor; // Last FaceColor for RadioImage
287  Color mnLastRadioWColor; // Last WindowColor for RadioImage
288  Color mnLastRadioLColor; // Last LightColor for RadioImage
289  FieldUnitStringList maFieldUnitStrings; // list with field units
290  FieldUnitStringList maCleanUnitStrings; // same list but with some "fluff" like spaces removed
291 };
292 
294 {
295  ~ImplSVHelpData();
296  bool mbContextHelp = false; // is ContextHelp enabled
297  bool mbExtHelp = false; // is ExtendedHelp enabled
298  bool mbExtHelpMode = false; // is in ExtendedHelp Mode
299  bool mbOldBalloonMode = false; // BalloonMode, before ExtHelpMode started
300  bool mbBalloonHelp = false; // is BalloonHelp enabled
301  bool mbQuickHelp = false; // is QuickHelp enabled
302  bool mbSetKeyboardHelp = false; // tiphelp was activated by keyboard
303  bool mbKeyboardHelp = false; // tiphelp was activated by keyboard
304  bool mbRequestingHelp = false; // In Window::RequestHelp
306  sal_uInt64 mnLastHelpHideTime = 0; // ticks of last show
307 };
308 
309 // "NWF" means "Native Widget Framework" and was the term used for the
310 // idea that StarView/OOo "widgets" should *look* (and feel) like the
311 // "native widgets" on each platform, even if not at all implemented
312 // using them. See http://people.redhat.com/dcbw/ooo-nwf.html .
313 
315 {
316  int mnStatusBarLowerRightOffset = 0; // amount in pixel to avoid in the lower righthand corner
317  int mnMenuFormatBorderX = 0; // horizontal inner popup menu border
318  int mnMenuFormatBorderY = 0; // vertical inner popup menu border
319  ::Color maMenuBarHighlightTextColor = COL_TRANSPARENT; // override highlight text color
320  // in menubar if not transparent
321  bool mbMenuBarDockingAreaCommonBG = false; // e.g. WinXP default theme
322  bool mbDockingAreaSeparateTB = false; // individual toolbar backgrounds
323  // instead of one for docking area
325  bool mbFlatMenu = false; // no popup 3D border
326  bool mbNoFocusRects = false; // on Aqua/Gtk3 use native focus rendering, except for flat buttons
327  bool mbNoFocusRectsForFlatButtons = false; // on Gtk3 native focusing is also preferred for flat buttons
328  bool mbCenteredTabs = false; // on Aqua, tabs are centered
329  bool mbNoActiveTabTextRaise = false; // on Aqua the text for the selected tab
330  // should not "jump up" a pixel
331  bool mbProgressNeedsErase = false; // set true for platforms that should draw the
332  // window background before drawing the native
333  // progress bar
334  bool mbCanDrawWidgetAnySize = false; // set to true currently on gtk
335 
337  bool mbDDListBoxNoTextArea = false;
338  bool mbAutoAccel = false; // whether accelerators are only shown when Alt is held down
339  bool mbRolloverMenubar = false; // theming engine supports rollover in menubar
340  // gnome#768128 I cannot see a route under wayland at present to support
341  // floating toolbars that can be redocked because there's no way to track
342  // that the toolbar is over a dockable area.
344 
346 };
347 
349 {
357 
359  : m_aLastSize(0, 0)
360  , m_nLastAlpha(0)
361  , m_aLastColorTopLeft(COL_BLACK)
362  , m_aLastColorTopRight(COL_BLACK)
363  , m_aLastColorBottomRight(COL_BLACK)
364  , m_aLastColorBottomLeft(COL_BLACK)
365  {
366  }
367 };
368 
370 {
375  SalTimer* mpSalTimer = nullptr;
376  sal_uInt64 mnTimerStart = 0;
378  std::mutex maMutex;
379  bool mbActive = true;
381 };
382 
384 {
385  ImplSVData();
386  ~ImplSVData();
387  SalData* mpSalData = nullptr;
388  SalInstance* mpDefInst = nullptr; // Default SalInstance
389  Application* mpApp = nullptr; // pApp
390  VclPtr<WorkWindow> mpDefaultWin; // Default-Window
391  bool mbDeInit = false; // Is VCL deinitializing
392  std::unique_ptr<SalSystem> mpSalSystem; // SalSystem interface
393  bool mbResLocaleSet = false; // SV-Resource-Manager
394  std::locale maResLocale; // Resource locale
395  ImplSchedulerContext maSchedCtx; // Data for class Scheduler
396  ImplSVAppData maAppData; // Data for class Application
397  ImplSVGDIData maGDIData; // Data for Output classes
398  ImplSVFrameData maFrameData; // Data for Frame classes
399  ImplSVWinData* mpWinData = nullptr; // Data for per-view Windows classes
400  ImplSVCtrlData maCtrlData; // Data for Control classes
401  ImplSVHelpData* mpHelpData; // Data for Help classes
404  VclPtr<vcl::Window> mpIntroWindow; // the splash screen
405  std::unique_ptr<DockingManager> mpDockingManager;
406  std::unique_ptr<BlendFrameCache> mpBlendFrameCache;
407 
408  oslThreadIdentifier mnMainThreadId = 0;
410 
411  css::uno::Reference< css::lang::XComponent > mxAccessBridge;
412  std::unique_ptr<vcl::SettingsConfigItem> mpSettingsConfigItem;
413  std::vector< vcl::DeleteOnDeinitBase* > maDeinitDeleteList;
414  std::unordered_map< int, OUString > maPaperNames;
415 
416  css::uno::Reference<css::i18n::XCharacterClassification> m_xCharClass;
417 
418 #if defined _WIN32
419  css::uno::Reference<css::datatransfer::clipboard::XClipboard> m_xSystemClipboard;
420 #endif
421 
423 
424  // LOK & headless backend specific hooks
425  LibreOfficeKitPollCallback mpPollCallback = nullptr;
426  LibreOfficeKitWakeCallback mpWakeCallback = nullptr;
427  void *mpPollClosure = nullptr;
428 };
429 
430 css::uno::Reference<css::i18n::XCharacterClassification> const& ImplGetCharClass();
431 
432 void ImplDeInitSVData();
436 const std::locale& ImplGetResLocale();
437 VCL_PLUGIN_PUBLIC OUString VclResId(TranslateId sContextAndId);
440 void GenerateAutoMnemonicsOnHierarchy(const vcl::Window* pWindow);
441 
443 
445 
448 
449 #ifdef _WIN32
450 bool ImplInitAccessBridge();
451 #endif
452 
455 
457 {
458  void* mpData;
462  bool mbCall;
463 };
464 
465 extern int nImplSysDialog;
466 
467 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
do not automatically cancel dialogs
Color m_aLastColorBottomLeft
Definition: svdata.hxx:355
ConfigurationHints
Color mnLastRadioLColor
Definition: svdata.hxx:288
VclPtr< HelpTextWindow > mpHelpWin
Definition: svdata.hxx:305
std::unique_ptr< SalSystem > mpSalSystem
Definition: svdata.hxx:392
oslThreadIdentifier mnMainThreadId
Definition: svdata.hxx:408
bool mbCanDrawWidgetAnySize
Definition: svdata.hxx:334
VclPtr< vcl::Window > mpFocusWin
Definition: svdata.hxx:253
SalData * mpSalData
Definition: svdata.hxx:387
Color mnLastCheckWColor
Definition: svdata.hxx:284
A tooltip: adds tips to widgets in a floating / popup window.
Definition: helpwin.hxx:30
bool mbNoSaveFocus
Definition: svdata.hxx:269
bool mbFontSubChanged
Definition: svdata.hxx:234
Size maDestSize
Definition: svdata.hxx:178
VclPtr< vcl::WindowOutputDevice > mpFirstWinGraphics
Definition: svdata.hxx:217
sal_uInt16 mnCheckStyle
Definition: svdata.hxx:281
int mnMenuFormatBorderX
Definition: svdata.hxx:317
std::optional< OUString > mxToolkitName
Definition: svdata.hxx:148
Link< LinkParamNone *, void > maDeInitHook
Definition: svdata.hxx:422
StartAutoScrollFlags
Definition: window.hxx:277
StartTrackingFlags
Definition: window.hxx:263
Help * mpHelp
Definition: svdata.hxx:149
bool mbNoActiveTabTextRaise
Definition: svdata.hxx:329
Definition: help.hxx:60
BitmapEx m_aLastResult
Definition: svdata.hxx:356
VCL_PLUGIN_PUBLIC vcl::Window * ImplGetDefaultWindow()
Returns either the application window, or the default GL context window.
Definition: svdata.cxx:209
bool mbNoDeactivate
Definition: svdata.hxx:268
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
ImplSVAppData maAppData
Definition: svdata.hxx:396
int mnStatusBarLowerRightOffset
Definition: svdata.hxx:316
long Long
constexpr::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
std::unique_ptr< GraphicConverter > mxGrfConverter
Definition: svdata.hxx:231
VclPtr< OutputDevice > mpLastVirGraphics
Definition: svdata.hxx:220
void * mpPollClosure
Definition: svdata.hxx:427
std::unique_ptr< vcl::SettingsConfigItem > mpSettingsConfigItem
Definition: svdata.hxx:412
VclPtr< PopupMenu > mpActivePopupMenu
Definition: svdata.hxx:150
#define PRIO_COUNT
Definition: task.hxx:40
ImplSVNWFData maNWFData
Definition: svdata.hxx:402
css::uno::Reference< css::lang::XComponent > mxAccessBridge
Definition: svdata.hxx:411
bool mbMenuBarDockingAreaCommonBG
Definition: svdata.hxx:321
SalBitmap * mpBitmap
Definition: svdata.hxx:177
std::pair< VclPtr< vcl::Window >, ImplPostEventData * > ImplPostEventPair
Definition: svdata.hxx:132
~ImplSVData()
Definition: svdata.cxx:476
bool mbNoFocusRectsForFlatButtons
Definition: svdata.hxx:327
bool mbRequestingHelp
Definition: svdata.hxx:304
Idle * mpEventTestingIdle
Definition: svdata.hxx:164
SalTimer * mpSalTimer
interface to sal event loop / system timer
Definition: svdata.hxx:375
vcl::Window * ImplGetDefaultContextWindow()
returns the default window created to hold the persistent VCL GL context.
Definition: svdata.cxx:219
Size m_aLastSize
Definition: svdata.hxx:350
ImplSVData()
Definition: svdata.cxx:398
std::vector< Link< VclWindowEvent &, bool > > maKeyListeners
Definition: svdata.hxx:142
ImplSchedulerData * mpFirstSchedulerData[PRIO_COUNT]
list of all active tasks per priority
Definition: svdata.hxx:371
ImplSVGDIData maGDIData
Definition: svdata.hxx:397
int mnListBoxEntryMargin
Definition: svdata.hxx:345
DirectFontSubstitution is for Tools->Options->FontReplacement and PsPrinter substitutions The class i...
std::optional< OUString > mxAppFileName
Definition: svdata.hxx:146
bool mbInAppExecute
Definition: svdata.hxx:157
vcl::font::DirectFontSubstitution * mpDirectFontSubst
Definition: svdata.hxx:230
ImplSVCtrlData maCtrlData
Definition: svdata.hxx:400
DECL_LINK(VclEventTestingHdl, Timer *, void)
bool mbExtHelpMode
Definition: svdata.hxx:298
bool mbAppQuit
Definition: svdata.hxx:158
bool mbResLocaleSet
Definition: svdata.hxx:393
std::unique_ptr< ImplPrnQueueList > mpPrinterQueueList
Definition: svdata.hxx:226
bool mbSettingsInit
Definition: svdata.hxx:159
std::vector< ImplPostEventPair > maPostedEventList
Definition: svdata.hxx:143
ImplSVHelpData * mpHelpData
Definition: svdata.hxx:401
LibreOfficeKitPollCallback mpPollCallback
Definition: svdata.hxx:425
std::unique_ptr< BlendFrameCache > mpBlendFrameCache
Definition: svdata.hxx:406
sal_uInt64 mnLastHelpHideTime
Definition: svdata.hxx:306
bool mbSetKeyboardHelp
Definition: svdata.hxx:302
const std::locale & ImplGetResLocale()
Definition: svdata.cxx:247
bool mbDockingAreaAvoidTBFrames
don't draw frames around the individual toolbars if mbDockingAreaSeparateTB is false ...
Definition: svdata.hxx:324
std::size_t operator()(ScaleCacheKey const &k) const noexcept
Definition: svdata.hxx:199
VclPtr< VirtualDevice > mpFirstVirDev
Definition: svdata.hxx:223
DockingManager * ImplGetDockingManager()
Definition: svdata.cxx:299
Cache multiple scalings for the same bitmap.
Definition: svdata.hxx:176
AutoTimer * mpTrackTimer
Definition: svdata.hxx:260
VCL_PLUGIN_PUBLIC ImplSVData * ImplGetSVData()
Definition: svdata.cxx:75
sal_uInt8 m_nLastAlpha
Definition: svdata.hxx:351
VCL_PLUGIN_PUBLIC ImplSVHelpData & ImplGetSVHelpData()
Definition: svdata.cxx:463
DECL_STATIC_LINK(ImplSVAppData, ImplQuitMsg, void *, void)
bool mbAutoAccel
Definition: svdata.hxx:338
o3tl::lru_map< ScaleCacheKey, BitmapEx > lru_scale_cache
Definition: svdata.hxx:211
VclPtr< vcl::WindowOutputDevice > mpLastWinGraphics
Definition: svdata.hxx:218
o3tl::lru_map< OUString, BitmapEx > maThemeImageCache
Definition: svdata.hxx:236
VclPtr< ImplWheelWindow > mpWheelWindow
Definition: svdata.hxx:151
Color m_aLastColorTopRight
Definition: svdata.hxx:353
LibreOfficeKitWakeCallback mpWakeCallback
Definition: svdata.hxx:426
VclPtr< Printer > mpFirstPrinter
Definition: svdata.hxx:225
An auto-timer is a multi-shot timer re-emitting itself at interval until destroyed or stopped...
Definition: timer.hxx:66
std::vector< VclPtr< Dialog > > mpExecuteDialogs
Stack of dialogs that are Execute()'d - the last one is the top most one.
Definition: svdata.hxx:257
VclPtr< Printer > mpLastPrnGraphics
Definition: svdata.hxx:222
StartAutoScrollFlags mnAutoScrollFlags
Definition: svdata.hxx:267
BlendFrameCache * ImplGetBlendFrameCache()
Definition: svdata.cxx:308
VclPtr< vcl::Window > mpCaptureWin
Definition: svdata.hxx:254
bool mbCall
Definition: svdata.hxx:462
SvFileStream * mpEventTestInput
Definition: svdata.hxx:163
Color m_aLastColorTopLeft
Definition: svdata.hxx:352
sal_uInt16 mnModalMode
Definition: svdata.hxx:154
#define SAL_MAX_UINT64
sal_uInt64 mnLastInputTime
Definition: svdata.hxx:152
VCL_DLLPUBLIC bool ImplCallPreNotify(NotifyEvent &rEvt)
Definition: winproc.cxx:63
VclPtr< vcl::Window > mpIntroWindow
Definition: svdata.hxx:404
int mnMenuFormatBorderY
Definition: svdata.hxx:318
VclPtr< vcl::Window > mpInstanceRef
Definition: svdata.hxx:460
FieldUnitStringList maCleanUnitStrings
Definition: svdata.hxx:290
bool mbQuickHelp
Definition: svdata.hxx:301
bool mbExtHelp
Definition: svdata.hxx:297
std::vector< Image > maMsgBoxImgList
Definition: svdata.hxx:261
Color m_aLastColorBottomRight
Definition: svdata.hxx:354
Link< void *, void > maLink
Definition: svdata.hxx:459
SystemWindowFlags
Definition: svapp.hxx:87
std::unique_ptr< Image > mpDisclosureMinus
Definition: svdata.hxx:279
VclPtr< vcl::Window > mpLastWheelWindow
Definition: svdata.hxx:263
sal_uInt16 mnRadioStyle
Definition: svdata.hxx:282
VclPtr< WorkWindow > mpAppWin
Definition: svdata.hxx:245
VCL_PLUGIN_PUBLIC void ImplHideSplash()
Definition: dialog.cxx:125
void ImplDeInitSVData()
Definition: svdata.cxx:87
std::vector< vcl::DeleteOnDeinitBase * > maDeinitDeleteList
Definition: svdata.hxx:413
VCL_PLUGIN_PUBLIC basegfx::SystemDependentDataManager & ImplGetSystemDependentDataManager()
Definition: svdata.cxx:201
css::uno::Reference< css::i18n::XCharacterClassification > const & ImplGetCharClass()
Definition: field2.cxx:60
ImplSchedulerData * mpSchedulerStack
stack of invoked tasks
Definition: svdata.hxx:373
void GenerateAutoMnemonicsOnHierarchy(const vcl::Window *pWindow)
Definition: dialog.cxx:204
A PhysicalFontFaceCollection is created by a PhysicalFontCollection and becomes invalid when original...
SystemWindowFlags mnSysWinMode
Definition: svdata.hxx:155
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:168
VclPtr< Printer > mpFirstPrnGraphics
Definition: svdata.hxx:221
bool mbCanDetermineWindowPosition
Definition: svdata.hxx:343
LocaleConfigurationListener * mpCfgListener
Definition: svdata.hxx:139
std::optional< AllSettings > mxSettings
Definition: svdata.hxx:138
std::enable_if_t<(sizeof(N)==4)> hash_combine(N &nSeed, T const *pValue, size_t nCount)
ImplSchedulerData * mpLastSchedulerData[PRIO_COUNT]
last item of each mpFirstSchedulerData list
Definition: svdata.hxx:372
Base class used mainly for the LibreOffice Desktop class.
Definition: svapp.hxx:233
VclPtr< vcl::Window > mpLastDeacWin
Definition: svdata.hxx:255
o3tl::lru_map< OUString, gfx::DrawRoot > maThemeDrawCommandsCache
Definition: svdata.hxx:237
bool mbDockingAreaSeparateTB
Definition: svdata.hxx:322
bool mbContextHelp
Definition: svdata.hxx:296
VclPtr< vcl::Window > mpTrackWin
Definition: svdata.hxx:259
ScaleCacheKey(const ScaleCacheKey &key)
Definition: svdata.hxx:184
ImplSchedulerContext maSchedCtx
Definition: svdata.hxx:395
ScaleCacheKey(SalBitmap *pBitmap, const Size &aDestSize)
Definition: svdata.hxx:179
sal_uInt64 mnTimerStart
start time of the timer
Definition: svdata.hxx:376
const FieldUnitStringList & ImplGetFieldUnits()
Definition: svdata.cxx:263
#define VCL_PLUGIN_PUBLIC
Definition: dllapi.h:40
SalWheelMouseEvent maLastWheelEvent
Definition: svdata.hxx:264
A SalFrame is a system window (e.g. an X11 window).
Definition: salframe.hxx:114
css::uno::Reference< css::i18n::XCharacterClassification > m_xCharClass
Definition: svdata.hxx:416
virtual void ConfigurationChanged(utl::ConfigurationBroadcaster *, ConfigurationHints) override
Definition: svdata.cxx:350
VclPtr< vcl::Window > mpExtTextInputWin
Definition: svdata.hxx:258
void * mpData
Definition: svdata.hxx:458
ImplTBDragMgr * mpTBDragMgr
Definition: svdata.hxx:280
int nImplSysDialog
Definition: print.cxx:55
bool mbRolloverMenubar
Definition: svdata.hxx:339
bool mbBalloonHelp
Definition: svdata.hxx:300
std::vector< Image > maCheckImgList
Definition: svdata.hxx:276
bool mbOldBalloonMode
Definition: svdata.hxx:299
const FieldUnitStringList & ImplGetCleanedFieldUnits()
Definition: svdata.cxx:279
bool mbNoFocusRects
Definition: svdata.hxx:326
unsigned char sal_uInt8
bool mbProgressNeedsErase
Definition: svdata.hxx:331
std::vector< Image > maRadioImgList
Definition: svdata.hxx:277
bool mbFlatMenu
Definition: svdata.hxx:325
tools::Long mnAppFontX
Definition: svdata.hxx:232
ImplSVFrameData maFrameData
Definition: svdata.hxx:398
std::unique_ptr< UITestLogger > m_pUITestLogger
Definition: svdata.hxx:247
VclPtr< vcl::Window > mpAutoScrollWin
Definition: svdata.hxx:262
bool mbActive
is the scheduler active?
Definition: svdata.hxx:380
VclPtr< vcl::Window > mpActiveApplicationFrame
Definition: svdata.hxx:244
sal_uInt16 mnDispatchLevel
Definition: svdata.hxx:153
VclPtr< OutputDevice > mpFirstVirGraphics
Definition: svdata.hxx:219
Definition: image.hxx:39
bool mbDeInit
Definition: svdata.hxx:391
std::shared_ptr< ImplFontCache > mxScreenFontCache
Definition: svdata.hxx:228
Color mnLastRadioFColor
Definition: svdata.hxx:286
VclEventListeners maEventListeners
Definition: svdata.hxx:140
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_BLACK
std::vector< std::pair< OUString, FieldUnit > > FieldUnitStringList
Definition: svdata.hxx:272
Color mnLastCheckLColor
Definition: svdata.hxx:285
ImplSchedulerData * mpSchedulerStackTop
top most stack entry to detect needed rescheduling during pop
Definition: svdata.hxx:374
VclPtr< FloatingWindow > mpFirstFloat
Definition: svdata.hxx:256
VclPtr< vcl::Window > mpWindow
Definition: svdata.hxx:461
std::unique_ptr< Image > mpDisclosurePlus
Definition: svdata.hxx:278
std::shared_ptr< vcl::font::PhysicalFontCollection > mxScreenFontList
Definition: svdata.hxx:227
DialogCancelMode meDialogCancel
Definition: svdata.hxx:160
bool mbRenderToBitmaps
Definition: svdata.hxx:161
FieldUnitStringList maFieldUnitStrings
Definition: svdata.hxx:289
VclPtr< vcl::Window > mpFirstFrame
Definition: svdata.hxx:243
Application * mpApp
Definition: svdata.hxx:389
ImplAccelManager * mpAccelMgr
Definition: svdata.hxx:144
Definition: timer.hxx:26
std::unique_ptr< DockingManager > mpDockingManager
Definition: svdata.hxx:405
std::optional< OUString > mxDisplayName
Definition: svdata.hxx:147
Color mnLastRadioWColor
Definition: svdata.hxx:287
std::optional< OUString > mxAppName
Definition: svdata.hxx:145
bool mbDDListBoxNoTextArea
entire drop down listbox resembles a button, no textarea/button parts (as currently on Windows) ...
Definition: svdata.hxx:337
sal_uInt64 mnTimerPeriod
current timer period
Definition: svdata.hxx:377
DialogCancelMode
Definition: svapp.hxx:212
lru_scale_cache maScaleCache
Definition: svdata.hxx:229
OpenGLContext * mpLastContext
Definition: svdata.hxx:224
rtl::Reference< vcl::DisplayConnectionDispatch > mxDisplayConnection
Definition: svdata.hxx:409
StartTrackingFlags mnTrackFlags
Definition: svdata.hxx:266
UnoWrapperBase * mpUnoWrapper
Definition: svdata.hxx:403
tools::Long mnAppFontY
Definition: svdata.hxx:233
bool mbInAppMain
Definition: svdata.hxx:156
::Color maMenuBarHighlightTextColor
Definition: svdata.hxx:319
bool operator==(ScaleCacheKey const &rOther) const
Definition: svdata.hxx:189
std::locale maResLocale
Definition: svdata.hxx:394
int mnEventTestLimit
Definition: svdata.hxx:165
bool mbKeyboardHelp
Definition: svdata.hxx:303
SalInstance * mpDefInst
Definition: svdata.hxx:388
Color mnLastCheckFColor
Definition: svdata.hxx:283
VCL_PLUGIN_PUBLIC OUString VclResId(TranslateId sContextAndId)
Definition: svdata.cxx:258
An idle is a timer to be scheduled immediately.
Definition: idle.hxx:34
std::unordered_map< int, OUString > maPaperNames
Definition: svdata.hxx:414
std::mutex maMutex
the "scheduler mutex" (see vcl/README.scheduler)
Definition: svdata.hxx:378
ImplSVWinData * mpWinData
Definition: svdata.hxx:399
VclPtr< WorkWindow > mpDefaultWin
Definition: svdata.hxx:390
bool mbCenteredTabs
Definition: svdata.hxx:328