LibreOffice Module sc (master)  1
scui_def.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 #ifndef INCLUDED_SC_SOURCE_UI_INC_SCUI_DEF_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_SCUI_DEF_HXX
22 
23 #include <o3tl/typed_flags_set.hxx>
24 
25 #define SCRET_COLS 0x42
26 #define SCRET_ROWS 0x43
27 
28 #define FDS_OPT_NONE 0 // from filldlg.hxx
29 #define FDS_OPT_HORZ 1 // from filldlg.hxx
30 #define FDS_OPT_VERT 2 // from filldlg.hxx
31 
32 enum class InsertContentsFlags {
33  NONE = 0x00,
34  NoEmpty = 0x01, //from inscodlg.hxx
35  Trans = 0x02, //from inscodlg.hxx
36  Link = 0x04 //from inscodlg.hxx
37 };
38 namespace o3tl {
39  template<> struct typed_flags<InsertContentsFlags> : is_typed_flags<InsertContentsFlags, 0x07> {};
40 }
41 
43  NONE = 0x00,
44  Down = 0x01, //from inscodlg.hxx
45  Right = 0x02 //from inscodlg.hxx
46 };
47 namespace o3tl {
48  template<> struct typed_flags<CellShiftDisabledFlags> : is_typed_flags<CellShiftDisabledFlags, 0x3> {};
49 }
50 
51 enum class CreateNameFlags {
52  NONE = 0,
53  Top = 1, //from namecrea.hxx
54  Left = 2, //from namecrea.hxx
55  Bottom = 4, //from namecrea.hxx
56  Right = 8, //from namecrea.hxx
57 };
58 namespace o3tl {
59  template<> struct typed_flags<CreateNameFlags> : is_typed_flags<CreateNameFlags, 0xf> {};
60 }
61 
62 #define BTN_PASTE_NAME 100 // from namepast.hxx
63 #define BTN_PASTE_LIST 101 // from namepast.hxx
64 #define BTN_PASTE_CLOSE 102 // from namepast.hxx
65 
66 #define BTN_EXTEND_RANGE 150
67 #define BTN_CURRENT_SELECTION 151
68 #define SCRET_REMOVE 0x42 //from subtdlg.hxx
69 #endif
70 
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
InsertContentsFlags
Definition: scui_def.hxx:32
CreateNameFlags
Definition: scui_def.hxx:51
CellShiftDisabledFlags
Definition: scui_def.hxx:42