1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_TXTIMPPR_HXX
20 #define INCLUDED_XMLOFF_TXTIMPPR_HXX
22 #include <xmloff/dllapi.h>
23 #include <xmloff/xmlimppr.hxx>
25 class XMLFontStylesContext
;
27 class XMLOFF_DLLPUBLIC XMLTextImportPropertyMapper
: public SvXMLImportPropertyMapper
29 sal_Int32 nSizeTypeIndex
;
30 sal_Int32 nWidthTypeIndex
;
32 static void FontFinished(
33 XMLPropertyState
*pFontFamilyNameState
,
34 XMLPropertyState
*pFontStyleNameState
,
35 XMLPropertyState
*pFontFamilyState
,
36 XMLPropertyState
*pFontPitchState
,
37 XMLPropertyState
*pFontCharsetState
);
39 void FontDefaultsCheck(
40 XMLPropertyState
*pFontFamilyName
,
41 XMLPropertyState
* pFontStyleName
,
42 XMLPropertyState
* pFontFamily
,
43 XMLPropertyState
* pFontPitch
,
44 XMLPropertyState
* pFontCharSet
,
45 XMLPropertyState
** ppNewFontStyleName
,
46 XMLPropertyState
** ppNewFontFamily
,
47 XMLPropertyState
** ppNewFontPitch
,
48 XMLPropertyState
** ppNewFontCharSet
) const;
51 virtual bool handleSpecialItem(
52 XMLPropertyState
& rProperty
,
53 ::std::vector
< XMLPropertyState
>& rProperties
,
54 const OUString
& rValue
,
55 const SvXMLUnitConverter
& rUnitConverter
,
56 const SvXMLNamespaceMap
& rNamespaceMap
) const SAL_OVERRIDE
;
58 XMLTextImportPropertyMapper(
59 const rtl::Reference
< XMLPropertySetMapper
>& rMapper
,
60 SvXMLImport
& rImport
);
61 virtual ~XMLTextImportPropertyMapper();
63 /** This method is called when all attributes have benn processed. It may be used to remove items that are incomplete */
64 virtual void finished(
65 ::std::vector
< XMLPropertyState
>& rProperties
,
66 sal_Int32 nStartIndex
, sal_Int32 nEndIndex
) const SAL_OVERRIDE
;
69 #endif // INCLUDED_XMLOFF_TXTIMPPR_HXX
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */