Kaydet (Commit) d28f0bfd authored tarafından Luboš Luňák's avatar Luboš Luňák

move class definition to a header file

Change-Id: Id41200667089d4f42f7999060fd97545bb069788
üst 32e3ede9
...@@ -84,6 +84,49 @@ public: ...@@ -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 #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <xmloff/XMLFontStylesContext.hxx>
#include <com/sun/star/awt/FontFamily.hpp> #include <com/sun/star/awt/FontFamily.hpp>
#include <com/sun/star/awt/FontPitch.hpp> #include <com/sun/star/awt/FontPitch.hpp>
...@@ -29,8 +30,6 @@ ...@@ -29,8 +30,6 @@
#include "fonthdl.hxx" #include "fonthdl.hxx"
#include <xmloff/xmlimp.hxx> #include <xmloff/xmlimp.hxx>
#include <xmloff/maptype.hxx> #include <xmloff/maptype.hxx>
#include <xmloff/XMLFontStylesContext.hxx>
using ::rtl::OUString; using ::rtl::OUString;
using ::rtl::OUStringBuffer; using ::rtl::OUStringBuffer;
...@@ -78,44 +77,6 @@ static const SvXMLTokenMapEntry* lcl_getFontStyleAttrTokenMap() ...@@ -78,44 +77,6 @@ static const SvXMLTokenMapEntry* lcl_getFontStyleAttrTokenMap()
return aFontStyleAttrTokenMap; return aFontStyleAttrTokenMap;
} }
class XMLFontStyleContext_Impl : public SvXMLStyleContext
{
Any aFamilyName;
Any aStyleName;
Any aFamily;
Any aPitch;
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;
};
TYPEINIT1( XMLFontStyleContext_Impl, SvXMLStyleContext ); TYPEINIT1( XMLFontStyleContext_Impl, SvXMLStyleContext );
XMLFontStyleContext_Impl::XMLFontStyleContext_Impl( SvXMLImport& rImport, XMLFontStyleContext_Impl::XMLFontStyleContext_Impl( SvXMLImport& rImport,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment