LibreOffice Module vcl (master)  1
UnoGraphic.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_VCL_SOURCE_GRAPHIC_GRAPHIC_HXX
21 #define INCLUDED_VCL_SOURCE_GRAPHIC_GRAPHIC_HXX
22 
23 #include <com/sun/star/graphic/XGraphic.hpp>
24 #include <com/sun/star/lang/XUnoTunnel.hpp>
25 #include <com/sun/star/awt/XBitmap.hpp>
26 
29 
30 #include <vcl/graph.hxx>
31 
32 namespace unographic {
33 
34 class Graphic : public css::graphic::XGraphic,
35  public css::awt::XBitmap,
36  public css::lang::XUnoTunnel,
39 {
40 public:
41  Graphic();
42  virtual ~Graphic() throw() override;
43 
44  using ::unographic::GraphicDescriptor::init;
45  void init( const ::Graphic& rGraphic ) throw();
46 
47 protected:
48 
49  // XInterface
50  virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
51  virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
52  virtual void SAL_CALL acquire() throw() override;
53  virtual void SAL_CALL release() throw() override;
54 
55  // XServiceInfo
56  virtual OUString SAL_CALL getImplementationName() override;
57  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
58  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
59 
60  // XTypeProvider
61  virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
62  virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
63 
64  // XGraphic
65  virtual ::sal_Int8 SAL_CALL getType( ) override;
66 
67  // XBitmap
68  virtual css::awt::Size SAL_CALL getSize( ) override;
69  virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL getDIB( ) override;
70  virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL getMaskDIB( ) override;
71 
72  // XUnoTunnel
73  virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rId ) override;
74 
75 private:
76 
78 };
79 
80 }
81 
82 #endif
83 
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual OUString SAL_CALL getImplementationName() override
Definition: UnoGraphic.cxx:86
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: UnoGraphic.cxx:91
virtual void SAL_CALL release() override
Definition: UnoGraphic.cxx:81
virtual ~Graphic() override
Definition: UnoGraphic.cxx:41
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: UnoGraphic.cxx:96
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL getDIB() override
Definition: UnoGraphic.cxx:150
virtual sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &rId) override
Definition: UnoGraphic.cxx:184
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: UnoGraphic.cxx:109
unsigned char sal_Bool
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: UnoGraphic.cxx:118
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL getMaskDIB() override
Definition: UnoGraphic.cxx:167
virtual css::awt::Size SAL_CALL getSize() override
Definition: UnoGraphic.cxx:138
void init(const ::Graphic &rGraphic)
Definition: UnoGraphic.cxx:45
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Definition: UnoGraphic.cxx:67
virtual void SAL_CALL acquire() override
Definition: UnoGraphic.cxx:75
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &rType) override
Definition: UnoGraphic.cxx:52
virtual ::sal_Int8 SAL_CALL getType() override
Definition: UnoGraphic.cxx:123