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