/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
namespace com::sun::star::awt { class XWindow;
} namespace comphelper { class SolarMutex; } namespace vcl { class Window; } namespace weld { class Builder; class MessageDialog; class Widget; class Window;
} class SystemChildWindow; struct SystemParentData; struct SalPrinterQueueInfo; class ImplJobSetup; class OpenGLContext; class SalGraphics; class SalFrame; class SalObject; class SalMenu; class SalMenuItem; class SalVirtualDevice; class SalInfoPrinter; class SalPrinter; class SalTimer; class ImplPrnQueueList; class SalSystem; class SalBitmap; struct SalItemParams; class SalSession; struct SystemEnvData; struct SystemGraphicsData; struct SystemWindowData; class Menu; enumclass VclInputFlags; enumclass SalFrameStyleFlags;
// VirtualDevice // nDX and nDY in pixels // pData allows for using a system dependent graphics or device context, // if a system context is passed in nDX and nDY are updated to reflect // its size; otherwise these remain unchanged. virtual std::unique_ptr<SalVirtualDevice>
CreateVirtualDevice( SalGraphics& rGraphics,
tools::Long nDX, tools::Long nDY,
DeviceFormat eFormat ) = 0;
// VirtualDevice // nDX and nDY in pixels // pData allows for using a system dependent graphics or device context, // nDX and nDY are updated to reflect its size; otherwise these remain unchanged. virtual std::unique_ptr<SalVirtualDevice>
CreateVirtualDevice( SalGraphics& rGraphics,
tools::Long &rDX, tools::Long &rDY,
DeviceFormat eFormat, const SystemGraphicsData& rData ) = 0;
// Printer // pSetupData->mpDriverData can be 0 // pSetupData must be updated with the current // JobSetup virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
ImplJobSetup* pSetupData ) = 0; virtualvoid DestroyInfoPrinter( SalInfoPrinter* pPrinter ) = 0; virtual std::unique_ptr<SalPrinter> CreatePrinter( SalInfoPrinter* pInfoPrinter ) = 0;
// return true, if the current thread is the main thread virtualbool IsMainThread() const = 0;
/** * Wait for the next event (if bWait) and dispatch it, * includes posted events, and timers. * If bHandleAllCurrentEvents - dispatch multiple posted * user events. Returns true if events were processed.
*/ virtualbool DoYield(bool bWait, bool bHandleAllCurrentEvents) = 0; virtualbool AnyInput( VclInputFlags nType ) = 0;
// callbacks for printer updates virtualvoid updatePrinterUpdate() {}
/// Set the app's (somewhat) magic/main-thread to this one. virtualvoid updateMainThread() {} /// Disconnect that - good for detaching from the JavaVM on Android. virtualvoid releaseMainThread() {}
/// get information about underlying versions virtual OUString getOSVersion() { return u"-"_ustr; }
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.