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 #ifndef INCLUDED_SC_SOURCE_UI_INC_VIEWUTIL_HXX
20 #define INCLUDED_SC_SOURCE_UI_INC_VIEWUTIL_HXX
21 
22 #include <address.hxx>
23 #include <sal/types.h>
24 #include <i18nlangtag/lang.h>
25 
26 class SfxItemSet;
27 class SfxBindings;
28 class SvxFontItem;
29 class SfxViewShell;
30 class SfxViewFrame;
31 class ScChangeAction;
33 class ScDocument;
34 class ScMarkData;
35 enum class SvtScriptType;
36 enum class TransliterationFlags;
37 
38 
39 enum class ScUpdateMode { All, Marks };
40 
42 {
43 public:
44  static void ExecuteCharMap( const SvxFontItem& rOldFont,
45  SfxViewFrame& rFrame );
46 
47  static bool IsActionShown( const ScChangeAction& rAction,
48  const ScChangeViewSettings& rSettings,
49  ScDocument& rDocument );
50 
51  static void PutItemScript( SfxItemSet& rShellSet, const SfxItemSet& rCoreSet,
52  sal_uInt16 nWhichId, SvtScriptType nScript );
53 
54  static LanguageType GetEffLanguage( ScDocument* pDoc, const ScAddress& rPos );
55 
56  static TransliterationFlags GetTransliterationType( sal_uInt16 nSlotID );
57 
58  static bool HasFiltered( const ScRange& rRange, const ScDocument* pDoc );
61  static bool FitToUnfilteredRows( ScRange & rRange, const ScDocument * pDoc, size_t nRows );
62  static void UnmarkFiltered( ScMarkData& rMark, const ScDocument* pDoc );
63 
64  static void HideDisabledSlot( SfxItemSet& rSet, SfxBindings& rBindings, sal_uInt16 nSlotId );
65 
67  static bool IsFullScreen( const SfxViewShell& rViewShell );
69  static void SetFullScreen( const SfxViewShell& rViewShell, bool bSet );
70 };
71 
73 {
74 private:
83 public:
84  ScUpdateRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 );
85  void SetNew( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 );
86  bool GetDiff( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 );
87 };
88 
89 #endif
90 
91 /* 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
ScUpdateRect(SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2)
Definition: viewutil.cxx:354
SCCOL nOldStartX
Definition: viewutil.hxx:75
SCROW nNewStartY
Definition: viewutil.hxx:80
SCROW nOldStartY
Definition: viewutil.hxx:76
SCCOL nOldEndX
Definition: viewutil.hxx:77
SCROW nOldEndY
Definition: viewutil.hxx:78
void SetNew(SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2)
Definition: viewutil.cxx:369
TransliterationFlags
SvtScriptType
bool GetDiff(SCCOL &rX1, SCROW &rY1, SCCOL &rX2, SCROW &rY2)
Definition: viewutil.cxx:380
sal_Int16 SCCOL
Definition: types.hxx:22
SCCOL nNewStartX
Definition: viewutil.hxx:79
sal_Int32 SCROW
Definition: types.hxx:18
ScUpdateMode
Definition: viewutil.hxx:39
SCROW nNewEndY
Definition: viewutil.hxx:82
SCCOL nNewEndX
Definition: viewutil.hxx:81
#define SC_DLLPUBLIC
Definition: scdllapi.h:28