LibreOffice Module sc (master)
1
sc
inc
inputopt.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
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/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
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 .
18
*/
19
20
#pragma once
21
22
#include <
unotools/configitem.hxx
>
23
24
class
ScInputOptions
25
{
26
private
:
27
sal_uInt16
nMoveDir
;
// enum ScDirection
28
bool
bMoveSelection
;
29
bool
bEnterEdit
;
30
bool
bExtendFormat
;
31
bool
bRangeFinder
;
32
bool
bExpandRefs
;
33
bool
mbSortRefUpdate
;
34
bool
bMarkHeader
;
35
bool
bUseTabCol
;
36
bool
bTextWysiwyg
;
37
bool
bReplCellsWarn
;
38
bool
bLegacyCellSelection
;
39
bool
bEnterPasteMode
;
40
41
public
:
42
ScInputOptions
();
43
44
void
SetMoveDir
(sal_uInt16 nNew) {
nMoveDir
= nNew; }
45
sal_uInt16
GetMoveDir
()
const
{
return
nMoveDir
; }
46
void
SetMoveSelection
(
bool
bSet) {
bMoveSelection
= bSet; }
47
bool
GetMoveSelection
()
const
{
return
bMoveSelection
; }
48
void
SetEnterEdit
(
bool
bSet) {
bEnterEdit
= bSet; }
49
bool
GetEnterEdit
()
const
{
return
bEnterEdit
; }
50
void
SetExtendFormat
(
bool
bSet) {
bExtendFormat
= bSet; }
51
bool
GetExtendFormat
()
const
{
return
bExtendFormat
; }
52
void
SetRangeFinder
(
bool
bSet) {
bRangeFinder
= bSet; }
53
bool
GetRangeFinder
()
const
{
return
bRangeFinder
; }
54
void
SetExpandRefs
(
bool
bSet) {
bExpandRefs
= bSet; }
55
bool
GetExpandRefs
()
const
{
return
bExpandRefs
; }
56
void
SetSortRefUpdate
(
bool
bSet) {
mbSortRefUpdate
= bSet; }
57
bool
GetSortRefUpdate
()
const
{
return
mbSortRefUpdate
; }
58
void
SetMarkHeader
(
bool
bSet) {
bMarkHeader
= bSet; }
59
bool
GetMarkHeader
()
const
{
return
bMarkHeader
; }
60
void
SetUseTabCol
(
bool
bSet) {
bUseTabCol
= bSet; }
61
bool
GetUseTabCol
()
const
{
return
bUseTabCol
; }
62
void
SetTextWysiwyg
(
bool
bSet) {
bTextWysiwyg
= bSet; }
63
bool
GetTextWysiwyg
()
const
{
return
bTextWysiwyg
; }
64
void
SetReplaceCellsWarn
(
bool
bSet) {
bReplCellsWarn
= bSet; }
65
bool
GetReplaceCellsWarn
()
const
{
return
bReplCellsWarn
; }
66
void
SetLegacyCellSelection
(
bool
bSet) {
bLegacyCellSelection
= bSet; }
67
bool
GetLegacyCellSelection
()
const
{
return
bLegacyCellSelection
; }
68
void
SetEnterPasteMode
(
bool
bSet) {
bEnterPasteMode
= bSet; }
69
bool
GetEnterPasteMode
()
const
{
return
bEnterPasteMode
; }
70
};
71
72
// CfgItem for input options
73
74
class
ScInputCfg
final :
private
ScInputOptions
,
75
public
utl::ConfigItem
76
{
77
static
css::uno::Sequence<OUString>
GetPropertyNames
();
78
void
ReadCfg
();
79
virtual
void
ImplCommit
()
override
;
80
81
public
:
82
ScInputCfg
();
83
84
const
ScInputOptions
&
GetOptions
()
const
{
return
*
this
; }
85
void
SetOptions
(
const
ScInputOptions
& rNew );
86
87
virtual
void
Notify
(
const
css::uno::Sequence<OUString>& aPropertyNames )
override
;
88
};
89
90
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScInputCfg
Definition:
inputopt.hxx:76
ScInputCfg::GetOptions
const ScInputOptions & GetOptions() const
Definition:
inputopt.hxx:84
ScInputCfg::ImplCommit
virtual void ImplCommit() override
Definition:
inputopt.cxx:124
ScInputCfg::ScInputCfg
ScInputCfg()
Definition:
inputopt.cxx:82
ScInputCfg::ReadCfg
void ReadCfg()
Definition:
inputopt.cxx:90
ScInputCfg::SetOptions
void SetOptions(const ScInputOptions &rNew)
Definition:
inputopt.cxx:150
ScInputCfg::Notify
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
Definition:
inputopt.cxx:145
ScInputCfg::GetPropertyNames
static css::uno::Sequence< OUString > GetPropertyNames()
Definition:
inputopt.cxx:66
ScInputOptions
Definition:
inputopt.hxx:25
ScInputOptions::SetTextWysiwyg
void SetTextWysiwyg(bool bSet)
Definition:
inputopt.hxx:62
ScInputOptions::ScInputOptions
ScInputOptions()
Definition:
inputopt.cxx:32
ScInputOptions::GetMoveDir
sal_uInt16 GetMoveDir() const
Definition:
inputopt.hxx:45
ScInputOptions::SetExpandRefs
void SetExpandRefs(bool bSet)
Definition:
inputopt.hxx:54
ScInputOptions::bUseTabCol
bool bUseTabCol
Definition:
inputopt.hxx:35
ScInputOptions::bMoveSelection
bool bMoveSelection
Definition:
inputopt.hxx:28
ScInputOptions::bExtendFormat
bool bExtendFormat
Definition:
inputopt.hxx:30
ScInputOptions::SetEnterEdit
void SetEnterEdit(bool bSet)
Definition:
inputopt.hxx:48
ScInputOptions::SetExtendFormat
void SetExtendFormat(bool bSet)
Definition:
inputopt.hxx:50
ScInputOptions::GetUseTabCol
bool GetUseTabCol() const
Definition:
inputopt.hxx:61
ScInputOptions::SetMarkHeader
void SetMarkHeader(bool bSet)
Definition:
inputopt.hxx:58
ScInputOptions::bEnterEdit
bool bEnterEdit
Definition:
inputopt.hxx:29
ScInputOptions::nMoveDir
sal_uInt16 nMoveDir
Definition:
inputopt.hxx:27
ScInputOptions::SetMoveDir
void SetMoveDir(sal_uInt16 nNew)
Definition:
inputopt.hxx:44
ScInputOptions::GetTextWysiwyg
bool GetTextWysiwyg() const
Definition:
inputopt.hxx:63
ScInputOptions::GetSortRefUpdate
bool GetSortRefUpdate() const
Definition:
inputopt.hxx:57
ScInputOptions::bExpandRefs
bool bExpandRefs
Definition:
inputopt.hxx:32
ScInputOptions::SetRangeFinder
void SetRangeFinder(bool bSet)
Definition:
inputopt.hxx:52
ScInputOptions::bEnterPasteMode
bool bEnterPasteMode
Definition:
inputopt.hxx:39
ScInputOptions::GetMarkHeader
bool GetMarkHeader() const
Definition:
inputopt.hxx:59
ScInputOptions::SetUseTabCol
void SetUseTabCol(bool bSet)
Definition:
inputopt.hxx:60
ScInputOptions::bRangeFinder
bool bRangeFinder
Definition:
inputopt.hxx:31
ScInputOptions::SetReplaceCellsWarn
void SetReplaceCellsWarn(bool bSet)
Definition:
inputopt.hxx:64
ScInputOptions::bMarkHeader
bool bMarkHeader
Definition:
inputopt.hxx:34
ScInputOptions::SetMoveSelection
void SetMoveSelection(bool bSet)
Definition:
inputopt.hxx:46
ScInputOptions::GetEnterEdit
bool GetEnterEdit() const
Definition:
inputopt.hxx:49
ScInputOptions::GetReplaceCellsWarn
bool GetReplaceCellsWarn() const
Definition:
inputopt.hxx:65
ScInputOptions::bTextWysiwyg
bool bTextWysiwyg
Definition:
inputopt.hxx:36
ScInputOptions::SetSortRefUpdate
void SetSortRefUpdate(bool bSet)
Definition:
inputopt.hxx:56
ScInputOptions::bReplCellsWarn
bool bReplCellsWarn
Definition:
inputopt.hxx:37
ScInputOptions::bLegacyCellSelection
bool bLegacyCellSelection
Definition:
inputopt.hxx:38
ScInputOptions::GetLegacyCellSelection
bool GetLegacyCellSelection() const
Definition:
inputopt.hxx:67
ScInputOptions::SetEnterPasteMode
void SetEnterPasteMode(bool bSet)
Definition:
inputopt.hxx:68
ScInputOptions::GetExtendFormat
bool GetExtendFormat() const
Definition:
inputopt.hxx:51
ScInputOptions::GetRangeFinder
bool GetRangeFinder() const
Definition:
inputopt.hxx:53
ScInputOptions::SetLegacyCellSelection
void SetLegacyCellSelection(bool bSet)
Definition:
inputopt.hxx:66
ScInputOptions::GetExpandRefs
bool GetExpandRefs() const
Definition:
inputopt.hxx:55
ScInputOptions::GetEnterPasteMode
bool GetEnterPasteMode() const
Definition:
inputopt.hxx:69
ScInputOptions::mbSortRefUpdate
bool mbSortRefUpdate
Definition:
inputopt.hxx:33
ScInputOptions::GetMoveSelection
bool GetMoveSelection() const
Definition:
inputopt.hxx:47
utl::ConfigItem
configitem.hxx
Generated on Sun Jul 30 2023 04:27:46 for LibreOffice Module sc (master) by
1.9.3