/* -*- 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 . */ #ifndef INCLUDED_CPPCANVAS_BASEGFXFACTORY_HXX #define INCLUDED_CPPCANVAS_BASEGFXFACTORY_HXX #include #include #include #include #include namespace basegfx { class B2DPolygon; } /* Definition of BaseGfxFactory class */ namespace cppcanvas { /** The BaseGfxFactory creates Canvas objects for various basegfx primitives, such as polygons and bitmaps (not yet implemented). Please note that the objects created for a specific Canvas can only be drawn on exactly that canvas. You have to regenerate them for different canvases. */ class CPPCANVAS_DLLPUBLIC BaseGfxFactory { public: /** Create a polygon from a ::basegfx::B2DPolygon The created polygon initially has the same size in user coordinate space as the source polygon */ static PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::basegfx::B2DPolygon& rPoly ); /** Create an uninitialized bitmap with the given size */ static BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize ); /** Create an uninitialized alpha bitmap with the given size */ static BitmapSharedPtr createAlphaBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize ); private: BaseGfxFactory() = delete; BaseGfxFactory(const BaseGfxFactory&) = delete; BaseGfxFactory& operator=( const BaseGfxFactory& ) = delete; }; } #endif // INCLUDED_CPPCANVAS_BASEGFXFACTORY_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2021-01-09fix coverity parse errorsCaolán McNamara
2020-12-26New loplugin:stringliteralvarStephan Bergmann
2020-12-11Adapt the remaining OUString functions to std string_viewStephan Bergmann
2020-11-13Make bridgetest exercise parameter passing in the C++/UNO bridge harderTor Lillqvist
2020-11-12Cosmetic change to make it easier to see which parameter is the nthTor Lillqvist
2020-10-16fix some *printf which are using "%l" ie. long specifiersNoel
2020-09-02Fix typo in codeAndrea Gelmini
2020-08-14loplugin:simplifybool moreNoel Grandin
2020-07-02Upcoming improved loplugin:staticanonymous -> redundantstatic: testtoolsStephan Bergmann
2020-06-05Upcoming loplugin:elidestringvar: testtoolsStephan Bergmann
2020-05-18use std::experimental::source_location in uno::ExceptionNoel Grandin
2020-05-10compact namespace in testtools..toolkitNoel Grandin
2020-04-27Make upcasting css::uno::Reference ctor require complete typesStephan Bergmann
2020-04-19loplugin:buriedassign in variousNoel Grandin
2020-04-07new loplugin:unusedvariableplusNoel Grandin
2020-03-13Revert "loplugin:constfields in sw"Noel Grandin
2020-02-17Remove never-executed else-blockMuhammet Kara
2020-01-31clang-tidy modernize-concat-nested-namespaceNoel Grandin
2020-01-13tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctorMesut Çifci
2019-12-23sal_Char->char in test..testtoolsNoel Grandin
2019-12-10Fix IdentationError and mixture of spaces and tabsJens Carl
2019-11-22Extend loplugin:external to warn about classesStephan Bergmann
2019-08-20Fix typosAndrea Gelmini
2019-08-17tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctorJulien Nabet
2019-08-12Fix typosAndrea Gelmini
2019-07-31Fix typosAndrea Gelmini
2019-07-31Improved loplugin:stringconstant (now that GCC 7 supports it): testtoolsStephan Bergmann
2019-07-30Fix typo in codeAndrea Gelmini
2019-05-02Use hasElements to check Sequence emptiness in [t-u]*Arkadiy Illarionov