LibreOffice Module cppcanvas (master) 1
vclfactory.hxx
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_CPPCANVAS_VCLFACTORY_HXX
21#define INCLUDED_CPPCANVAS_VCLFACTORY_HXX
22
23#include <cppcanvas/canvas.hxx>
26#include <cppcanvas/bitmap.hxx>
28
30
31namespace vcl { class Window; }
32class BitmapEx;
33
34class GDIMetaFile;
35
37{
38 class XCanvas;
39 class XBitmapCanvas;
40 class XSpriteCanvas;
41}
42
43/* Definition of VCLFactory class */
44
45namespace cppcanvas
46{
56 {
57 public:
58 static CanvasSharedPtr createCanvas( const css::uno::Reference< css::rendering::XCanvas >& xCanvas );
59 static BitmapCanvasSharedPtr createBitmapCanvas( const css::uno::Reference< css::rendering::XBitmapCanvas >& xCanvas );
60
61 static SpriteCanvasSharedPtr createSpriteCanvas( const vcl::Window& rVCLWindow );
62 static SpriteCanvasSharedPtr createSpriteCanvas( const css::uno::Reference< css::rendering::XSpriteCanvas >& xCanvas );
63
66 static BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::BitmapEx& rBmpEx );
67
73 static RendererSharedPtr createRenderer( const CanvasSharedPtr& rCanvas,
74 const ::GDIMetaFile& rMtf,
75 const Renderer::Parameters& rParms );
76
77 private:
78 VCLFactory() = delete;
79 VCLFactory(const VCLFactory&) = delete;
80 VCLFactory& operator=( const VCLFactory& ) = delete;
81 };
82
83}
84
85#endif // INCLUDED_CPPCANVAS_VCLFACTORY_HXX
86
87/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
The VCLFactory creates Canvas objects for various VCL OutputDevice primitives, such as windows,...
Definition: vclfactory.hxx:56
VCLFactory(const VCLFactory &)=delete
static SpriteCanvasSharedPtr createSpriteCanvas(const css::uno::Reference< css::rendering::XSpriteCanvas > &xCanvas)
VCLFactory & operator=(const VCLFactory &)=delete
#define CPPCANVAS_DLLPUBLIC
std::shared_ptr< ::cppcanvas::Renderer > RendererSharedPtr
Definition: renderer.hxx:135
std::shared_ptr< ::cppcanvas::SpriteCanvas > SpriteCanvasSharedPtr
std::shared_ptr< BitmapCanvas > BitmapCanvasSharedPtr
std::shared_ptr< ::cppcanvas::Bitmap > BitmapSharedPtr
Definition: bitmap.hxx:65
std::shared_ptr< Canvas > CanvasSharedPtr
Parameters for the Renderer.
Definition: renderer.hxx:101