1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* 3 * This file is part of the LibreOffice project. 4 * 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 * 9 * This file incorporates work covered by the following license notice: 10 * 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 . 18 */ 19 20 #pragma once 21 22 #include <com/sun/star/uno/Sequence.hxx> 23 #include <com/sun/star/beans/Pair.hpp> 24 namespace starmathdatabase 25 { 26 /** 27 * w3 documentation has been used for this. 28 * See: https://www.w3.org/2003/entities/2007/htmlmathml-f.ent 29 * Copyright 1998 - 2011 W3C. 30 * We allow the import of HTML5 entities because are compatible with mathml 31 * and ill formatted are expected. 32 * On export only mathml entities are allowed. 33 * Some documentation: https://www.w3.org/TR/MathML3/chapter7.html 34 */ 35 36 constexpr sal_Int32 STARMATH_MATHMLHTML_ENTITY_NUMBER = 2125; 37 38 /** 39 * Entity names for mathml. Example: &infin -> \u221E; 40 * These ones are to be used on import. 41 */ 42 const extern ::css::uno::Sequence<::css::beans::Pair<::rtl::OUString, ::rtl::OUString>> 43 icustomMathmlHtmlEntities; 44 45 /** 46 * Entity names for mathml. Example: "\u221E"; -> ∞ 47 * These ones are to be used on file export. 48 */ 49 const extern ::css::uno::Sequence<::css::beans::Pair<::rtl::OUString, ::rtl::OUString>> 50 icustomMathmlHtmlEntitiesExport; 51 }; 52 53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 54