nss: upgrade to release 3.73
[LibreOffice.git] / sc / inc / inputopt.hxx
blob52811ee93c5c29f5ed765508406ed0e3e6522e4f
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_INPUTOPT_HXX
21 #define INCLUDED_SC_INC_INPUTOPT_HXX
23 #include "scdllapi.h"
24 #include <unotools/configitem.hxx>
26 class ScInputOptions
28 private:
29 sal_uInt16 nMoveDir; // enum ScDirection
30 bool bMoveSelection;
31 bool bEnterEdit;
32 bool bExtendFormat;
33 bool bRangeFinder;
34 bool bExpandRefs;
35 bool mbSortRefUpdate;
36 bool bMarkHeader;
37 bool bUseTabCol;
38 bool bTextWysiwyg;
39 bool bReplCellsWarn;
40 bool bLegacyCellSelection;
41 bool bEnterPasteMode;
43 public:
44 ScInputOptions();
46 void SetDefaults();
48 void SetMoveDir(sal_uInt16 nNew) { nMoveDir = nNew; }
49 sal_uInt16 GetMoveDir() const { return nMoveDir; }
50 void SetMoveSelection(bool bSet) { bMoveSelection = bSet; }
51 bool GetMoveSelection() const { return bMoveSelection; }
52 void SetEnterEdit(bool bSet) { bEnterEdit = bSet; }
53 bool GetEnterEdit() const { return bEnterEdit; }
54 void SetExtendFormat(bool bSet) { bExtendFormat = bSet; }
55 bool GetExtendFormat() const { return bExtendFormat; }
56 void SetRangeFinder(bool bSet) { bRangeFinder = bSet; }
57 bool GetRangeFinder() const { return bRangeFinder; }
58 void SetExpandRefs(bool bSet) { bExpandRefs = bSet; }
59 bool GetExpandRefs() const { return bExpandRefs; }
60 void SetSortRefUpdate(bool bSet) { mbSortRefUpdate = bSet; }
61 bool GetSortRefUpdate() const { return mbSortRefUpdate; }
62 void SetMarkHeader(bool bSet) { bMarkHeader = bSet; }
63 bool GetMarkHeader() const { return bMarkHeader; }
64 void SetUseTabCol(bool bSet) { bUseTabCol = bSet; }
65 bool GetUseTabCol() const { return bUseTabCol; }
66 void SetTextWysiwyg(bool bSet) { bTextWysiwyg = bSet; }
67 bool GetTextWysiwyg() const { return bTextWysiwyg; }
68 void SetReplaceCellsWarn(bool bSet) { bReplCellsWarn = bSet; }
69 bool GetReplaceCellsWarn() const { return bReplCellsWarn; }
70 void SetLegacyCellSelection(bool bSet) { bLegacyCellSelection = bSet; }
71 bool GetLegacyCellSelection() const { return bLegacyCellSelection; }
72 void SetEnterPasteMode(bool bSet) { bEnterPasteMode = bSet; }
73 bool GetEnterPasteMode() const { return bEnterPasteMode; }
76 // CfgItem for input options
78 class ScInputCfg final : public ScInputOptions,
79 public utl::ConfigItem
81 static css::uno::Sequence<OUString> GetPropertyNames();
83 virtual void ImplCommit() override;
85 public:
86 ScInputCfg();
88 void SetOptions( const ScInputOptions& rNew );
89 void OptionsChanged(); // after direct access to SetOptions base class
91 virtual void Notify( const css::uno::Sequence<OUString>& aPropertyNames ) override;
94 #endif
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */