LibreOffice Module sc (master) 1
ViewSettingsSequenceDefines.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 <rtl/ustring.hxx>
23
24// this are the defines for the position of the settings in the
25// ViewSettingsSequence
26
27#define SC_VIEWSETTINGS_COUNT 26
28
29#define SC_VIEW_ID 0
30#define SC_TABLE_VIEWSETTINGS 1
31#define SC_ACTIVE_TABLE 2
32#define SC_HORIZONTAL_SCROLL_BAR_WIDTH 3
33#define SC_ZOOM_TYPE 4
34#define SC_ZOOM_VALUE 5
35#define SC_PAGE_VIEW_ZOOM_VALUE 6
36#define SC_PAGE_BREAK_PREVIEW 7
37#define SC_SHOWZERO 8
38#define SC_SHOWNOTES 9
39#define SC_SHOWFORMULASMARKS 10
40#define SC_SHOWGRID 11
41#define SC_GRIDCOLOR 12
42#define SC_SHOWPAGEBR 13
43#define SC_COLROWHDR 14
44#define SC_SHEETTABS 15
45#define SC_OUTLSYMB 16
46#define SC_VALUE_HIGHLIGHTING 17
47#define SC_SNAPTORASTER 18
48#define SC_RASTERVIS 19
49#define SC_RASTERRESX 20
50#define SC_RASTERRESY 21
51#define SC_RASTERSUBX 22
52#define SC_RASTERSUBY 23
53#define SC_RASTERSYNC 24
54#define SC_FORMULA_BAR_HEIGHT 25
55
56// this are the defines for the position of the settings in the
57// TableViewSettingsSequence
58
59#define SC_TABLE_VIEWSETTINGS_COUNT 16
60
61#define SC_CURSOR_X 0
62#define SC_CURSOR_Y 1
63#define SC_HORIZONTAL_SPLIT_MODE 2
64#define SC_VERTICAL_SPLIT_MODE 3
65#define SC_HORIZONTAL_SPLIT_POSITION 4
66#define SC_VERTICAL_SPLIT_POSITION 5
67#define SC_ACTIVE_SPLIT_RANGE 6
68#define SC_POSITION_LEFT 7
69#define SC_POSITION_RIGHT 8
70#define SC_POSITION_TOP 9
71#define SC_POSITION_BOTTOM 10
72#define SC_TABLE_ZOOM_TYPE 11
73#define SC_TABLE_ZOOM_VALUE 12
74#define SC_TABLE_PAGE_VIEW_ZOOM_VALUE 13
75#define SC_FORMULA_BAR_HEIGHT_VALUE 14
76#define SC_TABLE_SHOWGRID 15
77
78inline constexpr OUStringLiteral SC_CURSORPOSITIONX = u"CursorPositionX";
79inline constexpr OUStringLiteral SC_CURSORPOSITIONY = u"CursorPositionY";
80inline constexpr OUStringLiteral SC_HORIZONTALSPLITMODE = u"HorizontalSplitMode";
81inline constexpr OUStringLiteral SC_VERTICALSPLITMODE = u"VerticalSplitMode";
82inline constexpr OUStringLiteral SC_HORIZONTALSPLITPOSITION = u"HorizontalSplitPosition";
83inline constexpr OUStringLiteral SC_VERTICALSPLITPOSITION = u"VerticalSplitPosition";
84#define SC_HORIZONTALSPLITPOSITION_TWIPS "HorizontalSplitPositionTwips"
85#define SC_VERTICALSPLITPOSITION_TWIPS "VerticalSplitPositionTwips"
86inline constexpr OUStringLiteral SC_ACTIVESPLITRANGE = u"ActiveSplitRange";
87inline constexpr OUStringLiteral SC_POSITIONLEFT = u"PositionLeft";
88inline constexpr OUStringLiteral SC_POSITIONRIGHT = u"PositionRight";
89inline constexpr OUStringLiteral SC_POSITIONTOP = u"PositionTop";
90inline constexpr OUStringLiteral SC_POSITIONBOTTOM = u"PositionBottom";
91#define SC_TABLESELECTED "TableSelected"
92
93inline constexpr OUStringLiteral SC_TABLES = u"Tables";
94inline constexpr OUStringLiteral SC_ACTIVETABLE = u"ActiveTable";
95inline constexpr OUStringLiteral SC_HORIZONTALSCROLLBARWIDTH = u"HorizontalScrollbarWidth";
96#define SC_RELHORIZONTALTABBARWIDTH "RelativeHorizontalTabbarWidth"
97inline constexpr OUStringLiteral SC_ZOOMTYPE = u"ZoomType";
98inline constexpr OUStringLiteral SC_ZOOMVALUE = u"ZoomValue";
99inline constexpr OUStringLiteral SC_PAGEVIEWZOOMVALUE = u"PageViewZoomValue";
100inline constexpr OUStringLiteral SC_SHOWPAGEBREAKPREVIEW = u"ShowPageBreakPreview";
101inline constexpr OUStringLiteral SC_FORMULABARHEIGHT = u"FormulaBarHeight";
102inline constexpr OUStringLiteral SC_VIEWID = u"ViewId";
103#define SC_VIEW "view"
104
105/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr OUStringLiteral SC_ACTIVESPLITRANGE
constexpr OUStringLiteral SC_SHOWPAGEBREAKPREVIEW
constexpr OUStringLiteral SC_HORIZONTALSCROLLBARWIDTH
constexpr OUStringLiteral SC_TABLES
constexpr OUStringLiteral SC_POSITIONRIGHT
constexpr OUStringLiteral SC_ZOOMVALUE
constexpr OUStringLiteral SC_CURSORPOSITIONY
constexpr OUStringLiteral SC_VERTICALSPLITMODE
constexpr OUStringLiteral SC_POSITIONBOTTOM
constexpr OUStringLiteral SC_VERTICALSPLITPOSITION
constexpr OUStringLiteral SC_POSITIONLEFT
constexpr OUStringLiteral SC_VIEWID
constexpr OUStringLiteral SC_ZOOMTYPE
constexpr OUStringLiteral SC_HORIZONTALSPLITPOSITION
constexpr OUStringLiteral SC_CURSORPOSITIONX
constexpr OUStringLiteral SC_PAGEVIEWZOOMVALUE
constexpr OUStringLiteral SC_FORMULABARHEIGHT
constexpr OUStringLiteral SC_ACTIVETABLE
constexpr OUStringLiteral SC_POSITIONTOP
constexpr OUStringLiteral SC_HORIZONTALSPLITMODE
float u