diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-11-05 21:01:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-11-19 12:09:25 +0100 |
commit | 97bbffc917deba872090667e9dc096ecec99d557 (patch) | |
tree | 672bff54843461ff30270a11b726c1a48eea50cd /cui/inc/twolines.hrc | |
parent | 5b3592a42cc88a225237efadcc4d110be307303e (diff) |
weld TreeView
a) use GtkTreeStores for GtkTreeViews
b) ironically can't store GtkTreeStore contents in .ui apparently
c) set show_expanders for all non-trees and unconverted cases
d) on-demand subtrees
Change-Id: I3c1036a222daba2c129b1a22ffeb3fe35005ae31
Reviewed-on: https://gerrit.libreoffice.org/63336
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/inc/twolines.hrc')
-rw-r--r-- | cui/inc/twolines.hrc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/cui/inc/twolines.hrc b/cui/inc/twolines.hrc new file mode 100644 index 000000000000..d77f9abc264e --- /dev/null +++ b/cui/inc/twolines.hrc @@ -0,0 +1,44 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * 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/. + */ + +#ifndef INCLUDED_CUI_INC_TWO_LINES_HRC +#define INCLUDED_CUI_INC_TWO_LINES_HRC + +#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String) + +#define CHRDLG_ENCLOSE_NONE 0 +#define CHRDLG_ENCLOSE_ROUND 1 +#define CHRDLG_ENCLOSE_SQUARE 2 +#define CHRDLG_ENCLOSE_POINTED 3 +#define CHRDLG_ENCLOSE_CURVED 4 +#define CHRDLG_ENCLOSE_SPECIAL_CHAR 5 + +const std::pair<const char*, sal_uInt16> TWOLINE_OPEN[] = +{ + { NC_("twolinespage|liststore1", "(None)"), CHRDLG_ENCLOSE_NONE }, + { NC_("twolinespage|liststore1", "("), CHRDLG_ENCLOSE_ROUND }, + { NC_("twolinespage|liststore1", "["), CHRDLG_ENCLOSE_SQUARE }, + { NC_("twolinespage|liststore1", "<"), CHRDLG_ENCLOSE_POINTED }, + { NC_("twolinespage|liststore1", "{"), CHRDLG_ENCLOSE_CURVED }, + { NC_("twolinespage|liststore1", "Other Characters..."), CHRDLG_ENCLOSE_SPECIAL_CHAR } +}; + +const std::pair<const char*, sal_uInt16> TWOLINE_CLOSE[] = +{ + { NC_("twolinespage|liststore2", "(None)"), CHRDLG_ENCLOSE_NONE }, + { NC_("twolinespage|liststore2", ")"), CHRDLG_ENCLOSE_ROUND }, + { NC_("twolinespage|liststore2", "]"), CHRDLG_ENCLOSE_SQUARE }, + { NC_("twolinespage|liststore2", ">"), CHRDLG_ENCLOSE_POINTED }, + { NC_("twolinespage|liststore2", "}"), CHRDLG_ENCLOSE_CURVED }, + { NC_("twolinespage|liststore2", "Other Characters..."), CHRDLG_ENCLOSE_SPECIAL_CHAR } +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |