bump product version to 4.2.0.1
[LibreOffice.git] / include / formula / FormulaOpCodeMapperObj.hxx
blobe415acb921dcbe2c48752fa9541ed01792ed31f5
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_FORMULA_FORMULAOPCODEMAPPEROBJ_HXX
21 #define INCLUDED_FORMULA_FORMULAOPCODEMAPPEROBJ_HXX
23 #include <formula/formuladllapi.h>
24 #include <cppuhelper/implbase2.hxx>
25 #include <com/sun/star/sheet/XFormulaOpCodeMapper.hpp>
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/uno/XComponentContext.hpp>
28 #include <memory>
29 #include <formula/FormulaCompiler.hxx>
32 namespace formula
35 class FORMULA_DLLPUBLIC FormulaOpCodeMapperObj : public ::cppu::WeakImplHelper2<
36 ::com::sun::star::sheet::XFormulaOpCodeMapper,
37 ::com::sun::star::lang::XServiceInfo >
39 SAL_WNODEPRECATED_DECLARATIONS_PUSH
40 ::std::auto_ptr<FormulaCompiler> m_pCompiler;
41 SAL_WNODEPRECATED_DECLARATIONS_POP
42 public:
43 static OUString getImplementationName_Static();
44 static ::com::sun::star::uno::Sequence< OUString> getSupportedServiceNames_Static();
45 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > create(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _xContext);
47 protected:
48 SAL_WNODEPRECATED_DECLARATIONS_PUSH
49 FormulaOpCodeMapperObj(::std::auto_ptr<FormulaCompiler> _pCompiler);
50 SAL_WNODEPRECATED_DECLARATIONS_POP
51 virtual ~FormulaOpCodeMapperObj();
53 private:
54 // XFormulaOpCodeMapper
55 // Attributes
56 virtual ::sal_Int32 SAL_CALL getOpCodeExternal() throw (::com::sun::star::uno::RuntimeException);
57 virtual ::sal_Int32 SAL_CALL getOpCodeUnknown() throw (::com::sun::star::uno::RuntimeException);
58 // Methods
59 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaToken > SAL_CALL getMappings(
60 const ::com::sun::star::uno::Sequence< OUString >& rNames,
61 sal_Int32 nLanguage )
62 throw ( ::com::sun::star::lang::IllegalArgumentException,
63 ::com::sun::star::uno::RuntimeException);
64 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaOpCodeMapEntry > SAL_CALL getAvailableMappings(
65 sal_Int32 nLanguage, sal_Int32 nGroups )
66 throw ( ::com::sun::star::lang::IllegalArgumentException,
67 ::com::sun::star::uno::RuntimeException);
69 // XServiceInfo
70 virtual OUString SAL_CALL getImplementationName()
71 throw(::com::sun::star::uno::RuntimeException);
72 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
73 throw(::com::sun::star::uno::RuntimeException);
74 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
75 throw(::com::sun::star::uno::RuntimeException);
78 // =============================================================================
79 } // formula
80 // =============================================================================
82 #endif // INCLUDED_FORMULA_FORMULAOPCODEMAPPEROBJ_HXX
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */