update emoji autocorrect entries from po-files
[LibreOffice.git] / include / xmloff / XMLFontStylesContext.hxx
blobf3b8ff2ad8c3d118a1f2de528a497fb47fb6461b
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_XMLOFF_XMLFONTSTYLESCONTEXT_HXX
20 #define INCLUDED_XMLOFF_XMLFONTSTYLESCONTEXT_HXX
22 #include <sal/config.h>
23 #include <xmloff/dllapi.h>
25 #include <vector>
27 #include <xmloff/xmlstyle.hxx>
29 struct XMLPropertyState;
30 class SvXMLTokenMap;
31 class XMLFontFamilyNamePropHdl;
32 class XMLFontFamilyPropHdl;
33 class XMLFontPitchPropHdl;
34 class XMLFontEncodingPropHdl;
36 class XMLOFF_DLLPUBLIC XMLFontStylesContext : public SvXMLStylesContext
38 XMLFontFamilyNamePropHdl *pFamilyNameHdl;
39 XMLFontFamilyPropHdl *pFamilyHdl;
40 XMLFontPitchPropHdl *pPitchHdl;
41 XMLFontEncodingPropHdl *pEncHdl;
43 SvXMLTokenMap *pFontStyleAttrTokenMap;
45 rtl_TextEncoding eDfltEncoding;
47 protected:
49 virtual SvXMLStyleContext *CreateStyleChildContext( sal_uInt16 nPrefix,
50 const OUString& rLocalName,
51 const ::com::sun::star::uno::Reference<
52 ::com::sun::star::xml::sax::XAttributeList > & xAttrList ) SAL_OVERRIDE;
54 public:
56 TYPEINFO_OVERRIDE();
58 XMLFontStylesContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
59 const OUString& rLName,
60 const ::com::sun::star::uno::Reference<
61 ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
62 rtl_TextEncoding eDfltEnc );
63 virtual ~XMLFontStylesContext();
65 const SvXMLTokenMap& GetFontStyleAttrTokenMap() const
67 return *pFontStyleAttrTokenMap;
70 bool FillProperties( const OUString& rName,
71 ::std::vector< XMLPropertyState > &rProps,
72 sal_Int32 nFamilyNameIdx,
73 sal_Int32 nStyleNameIdx,
74 sal_Int32 nFamilyIdx,
75 sal_Int32 nPitchIdx,
76 sal_Int32 nCharsetIdx ) const;
78 rtl_TextEncoding GetDfltCharset() const { return eDfltEncoding; }
80 XMLFontFamilyNamePropHdl& GetFamilyNameHdl() const { return *pFamilyNameHdl; }
81 XMLFontFamilyPropHdl& GetFamilyHdl() const { return *pFamilyHdl; }
82 XMLFontPitchPropHdl& GetPitchHdl() const { return *pPitchHdl; }
83 XMLFontEncodingPropHdl& GetEncodingHdl() const { return *pEncHdl; }
87 #endif
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */