fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / xmloff / source / style / XMLFontStylesContext_impl.hxx
blob6a794b9668bcbf67568d7fc571b0c9d7deb75424
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 .
20 #ifndef _XMLOFF_XMLFONTSTYLESCONTEXT_IMPL_HXX_
21 #define _XMLOFF_XMLFONTSTYLESCONTEXT_IMPL_HXX_
23 #include <xmloff/xmlstyle.hxx>
25 /// Handles <style:font-face>
26 class XMLFontStyleContextFontFace : public SvXMLStyleContext
28 ::com::sun::star::uno::Any aFamilyName;
29 ::com::sun::star::uno::Any aStyleName;
30 ::com::sun::star::uno::Any aFamily;
31 ::com::sun::star::uno::Any aPitch;
32 ::com::sun::star::uno::Any aEnc;
34 SvXMLImportContextRef xStyles;
36 XMLFontStylesContext *GetStyles()
38 return ((XMLFontStylesContext *)&xStyles);
41 public:
43 TYPEINFO();
45 XMLFontStyleContextFontFace( SvXMLImport& rImport, sal_uInt16 nPrfx,
46 const OUString& rLName,
47 const ::com::sun::star::uno::Reference<
48 ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
49 XMLFontStylesContext& rStyles );
50 virtual ~XMLFontStyleContextFontFace();
52 void SetAttribute( sal_uInt16 nPrefixKey, const OUString& rLocalName,
53 const OUString& rValue );
55 void FillProperties( ::std::vector< XMLPropertyState > &rProps,
56 sal_Int32 nFamilyNameIdx,
57 sal_Int32 nStyleNameIdx,
58 sal_Int32 nFamilyIdx,
59 sal_Int32 nPitchIdx,
60 sal_Int32 nCharsetIdx ) const;
62 OUString familyName() const;
64 SvXMLImportContext * CreateChildContext(
65 sal_uInt16 nPrefix,
66 const OUString& rLocalName,
67 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
70 /// Handles <style:font-face-src>
71 class XMLFontStyleContextFontFaceSrc : public SvXMLImportContext
73 const XMLFontStyleContextFontFace& font;
74 public:
76 TYPEINFO();
78 XMLFontStyleContextFontFaceSrc( SvXMLImport& rImport, sal_uInt16 nPrfx,
79 const OUString& rLName,
80 const XMLFontStyleContextFontFace& font );
82 virtual SvXMLImportContext * CreateChildContext(
83 sal_uInt16 nPrefix,
84 const OUString& rLocalName,
85 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
88 /// Handles <style:font-face-uri>
89 class XMLFontStyleContextFontFaceUri : public SvXMLStyleContext
91 const XMLFontStyleContextFontFace& font;
92 void handleEmbeddedFont( const OUString& url );
93 public:
95 TYPEINFO();
97 XMLFontStyleContextFontFaceUri( SvXMLImport& rImport, sal_uInt16 nPrfx,
98 const OUString& rLName,
99 const ::com::sun::star::uno::Reference<
100 ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
101 const XMLFontStyleContextFontFace& font );
103 virtual void SetAttribute( sal_uInt16 nPrefixKey, const OUString& rLocalName,
104 const OUString& rValue );
107 #endif
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */