From c8a2aded3a828b67ba467f0bca9aa84376429751 Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Wed, 19 Dec 2001 10:37:57 +0000 Subject: [PATCH] #96117# support for ImageMap elements --- sc/inc/servuno.hxx | 10 +++++++--- sc/source/ui/unoobj/servuno.cxx | 26 ++++++++++++++++++++++---- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/sc/inc/servuno.hxx b/sc/inc/servuno.hxx index 47320747dbf8..26d2bc321813 100644 --- a/sc/inc/servuno.hxx +++ b/sc/inc/servuno.hxx @@ -2,9 +2,9 @@ * * $RCSfile: servuno.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: nn $ $Date: 2001-04-06 14:29:40 $ + * last change: $Author: nn $ $Date: 2001-12-19 11:36:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -106,7 +106,11 @@ class ScDocShell; #define SC_SERVICE_DOCSPRSETT 22 #define SC_SERVICE_DOCCONF 23 -#define SC_SERVICE_COUNT 24 +#define SC_SERVICE_IMAP_RECT 24 +#define SC_SERVICE_IMAP_CIRC 25 +#define SC_SERVICE_IMAP_POLY 26 + +#define SC_SERVICE_COUNT 27 #define SC_SERVICE_INVALID USHRT_MAX diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index 54daaa969908..99d7bbe4aeb2 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -2,9 +2,9 @@ * * $RCSfile: servuno.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: nn $ $Date: 2001-04-06 14:36:18 $ + * last change: $Author: nn $ $Date: 2001-12-19 11:37:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -66,6 +66,7 @@ #pragma hdrstop #include +#include #include #ifndef _SVX_UNONRULE_HXX @@ -82,6 +83,7 @@ #include "docsh.hxx" #include "drwlayer.hxx" #include "confuno.hxx" +#include "shapeuno.hxx" using namespace ::com::sun::star; @@ -113,7 +115,10 @@ static const sal_Char* __FAR_DATA aProvNames[SC_SERVICE_COUNT] = "com.sun.star.sheet.Defaults", // SC_SERVICE_DOCDEFLTS "com.sun.star.drawing.Defaults", // SC_SERVICE_DRAWDEFLTS "com.sun.star.comp.SpreadsheetSettings", // SC_SERVICE_DOCSPRSETT - "com.sun.star.document.Settings" // SC_SERVICE_DOCCONF + "com.sun.star.document.Settings", // SC_SERVICE_DOCCONF + "com.sun.star.image.ImageMapRectangleObject",// SC_SERVICE_IMAP_RECT + "com.sun.star.image.ImageMapCircleObject", // SC_SERVICE_IMAP_CIRC + "com.sun.star.image.ImageMapPolygonObject" // SC_SERVICE_IMAP_POLY }; // @@ -146,7 +151,10 @@ static const sal_Char* __FAR_DATA aOldNames[SC_SERVICE_COUNT] = "", // SC_SERVICE_DOCDEFLTS "", // SC_SERVICE_DRAWDEFLTS "", // SC_SERVICE_DOCSPRSETT - "" // SC_SERVICE_DOCCONF + "", // SC_SERVICE_DOCCONF + "", // SC_SERVICE_IMAP_RECT + "", // SC_SERVICE_IMAP_CIRC + "" // SC_SERVICE_IMAP_POLY }; @@ -267,6 +275,16 @@ uno::Reference ScServiceProvider::MakeInstance( if (pDocShell) xRet = (beans::XPropertySet*)new ScDocumentConfiguration(pDocShell); break; + + case SC_SERVICE_IMAP_RECT: + xRet = SvUnoImageMapRectangleObject_createInstance( ScShapeObj::GetSupportedMacroItems() ); + break; + case SC_SERVICE_IMAP_CIRC: + xRet = SvUnoImageMapCircleObject_createInstance( ScShapeObj::GetSupportedMacroItems() ); + break; + case SC_SERVICE_IMAP_POLY: + xRet = SvUnoImageMapPolygonObject_createInstance( ScShapeObj::GetSupportedMacroItems() ); + break; } return xRet; }