Bump version to 4.3-4
[LibreOffice.git] / sc / inc / optuno.hxx
blobb9c3fec8506774ed98047cb88e8ec5360bc11204
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_SC_INC_OPTUNO_HXX
21 #define INCLUDED_SC_INC_OPTUNO_HXX
23 #include "docuno.hxx"
24 #include "docoptio.hxx"
26 #define PROP_UNO_CALCASSHOWN 1
27 #define PROP_UNO_DEFTABSTOP 2
28 #define PROP_UNO_IGNORECASE 3
29 #define PROP_UNO_ITERENABLED 4
30 #define PROP_UNO_ITERCOUNT 5
31 #define PROP_UNO_ITEREPSILON 6
32 #define PROP_UNO_LOOKUPLABELS 7
33 #define PROP_UNO_MATCHWHOLE 8
34 #define PROP_UNO_NULLDATE 9
35 #define PROP_UNO_SPELLONLINE 10
36 #define PROP_UNO_STANDARDDEC 11
37 #define PROP_UNO_REGEXENABLED 12
40 class ScDocOptionsHelper
42 public:
43 static const SfxItemPropertyMapEntry* GetPropertyMap();
45 static bool setPropertyValue( ScDocOptions& rOptions,
46 const SfxItemPropertyMap& rPropMap,
47 const OUString& aPropertyName,
48 const ::com::sun::star::uno::Any& aValue );
49 static ::com::sun::star::uno::Any getPropertyValue(
50 const ScDocOptions& rOptions,
51 const SfxItemPropertyMap& rPropMap,
52 const OUString& PropertyName );
56 // empty doc object to supply only doc options
58 class ScDocOptionsObj : public ScModelObj
60 private:
61 ScDocOptions aOptions;
63 public:
64 ScDocOptionsObj( const ScDocOptions& rOpt );
65 virtual ~ScDocOptionsObj();
67 // get/setPropertyValue overloaded to used stored options instead of document
69 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
70 const ::com::sun::star::uno::Any& aValue )
71 throw(::com::sun::star::beans::UnknownPropertyException,
72 ::com::sun::star::beans::PropertyVetoException,
73 ::com::sun::star::lang::IllegalArgumentException,
74 ::com::sun::star::lang::WrappedTargetException,
75 ::com::sun::star::uno::RuntimeException,
76 std::exception) SAL_OVERRIDE;
77 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
78 const OUString& PropertyName )
79 throw(::com::sun::star::beans::UnknownPropertyException,
80 ::com::sun::star::lang::WrappedTargetException,
81 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
85 #endif
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */