Branch data Line data Source code
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_SDR_PRIMITIVE2D_PRIMITIVEFACTORY2D_HXX
21 : : #define INCLUDED_SDR_PRIMITIVE2D_PRIMITIVEFACTORY2D_HXX
22 : :
23 : : #include <com/sun/star/graphic/XPrimitiveFactory2D.hpp>
24 : : #include <cppuhelper/compbase1.hxx>
25 : : #include <comphelper/broadcasthelper.hxx>
26 : :
27 : : #include <svx/svxdllapi.h>
28 : :
29 : : //////////////////////////////////////////////////////////////////////////////
30 : : // UNO API helper methods
31 : :
32 : : namespace drawinglayer
33 : : {
34 : : namespace primitive2d
35 : : {
36 : : SVX_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL XPrimitiveFactory2DProvider_createInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr) throw( ::com::sun::star::uno::Exception );
37 : : } // end of namespace primitive2d
38 : : } // end of namespace drawinglayer
39 : :
40 : : //////////////////////////////////////////////////////////////////////////////
41 : : // PrimitiveFactory2D class
42 : :
43 : : namespace drawinglayer
44 : : {
45 : : namespace primitive2d
46 : : {
47 : : // typedef for PrimitiveFactory2DImplBase
48 : : typedef cppu::WeakComponentImplHelper1< ::com::sun::star::graphic::XPrimitiveFactory2D > PrimitiveFactory2DImplBase;
49 : :
50 : : // base class for C++ implementation of com::sun::star::graphic::XPrimitiveFactory2D
51 [ # # ][ # # ]: 0 : class PrimitiveFactory2D
52 : : : protected comphelper::OBaseMutex,
53 : : public PrimitiveFactory2DImplBase
54 : : {
55 : : private:
56 : : protected:
57 : : public:
58 : : // constructor
59 : : PrimitiveFactory2D();
60 : :
61 : : // Methods from XPrimitiveFactory2D
62 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XPrimitive2D > > SAL_CALL createPrimitivesFromXShape( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aParms ) throw (::com::sun::star::uno::RuntimeException);
63 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XPrimitive2D > > SAL_CALL createPrimitivesFromXDrawPage( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xDrawPage, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aParms ) throw (::com::sun::star::uno::RuntimeException);
64 : :
65 : : // UNO API helpers
66 : : SVX_DLLPUBLIC static rtl::OUString getImplementationName_Static();
67 : : SVX_DLLPUBLIC static com::sun::star::uno::Sequence< rtl::OUString > getSupportedServiceNames_Static();
68 : : };
69 : : } // end of namespace primitive2d
70 : : } // end of namespace drawinglayer
71 : :
72 : : //////////////////////////////////////////////////////////////////////////////
73 : :
74 : : #endif //INCLUDED_SDR_PRIMITIVE2D_PRIMITIVEFACTORY2D_HXX
75 : :
76 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|