#96117# support for ImageMap elements
This commit is contained in:
parent
4652fb168d
commit
c8a2aded3a
2 changed files with 29 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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 <tools/debug.hxx>
|
||||
#include <svtools/unoimap.hxx>
|
||||
#include <svx/unofill.hxx>
|
||||
|
||||
#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<uno::XInterface> 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue