summaryrefslogtreecommitdiff
path: root/include/comphelper/PropertyInfoHash.hxx
blob: 1e1374f317dc073b9e9742aec7f9614fcd9cd976 (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
/* -*- 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_COMPHELPER_PROPERTYINFOHASH_HXX
#define INCLUDED_COMPHELPER_PROPERTYINFOHASH_HXX

#include <rtl/ustring.hxx>
#include <com/sun/star/uno/Type.hxx>
#include <unordered_map>

namespace comphelper
{
    struct PropertyInfo
    {
        OUString maName;
        sal_Int32 mnHandle;
        css::uno::Type maType;
        sal_Int16 mnAttributes;
    };
    struct PropertyData
    {
        sal_uInt8 mnMapId;
        PropertyInfo const *mpInfo;
        PropertyData ( sal_uInt8 nMapId, PropertyInfo const *pInfo )
        : mnMapId ( nMapId )
        , mpInfo ( pInfo ) {}
    };
}

typedef std::unordered_map < OUString,
                        ::comphelper::PropertyInfo const * > PropertyInfoHash;
typedef std::unordered_map < OUString,
                        ::comphelper::PropertyData* > PropertyDataHash;
#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
88a32ff. Change-Id: Ic45803c0715723b6f57c9f6a0c731edd559aa92c Reviewed-on: https://gerrit.libreoffice.org/42932 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> 2017-09-28Unify SalUserEvent handlingJan-Marek Glogowski Merges the various SalUserEvent structs and their handling into a single class. This includes a common SalFrame* hash map, as all backends use such a map to verify alive SalFrames. It also reverts the "FIXME: lousy workaround" for i#90083, which was part of commit d6f7c94e5c27ba02ff5c3229760c9808cc9b5bea. At least on my current OSX box application based window switching "just works" "out of the box", even without the code. Change-Id: I188b567e44fd79c162b2d9cabbd771d1f66c7dc4 Reviewed-on: https://gerrit.libreoffice.org/42845 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> 2016-02-13vcl: include vcl headers via triangular brackets instead of quotesChris Sherlock Change-Id: I311f7db622ce341527fe12a92b516f800b602f92 2016-02-02boost::hash->std::hashNoel Grandin Change-Id: If4d1e4071995f07212fad958b0226d5824d168f8 Reviewed-on: https://gerrit.libreoffice.org/21989 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com> 2015-11-18com::sun::star->css in vcl/Noel Grandin Change-Id: Ifad76177673cf93746ba221838be80ff76fed228 Reviewed-on: https://gerrit.libreoffice.org/20032 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com> 2015-05-22convert POINTER constants to scoped enumNoel Grandin Change-Id: Iea29ce5fd6c620535197d3ca8538335078430e19 Reviewed-on: https://gerrit.libreoffice.org/15825 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com> 2015-01-05Need <boost/functional/hash.hpp> for boost::hashTor Lillqvist Change-Id: I64915b6a1dde7c0c518334b8d90bce70844d0fbe 2015-01-04vcl/osx boost::unordered_map->std::unordered_mapCaolán McNamara Change-Id: I00dabf3307734e319a8187df111e1065ea383524 2014-12-04vcl (Mac): loplugin:cstylecastStephan Bergmann Change-Id: Ic46623380f026a8dfcc74c895db35a06bcea1ead 2014-05-25cppcheck: unusedFunctionThomas Arnhold Change-Id: I81f2a4be65bbc9359e51accccb746f1e8ea48c4f 2014-05-17Correct common misspellings, and remove some ASCII art along the way.Chris Laplante Change-Id: I42787db31769e8bde984c5f4f0aa90335e889b1c Reviewed-on: https://gerrit.libreoffice.org/9356 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>