diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-05 16:02:49 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-05 16:02:49 +0000 |
commit | 63b3ab9863c55795af2b9b62cb0ea1a0208fb320 (patch) | |
tree | c549fdec6aa4720872091651abbf86097a9d77bf /writerfilter/source/ooxml | |
parent | 53137ebf49ea952ce64fa3423962d6f32832ee62 (diff) |
INTEGRATION: CWS xmlfilter03_DEV300 (1.2.2); FILE MERGED
2008/02/13 17:20:49 hbrinkm 1.2.2.1: OOXMLOLEHandler
Diffstat (limited to 'writerfilter/source/ooxml')
-rw-r--r-- | writerfilter/source/ooxml/Handler.cxx | 32 | ||||
-rw-r--r-- | writerfilter/source/ooxml/Handler.hxx | 18 |
2 files changed, 46 insertions, 4 deletions
diff --git a/writerfilter/source/ooxml/Handler.cxx b/writerfilter/source/ooxml/Handler.cxx index 748f3fab9..5dae7af9f 100644 --- a/writerfilter/source/ooxml/Handler.cxx +++ b/writerfilter/source/ooxml/Handler.cxx @@ -4,9 +4,9 @@ * * $RCSfile: Handler.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: obo $ $Date: 2008-01-10 11:55:43 $ + * last change: $Author: kz $ $Date: 2008-03-05 17:02:27 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -125,6 +125,34 @@ void OOXMLCommentHandler::sprm(Sprm & /*sprm*/) { } +/* + class OOXMLOLEHandler +*/ +OOXMLOLEHandler::OOXMLOLEHandler(OOXMLFastContextHandler * pContext) +: mpFastContext(pContext) +{ +} + +OOXMLOLEHandler::~OOXMLOLEHandler() +{ +} + +void OOXMLOLEHandler::attribute(Id name, Value & val) +{ + switch (name) + { + case NS_ooxml::LN_CT_OLEObject_r_id: + mpFastContext->resolveOLE(val.getString()); + break; + default: + ; + } +} + +void OOXMLOLEHandler::sprm(Sprm & /*sprm*/) +{ +} + /* class OOXMLFooterHandler */ diff --git a/writerfilter/source/ooxml/Handler.hxx b/writerfilter/source/ooxml/Handler.hxx index fd694e78c..a99506aa5 100644 --- a/writerfilter/source/ooxml/Handler.hxx +++ b/writerfilter/source/ooxml/Handler.hxx @@ -4,9 +4,9 @@ * * $RCSfile: Handler.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: obo $ $Date: 2008-01-10 11:55:52 $ + * last change: $Author: kz $ $Date: 2008-03-05 17:02:49 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -99,6 +99,18 @@ public: virtual void sprm(Sprm & sprm); }; +class OOXMLOLEHandler : public Properties +{ + OOXMLFastContextHandler * mpFastContext; + +public: + OOXMLOLEHandler(OOXMLFastContextHandler * pContext); + virtual ~OOXMLOLEHandler(); + + virtual void attribute(Id name, Value & val); + virtual void sprm(Sprm & sprm); +}; + class OOXMLBreakHandler : public Properties { OOXMLFastContextHandler * mpFastContext; @@ -135,5 +147,7 @@ public: virtual void attribute(Id name, Value & val); virtual void sprm(Sprm & sprm); }; + + }} #endif // INCLUDED_HANDLER_HXX |