Branch libreoffice-5-0-4
[LibreOffice.git] / oox / inc / services.hxx
blobab63321fce915ea22425531c2b9e8f07e8486087
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_OOX_INC_SERVICES_HXX
21 #define INCLUDED_OOX_INC_SERVICES_HXX
23 #include <sal/config.h>
25 #define DECLARE_FUNCTIONS( className ) \
26 extern OUString SAL_CALL className##_getImplementationName(); \
27 extern css::uno::Sequence< OUString > SAL_CALL className##_getSupportedServiceNames(); \
28 extern css::uno::Reference< css::uno::XInterface > SAL_CALL className##_createInstance( \
29 const css::uno::Reference< css::uno::XComponentContext >& rxContext ) throw (css::uno::Exception)
31 namespace oox {
32 namespace core { DECLARE_FUNCTIONS( FastTokenHandler ); }
33 namespace core { DECLARE_FUNCTIONS( FilterDetect ); }
34 namespace docprop { DECLARE_FUNCTIONS( DocumentPropertiesImport ); }
35 namespace ppt { DECLARE_FUNCTIONS( PowerPointImport ); }
36 namespace ppt { DECLARE_FUNCTIONS( QuickDiagrammingImport ); }
37 namespace ppt { DECLARE_FUNCTIONS( QuickDiagrammingLayout ); }
38 namespace shape { DECLARE_FUNCTIONS( ShapeContextHandler ); }
41 #undef DECLARE_FUNCTIONS
43 #endif
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */