LibreOffice Module vcl (master) 1
win/salinst.h
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#ifndef INCLUDED_VCL_INC_WIN_SALINST_H
21#define INCLUDED_VCL_INC_WIN_SALINST_H
22
23#include <sal/config.h>
24
25#include <osl/conditn.hxx>
26
27#include <salinst.hxx>
28
29class SalYieldMutex;
30
32{
33public:
35 HINSTANCE mhInst;
38
39 osl::Condition maWaitingYieldCond;
41
42public:
44 virtual ~WinSalInstance() override;
45
46 virtual void AfterAppInit() override;
47 virtual SalFrame* CreateChildFrame( SystemParentData* pParent, SalFrameStyleFlags nStyle ) override;
48 virtual SalFrame* CreateFrame( SalFrame* pParent, SalFrameStyleFlags nStyle ) override;
49 virtual void DestroyFrame( SalFrame* pFrame ) override;
50 virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, bool bShow ) override;
51 virtual void DestroyObject( SalObject* pObject ) override;
52 virtual std::unique_ptr<SalVirtualDevice>
54 tools::Long &nDX, tools::Long &nDY,
55 DeviceFormat eFormat, const SystemGraphicsData *pData = nullptr ) override;
57 ImplJobSetup* pSetupData ) override;
58 virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter ) override;
59 virtual std::unique_ptr<SalPrinter> CreatePrinter( SalInfoPrinter* pInfoPrinter ) override;
60 virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList ) override;
61 virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo ) override;
62 virtual OUString GetDefaultPrinter() override;
63 virtual SalTimer* CreateSalTimer() override;
64 virtual SalSystem* CreateSalSystem() override;
65 virtual std::shared_ptr<SalBitmap> CreateSalBitmap() override;
66 virtual bool IsMainThread() const override;
67
68 virtual bool DoYield(bool bWait, bool bHandleAllCurrentEvents) override;
69 virtual bool AnyInput( VclInputFlags nType ) override;
70 virtual std::unique_ptr<SalMenu> CreateMenu( bool bMenuBar, Menu* ) override;
71 virtual std::unique_ptr<SalMenuItem> CreateMenuItem( const SalItemParams & rItemData ) override;
72 virtual OpenGLContext* CreateOpenGLContext() override;
73 virtual OUString GetConnectionIdentifier() override;
74 virtual void AddToRecentDocumentList(const OUString& rFileUrl, const OUString& rMimeType, const OUString& rDocumentService) override;
75
76 virtual OUString getOSVersion() override;
77 virtual void BeforeAbort(const OUString&, bool) override;
78
79 static int WorkaroundExceptionHandlingInUSER32Lib(int nExcept, LPEXCEPTION_POINTERS pExceptionInfo);
80
81 virtual css::uno::Reference<css::uno::XInterface> ImplCreateDragSource(const SystemEnvData*) override;
82 virtual css::uno::Reference<css::uno::XInterface> ImplCreateDropTarget(const SystemEnvData*) override;
83};
84
85SalFrame* ImplSalCreateFrame( WinSalInstance* pInst, HWND hWndParent, SalFrameStyleFlags nSalFrameStyle );
87HWND ImplSalReCreateHWND( HWND hWndParent, HWND oldhWnd, bool bAsChild );
88
89#endif // INCLUDED_VCL_INC_WIN_SALINST_H
90
91/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: menu.hxx:116
A SalFrame is a system window (e.g. an X11 window).
Definition: salframe.hxx:115
virtual OpenGLContext * CreateOpenGLContext() override
virtual std::shared_ptr< SalBitmap > CreateSalBitmap() override
virtual bool DoYield(bool bWait, bool bHandleAllCurrentEvents) override
Wait for the next event (if bWait) and dispatch it, includes posted events, and timers.
virtual std::unique_ptr< SalVirtualDevice > CreateVirtualDevice(SalGraphics &rGraphics, tools::Long &nDX, tools::Long &nDY, DeviceFormat eFormat, const SystemGraphicsData *pData=nullptr) override
virtual OUString GetDefaultPrinter() override
unsigned m_nNoYieldLock
Definition: win/salinst.h:40
virtual SalInfoPrinter * CreateInfoPrinter(SalPrinterQueueInfo *pQueueInfo, ImplJobSetup *pSetupData) override
virtual bool IsMainThread() const override
virtual std::unique_ptr< SalPrinter > CreatePrinter(SalInfoPrinter *pInfoPrinter) override
virtual void GetPrinterQueueInfo(ImplPrnQueueList *pList) override
virtual SalTimer * CreateSalTimer() override
virtual void DestroyObject(SalObject *pObject) override
virtual SalFrame * CreateFrame(SalFrame *pParent, SalFrameStyleFlags nStyle) override
osl::Condition maWaitingYieldCond
Definition: win/salinst.h:39
HWND mhComWnd
invisible Window so non-main threads can SendMessage() the main thread
Definition: win/salinst.h:37
virtual void DestroyInfoPrinter(SalInfoPrinter *pPrinter) override
virtual css::uno::Reference< css::uno::XInterface > ImplCreateDragSource(const SystemEnvData *) override
virtual std::unique_ptr< SalMenu > CreateMenu(bool bMenuBar, Menu *) override
virtual OUString GetConnectionIdentifier() override
virtual void BeforeAbort(const OUString &, bool) override
virtual void GetPrinterQueueState(SalPrinterQueueInfo *pInfo) override
virtual css::uno::Reference< css::uno::XInterface > ImplCreateDropTarget(const SystemEnvData *) override
virtual bool AnyInput(VclInputFlags nType) override
virtual std::unique_ptr< SalMenuItem > CreateMenuItem(const SalItemParams &rItemData) override
virtual ~WinSalInstance() override
virtual void AfterAppInit() override
static int WorkaroundExceptionHandlingInUSER32Lib(int nExcept, LPEXCEPTION_POINTERS pExceptionInfo)
HINSTANCE mhInst
Instance Handle.
Definition: win/salinst.h:35
virtual SalFrame * CreateChildFrame(SystemParentData *pParent, SalFrameStyleFlags nStyle) override
virtual void AddToRecentDocumentList(const OUString &rFileUrl, const OUString &rMimeType, const OUString &rDocumentService) override
virtual SalSystem * CreateSalSystem() override
virtual OUString getOSVersion() override
get information about underlying versions
virtual SalObject * CreateObject(SalFrame *pParent, SystemWindowData *pWindowData, bool bShow) override
virtual void DestroyFrame(SalFrame *pFrame) override
VclInputFlags
Definition: inputtypes.hxx:25
long Long
SalFrameStyleFlags
Definition: salframe.hxx:65
DeviceFormat
Definition: salgtype.hxx:28
SalFrame * ImplSalCreateFrame(WinSalInstance *pInst, HWND hWndParent, SalFrameStyleFlags nSalFrameStyle)
SalObject * ImplSalCreateObject(WinSalInstance *pInst, WinSalFrame *pParent)
HWND ImplSalReCreateHWND(HWND hWndParent, HWND oldhWnd, bool bAsChild)