summaryrefslogtreecommitdiff
path: root/xmloff/inc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-01-23 16:31:31 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-02-01 14:20:33 +0100
commitd28f0bfda55eebc34bbe5aab22f430ee37ef7e9b (patch)
treeb3dd5653127be4c21250c5e88ff4d960a7621c04 /xmloff/inc
parent32e3ede97ec6bad1b3c19545709b54eff29eafc6 (diff)
move class definition to a header file
Change-Id: Id41200667089d4f42f7999060fd97545bb069788
Diffstat (limited to 'xmloff/inc')
-rw-r--r--xmloff/inc/xmloff/XMLFontStylesContext.hxx43
1 files changed, 43 insertions, 0 deletions
diff --git a/xmloff/inc/xmloff/XMLFontStylesContext.hxx b/xmloff/inc/xmloff/XMLFontStylesContext.hxx
index afd495c17b44..e48ae0a60c48 100644
--- a/xmloff/inc/xmloff/XMLFontStylesContext.hxx
+++ b/xmloff/inc/xmloff/XMLFontStylesContext.hxx
@@ -84,6 +84,49 @@ public:
};
+/// Handles <style:font-face>
+class XMLFontStyleContext_Impl : public SvXMLStyleContext
+{
+ ::com::sun::star::uno::Any aFamilyName;
+ ::com::sun::star::uno::Any aStyleName;
+ ::com::sun::star::uno::Any aFamily;
+ ::com::sun::star::uno::Any aPitch;
+ ::com::sun::star::uno::Any aEnc;
+
+ SvXMLImportContextRef xStyles;
+
+ XMLFontStylesContext *GetStyles()
+ {
+ return ((XMLFontStylesContext *)&xStyles);
+ }
+
+public:
+
+ TYPEINFO();
+
+ XMLFontStyleContext_Impl( SvXMLImport& rImport, sal_uInt16 nPrfx,
+ const ::rtl::OUString& rLName,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
+ XMLFontStylesContext& rStyles );
+ virtual ~XMLFontStyleContext_Impl();
+
+ void SetAttribute( sal_uInt16 nPrefixKey, const OUString& rLocalName,
+ const OUString& rValue );
+
+ void FillProperties( ::std::vector< XMLPropertyState > &rProps,
+ sal_Int32 nFamilyNameIdx,
+ sal_Int32 nStyleNameIdx,
+ sal_Int32 nFamilyIdx,
+ sal_Int32 nPitchIdx,
+ sal_Int32 nCharsetIdx ) const;
+
+ SvXMLImportContext * CreateChildContext(
+ sal_uInt16 nPrefix,
+ const ::rtl::OUString& rLocalName,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
+};
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */