fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / svx / sdr / primitive2d / primitiveFactory2d.hxx
blobd602d28d4f5c57de3f12486a501c7db3f4267db9
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 #ifndef INCLUDED_SDR_PRIMITIVE2D_PRIMITIVEFACTORY2D_HXX
21 #define INCLUDED_SDR_PRIMITIVE2D_PRIMITIVEFACTORY2D_HXX
23 #include <com/sun/star/graphic/XPrimitiveFactory2D.hpp>
24 #include <cppuhelper/compbase1.hxx>
25 #include <comphelper/broadcasthelper.hxx>
27 #include <svx/svxdllapi.h>
29 //////////////////////////////////////////////////////////////////////////////
30 // UNO API helper methods
32 namespace drawinglayer
34 namespace primitive2d
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
40 //////////////////////////////////////////////////////////////////////////////
41 // PrimitiveFactory2D class
43 namespace drawinglayer
45 namespace primitive2d
47 // typedef for PrimitiveFactory2DImplBase
48 typedef cppu::WeakComponentImplHelper1< ::com::sun::star::graphic::XPrimitiveFactory2D > PrimitiveFactory2DImplBase;
50 // base class for C++ implementation of com::sun::star::graphic::XPrimitiveFactory2D
51 class PrimitiveFactory2D
52 : protected comphelper::OBaseMutex,
53 public PrimitiveFactory2DImplBase
55 private:
56 protected:
57 public:
58 // constructor
59 PrimitiveFactory2D();
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);
65 // UNO API helpers
66 SVX_DLLPUBLIC static OUString getImplementationName_Static();
67 SVX_DLLPUBLIC static com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static();
69 } // end of namespace primitive2d
70 } // end of namespace drawinglayer
72 //////////////////////////////////////////////////////////////////////////////
74 #endif //INCLUDED_SDR_PRIMITIVE2D_PRIMITIVEFACTORY2D_HXX
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */