tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / oox / source / token / relationship.cxx
blobc146a7e0b8c0121ba32169ea97d504c96bada8f6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #include <oox/token/relationship.hxx>
12 #include <sal/log.hxx>
13 #include <frozen/bits/defines.h>
14 #include <frozen/bits/elsa_std.h>
15 #include <frozen/unordered_map.h>
17 namespace oox
20 namespace
23 constexpr frozen::unordered_map<Relationship, std::u16string_view, 49> constRelationshipMap
25 #include "relationship.inc"
28 } // end anonymous ns
30 OUString getRelationship(Relationship eRelationship)
32 auto iterator = constRelationshipMap.find(eRelationship);
33 if (iterator != constRelationshipMap.end())
34 return OUString(iterator->second);
35 SAL_WARN("oox", "could not find an entry for the relationship: " << static_cast<int>(eRelationship));
36 return OUString();
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */