1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_SCUI_DEF_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_SCUI_DEF_HXX
23 #include <o3tl/typed_flags_set.hxx>
25 #define SCRET_COLS 0x42
26 #define SCRET_ROWS 0x43
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
32 enum class InsertContentsFlags
{
34 NoEmpty
= 0x01, //from inscodlg.hxx
35 Trans
= 0x02, //from inscodlg.hxx
36 Link
= 0x04 //from inscodlg.hxx
39 template<> struct typed_flags
<InsertContentsFlags
> : is_typed_flags
<InsertContentsFlags
, 0x07> {};
42 enum class CellShiftDisabledFlags
{
44 Down
= 0x01, //from inscodlg.hxx
45 Right
= 0x02 //from inscodlg.hxx
48 template<> struct typed_flags
<CellShiftDisabledFlags
> : is_typed_flags
<CellShiftDisabledFlags
, 0x3> {};
51 enum class CreateNameFlags
{
53 Top
= 1, //from namecrea.hxx
54 Left
= 2, //from namecrea.hxx
55 Bottom
= 4, //from namecrea.hxx
56 Right
= 8, //from namecrea.hxx
59 template<> struct typed_flags
<CreateNameFlags
> : is_typed_flags
<CreateNameFlags
, 0xf> {};
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
66 #define BTN_EXTEND_RANGE 150
67 #define BTN_CURRENT_SELECTION 151
68 #define SCRET_REMOVE 0x42 //from subtdlg.hxx
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */