/* -*- 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 . */ #pragma once #include #include "outdevprovider.hxx" /* Definition of DeviceHelper class */ namespace vclcanvas { class DeviceHelper { public: DeviceHelper(); /// make noncopyable DeviceHelper(const DeviceHelper&) = delete; const DeviceHelper& operator=(const DeviceHelper&) = delete; void init( const OutDevProviderSharedPtr& rOutDev ); /// Dispose all internal references void disposing(); // XWindowGraphicDevice css::geometry::RealSize2D getPhysicalResolution(); css::geometry::RealSize2D getPhysicalSize(); css::uno::Reference< css::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon( const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice, const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > >& points ); css::uno::Reference< css::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon( const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice, const css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > >& points ); css::uno::Reference< css::rendering::XBitmap > createCompatibleBitmap( const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice, const css::geometry::IntegerSize2D& size ); css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileBitmap( const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice, const css::geometry::IntegerSize2D& size ); css::uno::Reference< css::rendering::XBitmap > createCompatibleAlphaBitmap( const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice, const css::geometry::IntegerSize2D& size ); css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileAlphaBitmap( const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice, const css::geometry::IntegerSize2D& size ); css::uno::Any isAccelerated() const; css::uno::Any getDeviceHandle() const; css::uno::Any getSurfaceHandle() const; css::uno::Reference< css::rendering::XColorSpace > const & getColorSpace() const; const OutDevProviderSharedPtr& getOutDev() const { return mpOutDev; } /** called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of current screen. */ void dumpScreenContent() const; private: /// For retrieving device info OutDevProviderSharedPtr mpOutDev; }; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ora/cp-5.3'>distro/collabora/cp-5.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/static
AgeCommit message (Expand)Author
2023-09-18JavaScript uno bindings for WASM with Embind - first cutSarper Akdemir
2023-07-09tdf#151273, tdf#151925: Don’t use QFont text layout by defaultKhaled Hosny
2023-03-23tdf#142978 Remove a11y check dialogSamuel Mehrbrodt
2023-03-23jsdialog: enable data validation dialogSzymon Kłos
2023-02-13Fix typoAndrea Gelmini
2023-02-13Mention that Emscripten 3.1.30 is known to work for COWASMTor Lillqvist
2023-02-13Don't overload the word 'module' unnecessarilyTor Lillqvist
2023-02-06Minor typo fixes and some additional informationTor Lillqvist
2023-02-03Fix typoAndrea Gelmini
2023-02-02Add instructions for when building headless LO core for WASMTor Lillqvist
2022-12-14Update Qt5 build instructions to use Allotropia's pre-patched repoTor Lillqvist
2022-12-13use $(file …) directly instead of gb_var2file when not used as intermediateChristian Lohmaier
2022-12-13gb_var2file: remove now unused chunk-size parameterChristian Lohmaier
2022-11-29Don't build the Qt5 Mandelbrot demos unless we have Qt5Tor Lillqvist
2022-11-14WASM: fix loading writer docs after rebaseBalázs Varga (allotropia)
2022-11-01tdf#142446 follow up: Fix missing ui file crash and a11y ui errorsJim Raykowski
2022-10-14WASM add Calc as optional build result, make it build & runBalazs Varga
2022-09-29tdf#151197: Remove EmojiControlKhaled Hosny
2022-07-07tdf#139953 Apply and Edit Changes - drop first dialog go directly to EditAman Jha
2022-06-20tdf#141026 Put user and computer name into collapsed sectionSiddhant Chaudhary
2022-03-30Fix typoAndrea Gelmini
2022-03-30WASM fix native EH build since Emscripten 3.1.6Jan-Marek Glogowski
2022-01-21Fix typosAndrea Gelmini
2022-01-21Fix typosAndrea Gelmini
2022-01-20WASM update README.wasm.mdJan-Marek Glogowski
2022-01-20WASM re-activate and fix the Chart buildArmin Le Grand (Allotropia)
2022-01-19WASM merge wasm-qt into static moduleJan-Marek Glogowski
2022-01-19WASM add fontconfig data to FS imageJan-Marek Glogowski
2022-01-19WASM create and link the Emscripten FS imageJan-Marek Glogowski
2022-01-19WASM gbuild: add --pre-js dependenciesJan-Marek Glogowski
2022-01-12gbuild: build static LO / link static executablesJan-Marek Glogowski