Impress Remote 1.0.5, tag sdremote-1.0.5
[LibreOffice.git] / sc / inc / inputopt.hxx
blobc19ca7354aed09cacb24235381508235e169cb75
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 SC_INPUTOPT_HXX
21 #define SC_INPUTOPT_HXX
24 #include <unotools/configitem.hxx>
25 #include <tools/solar.h>
28 class ScInputOptions
30 private:
31 sal_uInt16 nMoveDir; // enum ScDirection
32 sal_Bool bMoveSelection;
33 sal_Bool bEnterEdit;
34 sal_Bool bExtendFormat;
35 sal_Bool bRangeFinder;
36 sal_Bool bExpandRefs;
37 sal_Bool bMarkHeader;
38 sal_Bool bUseTabCol;
39 sal_Bool bTextWysiwyg;
40 sal_Bool bReplCellsWarn;
42 public:
43 ScInputOptions();
44 ScInputOptions( const ScInputOptions& rCpy );
45 ~ScInputOptions();
47 void SetDefaults();
49 void SetMoveDir(sal_uInt16 nNew) { nMoveDir = nNew; }
50 sal_uInt16 GetMoveDir() const { return nMoveDir; }
51 void SetMoveSelection(sal_Bool bSet) { bMoveSelection = bSet; }
52 sal_Bool GetMoveSelection() const { return bMoveSelection; }
53 void SetEnterEdit(sal_Bool bSet) { bEnterEdit = bSet; }
54 sal_Bool GetEnterEdit() const { return bEnterEdit; }
55 void SetExtendFormat(sal_Bool bSet) { bExtendFormat = bSet; }
56 sal_Bool GetExtendFormat() const { return bExtendFormat; }
57 void SetRangeFinder(sal_Bool bSet) { bRangeFinder = bSet; }
58 sal_Bool GetRangeFinder() const { return bRangeFinder; }
59 void SetExpandRefs(sal_Bool bSet) { bExpandRefs = bSet; }
60 sal_Bool GetExpandRefs() const { return bExpandRefs; }
61 void SetMarkHeader(sal_Bool bSet) { bMarkHeader = bSet; }
62 sal_Bool GetMarkHeader() const { return bMarkHeader; }
63 void SetUseTabCol(sal_Bool bSet) { bUseTabCol = bSet; }
64 sal_Bool GetUseTabCol() const { return bUseTabCol; }
65 void SetTextWysiwyg(sal_Bool bSet) { bTextWysiwyg = bSet; }
66 sal_Bool GetTextWysiwyg() const { return bTextWysiwyg; }
67 void SetReplaceCellsWarn(sal_Bool bSet) { bReplCellsWarn = bSet; }
68 sal_Bool GetReplaceCellsWarn() const { return bReplCellsWarn; }
70 const ScInputOptions& operator= ( const ScInputOptions& rOpt );
74 //==================================================================
75 // CfgItem for input options
76 //==================================================================
78 class ScInputCfg : public ScInputOptions,
79 public utl::ConfigItem
81 com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
83 public:
84 ScInputCfg();
86 void SetOptions( const ScInputOptions& rNew );
87 void OptionsChanged(); // after direct access to SetOptions base class
89 virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames );
90 virtual void Commit();
94 #endif
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */