tdf#48459 sw inline heading: don't apply inside frames or over 120 chars
[LibreOffice.git] / sc / inc / optuno.hxx
blob6e28c6dad6cb780a40ceae609fafc8920d9fb95f
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 #pragma once
22 #include "docuno.hxx"
23 #include "docoptio.hxx"
25 #define PROP_UNO_CALCASSHOWN 1
26 #define PROP_UNO_DEFTABSTOP 2
27 #define PROP_UNO_IGNORECASE 3
28 #define PROP_UNO_ITERENABLED 4
29 #define PROP_UNO_ITERCOUNT 5
30 #define PROP_UNO_ITEREPSILON 6
31 #define PROP_UNO_LOOKUPLABELS 7
32 #define PROP_UNO_MATCHWHOLE 8
33 #define PROP_UNO_NULLDATE 9
34 #define PROP_UNO_STANDARDDEC 10
35 #define PROP_UNO_REGEXENABLED 11
36 #define PROP_UNO_WILDCARDSENABLED 12
38 class ScDocOptionsHelper
40 public:
41 static bool setPropertyValue( ScDocOptions& rOptions,
42 const SfxItemPropertyMap& rPropMap,
43 const OUString& rPropertyName,
44 const css::uno::Any& aValue );
45 static css::uno::Any getPropertyValue(
46 const ScDocOptions& rOptions,
47 const SfxItemPropertyMap& rPropMap,
48 const OUString& rPropertyName );
51 // empty doc object to supply only doc options
53 class ScDocOptionsObj final : public ScModelObj
55 private:
56 ScDocOptions aOptions;
58 public:
59 ScDocOptionsObj( const ScDocOptions& rOpt );
60 virtual ~ScDocOptionsObj() override;
62 // get/setPropertyValue override to used stored options instead of document
64 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
65 const css::uno::Any& aValue ) override;
66 virtual css::uno::Any SAL_CALL getPropertyValue(
67 const OUString& PropertyName ) override;
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */