LibreOffice Module sc (master) 1
viewutil.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#pragma once
20
21#include <address.hxx>
22#include <sal/types.h>
23#include <i18nlangtag/lang.h>
24
25class SfxItemSet;
26class SfxBindings;
27class SvxFontItem;
28class SfxViewShell;
29class SfxViewFrame;
30class ScChangeAction;
32class ScDocument;
33class ScMarkData;
34class ScTabViewShell;
35enum class SvtScriptType : sal_uInt8;
36enum class TransliterationFlags;
37
38
39enum class ScUpdateMode { All, Marks };
40
42{
43public:
44 static void ExecuteCharMap(const SvxFontItem& rOldFont, const ScTabViewShell& rShell);
45
46 static bool IsActionShown( const ScChangeAction& rAction,
47 const ScChangeViewSettings& rSettings,
48 ScDocument& rDocument );
49
50 static void PutItemScript( SfxItemSet& rShellSet, const SfxItemSet& rCoreSet,
51 sal_uInt16 nWhichId, SvtScriptType nScript );
52
53 static LanguageType GetEffLanguage( ScDocument& rDoc, const ScAddress& rPos );
54
55 static TransliterationFlags GetTransliterationType( sal_uInt16 nSlotID );
56
57 static bool HasFiltered( const ScRange& rRange, const ScDocument& rDoc );
60 static bool FitToUnfilteredRows( ScRange & rRange, const ScDocument& rDoc, size_t nRows );
61 static void UnmarkFiltered( ScMarkData& rMark, const ScDocument& rDoc );
62
63 static void HideDisabledSlot( SfxItemSet& rSet, SfxBindings& rBindings, sal_uInt16 nSlotId );
64
66 static bool IsFullScreen( const SfxViewShell& rViewShell );
68 static void SetFullScreen( const SfxViewShell& rViewShell, bool bSet );
69};
70
72{
73private:
82public:
83 ScUpdateRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 );
84 void SetNew( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 );
85 bool GetDiff( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 );
86};
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
Definition: markdata.hxx:43
bool GetDiff(SCCOL &rX1, SCROW &rY1, SCCOL &rX2, SCROW &rY2)
Definition: viewutil.cxx:379
SCROW nOldEndY
Definition: viewutil.hxx:77
SCROW nNewEndY
Definition: viewutil.hxx:81
void SetNew(SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2)
Definition: viewutil.cxx:368
SCCOL nOldStartX
Definition: viewutil.hxx:74
ScUpdateRect(SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2)
Definition: viewutil.cxx:353
SCCOL nOldEndX
Definition: viewutil.hxx:76
SCROW nNewStartY
Definition: viewutil.hxx:79
SCROW nOldStartY
Definition: viewutil.hxx:75
SCCOL nNewStartX
Definition: viewutil.hxx:78
SCCOL nNewEndX
Definition: viewutil.hxx:80
SvtScriptType
#define SC_DLLPUBLIC
Definition: scdllapi.h:27
static SfxItemSet & rSet
TransliterationFlags
unsigned char sal_uInt8
sal_Int16 SCCOL
Definition: types.hxx:21
sal_Int32 SCROW
Definition: types.hxx:17
ScUpdateMode
Definition: viewutil.hxx:39