tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / include / cppcanvas / basegfxfactory.hxx
blob0bd75e4ed66d36e337988a3974e375bf3aad1bdf
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <cppcanvas/canvas.hxx>
23 #include <cppcanvas/polypolygon.hxx>
24 #include <cppcanvas/bitmap.hxx>
25 #include <basegfx/vector/b2isize.hxx>
27 #include <cppcanvas/cppcanvasdllapi.h>
29 namespace basegfx
31 class B2DPolygon;
35 /* Definition of BaseGfxFactory class */
37 namespace cppcanvas
39 /** The BaseGfxFactory creates Canvas objects for various basegfx
40 primitives, such as polygons and bitmaps (not yet
41 implemented).
43 Please note that the objects created for a specific Canvas can
44 only be drawn on exactly that canvas. You have to regenerate
45 them for different canvases.
47 class CPPCANVAS_DLLPUBLIC BaseGfxFactory
49 public:
50 /** Create a polygon from a ::basegfx::B2DPolygon
52 The created polygon initially has the same size in user
53 coordinate space as the source polygon
55 static PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::basegfx::B2DPolygon& rPoly );
57 /** Create an uninitialized bitmap with the given size
59 static BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize );
61 /** Create an uninitialized alpha bitmap with the given size
63 static BitmapSharedPtr createAlphaBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize );
65 private:
66 BaseGfxFactory() = delete;
67 BaseGfxFactory(const BaseGfxFactory&) = delete;
68 BaseGfxFactory& operator=( const BaseGfxFactory& ) = delete;
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */