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