summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/scui_def.hxx
blob: c2bc095b816280e588ef25ee99aa26fd4f77be31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#ifndef INCLUDED_SC_SOURCE_UI_INC_SCUI_DEF_HXX
#define INCLUDED_SC_SOURCE_UI_INC_SCUI_DEF_HXX

#include <o3tl/typed_flags_set.hxx>

#define SCRET_COLS 0x42
#define SCRET_ROWS 0x43

#define FDS_OPT_NONE        0  // from filldlg.hxx
#define FDS_OPT_HORZ        1   // from filldlg.hxx
#define FDS_OPT_VERT        2  // from filldlg.hxx

enum class InsertContentsFlags {
    NONE       = 0x00,
    NoEmpty    = 0x01, //from inscodlg.hxx
    Trans      = 0x02, //from inscodlg.hxx
    Link       = 0x04  //from inscodlg.hxx
};
namespace o3tl {
    template<> struct typed_flags<InsertContentsFlags> : is_typed_flags<InsertContentsFlags, 0x07> {};
}

enum class CellShiftDisabledFlags {
    NONE  = 0x00,
    Down  = 0x01, //from inscodlg.hxx
    Right = 0x02  //from inscodlg.hxx
};
namespace o3tl {
    template<> struct typed_flags<CellShiftDisabledFlags> : is_typed_flags<CellShiftDisabledFlags, 0x3> {};
}

enum class CreateNameFlags {
    NONE       = 0,
    Top        = 1, //from namecrea.hxx
    Left       = 2, //from namecrea.hxx
    Bottom     = 4, //from namecrea.hxx
    Right      = 8, //from namecrea.hxx
};
namespace o3tl {
    template<> struct typed_flags<CreateNameFlags> : is_typed_flags<CreateNameFlags, 0xf> {};
}

#define BTN_PASTE_NAME  100  // from namepast.hxx
#define BTN_PASTE_LIST  101  // from namepast.hxx
#define BTN_PASTE_CLOSE 102  // from namepast.hxx

#define BTN_EXTEND_RANGE       150
#define BTN_CURRENT_SELECTION  151
#define SCRET_REMOVE    0x42 //from subtdlg.hxx
#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */