summaryrefslogtreecommitdiff
path: root/svtools/inc/svtools/imapobj.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/inc/svtools/imapobj.hxx')
-rw-r--r--svtools/inc/svtools/imapobj.hxx108
1 files changed, 54 insertions, 54 deletions
diff --git a/svtools/inc/svtools/imapobj.hxx b/svtools/inc/svtools/imapobj.hxx
index 6929e4d21291..2176782256a5 100644
--- a/svtools/inc/svtools/imapobj.hxx
+++ b/svtools/inc/svtools/imapobj.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,26 +37,26 @@ class Point;
class Rectangle;
class SvStream;
-#define IMAP_OBJ_NONE ((UINT16)0x0000)
-#define IMAP_OBJ_RECTANGLE ((UINT16)0x0001)
-#define IMAP_OBJ_CIRCLE ((UINT16)0x0002)
-#define IMAP_OBJ_POLYGON ((UINT16)0x0003)
-#define IMAP_OBJ_VERSION ((UINT16)0x0005)
+#define IMAP_OBJ_NONE ((UINT16)0x0000)
+#define IMAP_OBJ_RECTANGLE ((UINT16)0x0001)
+#define IMAP_OBJ_CIRCLE ((UINT16)0x0002)
+#define IMAP_OBJ_POLYGON ((UINT16)0x0003)
+#define IMAP_OBJ_VERSION ((UINT16)0x0005)
-#define IMAGE_MAP_VERSION ((UINT16)0x0001)
+#define IMAGE_MAP_VERSION ((UINT16)0x0001)
-#define IMAPMAGIC "SDIMAP"
+#define IMAPMAGIC "SDIMAP"
-#define IMAP_MIRROR_HORZ 0x00000001L
-#define IMAP_MIRROR_VERT 0x00000002L
+#define IMAP_MIRROR_HORZ 0x00000001L
+#define IMAP_MIRROR_VERT 0x00000002L
-#define IMAP_FORMAT_BIN 0x00000001L
-#define IMAP_FORMAT_CERN 0x00000002L
-#define IMAP_FORMAT_NCSA 0x00000004L
-#define IMAP_FORMAT_DETECT 0xffffffffL
+#define IMAP_FORMAT_BIN 0x00000001L
+#define IMAP_FORMAT_CERN 0x00000002L
+#define IMAP_FORMAT_NCSA 0x00000004L
+#define IMAP_FORMAT_DETECT 0xffffffffL
-#define IMAP_ERR_OK 0x00000000L
-#define IMAP_ERR_FORMAT 0x00000001L
+#define IMAP_ERR_OK 0x00000000L
+#define IMAP_ERR_FORMAT 0x00000001L
/******************************************************************************
|*
@@ -66,33 +66,33 @@ class SvStream;
class SVT_DLLPUBLIC IMapObject
{
- friend class ImageMap;
+ friend class ImageMap;
- String aURL;
- String aAltText;
- String aDesc;
- String aTarget;
- String aName;
- SvxMacroTableDtor aEventList;
- BOOL bActive;
+ String aURL;
+ String aAltText;
+ String aDesc;
+ String aTarget;
+ String aName;
+ SvxMacroTableDtor aEventList;
+ BOOL bActive;
protected:
- UINT16 nReadVersion;
+ UINT16 nReadVersion;
// Binaer-Im-/Export
- virtual void WriteIMapObject( SvStream& rOStm ) const = 0;
- virtual void ReadIMapObject( SvStream& rIStm ) = 0;
+ virtual void WriteIMapObject( SvStream& rOStm ) const = 0;
+ virtual void ReadIMapObject( SvStream& rIStm ) = 0;
// Hilfsmethoden
- void AppendCERNCoords( const Point& rPoint100, ByteString& rStr ) const;
+ void AppendCERNCoords( const Point& rPoint100, ByteString& rStr ) const;
void AppendCERNURL( ByteString& rStr, const String& rBaseURL ) const;
- void AppendNCSACoords( const Point& rPoint100, ByteString& rStr ) const;
+ void AppendNCSACoords( const Point& rPoint100, ByteString& rStr ) const;
void AppendNCSAURL( ByteString& rStr, const String& rBaseURL ) const;
public:
- static rtl_TextEncoding nActualTextEncoding;
+ static rtl_TextEncoding nActualTextEncoding;
IMapObject();
IMapObject( const String& rURL,
@@ -101,48 +101,48 @@ public:
const String& rTarget,
const String& rName,
BOOL bActive );
- virtual ~IMapObject() {};
+ virtual ~IMapObject() {};
- virtual UINT16 GetVersion() const;
- virtual UINT16 GetType() const = 0;
- virtual BOOL IsHit( const Point& rPoint ) const = 0;
+ virtual UINT16 GetVersion() const;
+ virtual UINT16 GetType() const = 0;
+ virtual BOOL IsHit( const Point& rPoint ) const = 0;
void Write ( SvStream& rOStm, const String& rBaseURL ) const;
void Read( SvStream& rIStm, const String& rBaseURL );
- virtual Rectangle GetBoundRect() const = 0;
+ virtual Rectangle GetBoundRect() const = 0;
- const String& GetURL() const { return aURL; }
- void SetURL( const String& rURL ) { aURL = rURL; }
+ const String& GetURL() const { return aURL; }
+ void SetURL( const String& rURL ) { aURL = rURL; }
- const String& GetAltText() const { return aAltText; }
- void SetAltText( const String& rAltText) { aAltText = rAltText; }
+ const String& GetAltText() const { return aAltText; }
+ void SetAltText( const String& rAltText) { aAltText = rAltText; }
- const String& GetDesc() const { return aDesc; }
- void SetDesc( const String& rDesc ) { aDesc = rDesc; }
+ const String& GetDesc() const { return aDesc; }
+ void SetDesc( const String& rDesc ) { aDesc = rDesc; }
- const String& GetTarget() const { return aTarget; }
- void SetTarget( const String& rTarget ) { aTarget = rTarget; }
+ const String& GetTarget() const { return aTarget; }
+ void SetTarget( const String& rTarget ) { aTarget = rTarget; }
- const String& GetName() const { return aName; }
- void SetName( const String& rName ) { aName = rName; }
+ const String& GetName() const { return aName; }
+ void SetName( const String& rName ) { aName = rName; }
- BOOL IsActive() const { return bActive; }
- void SetActive( BOOL bSetActive = TRUE ) { bActive = bSetActive; }
+ BOOL IsActive() const { return bActive; }
+ void SetActive( BOOL bSetActive = TRUE ) { bActive = bSetActive; }
- static Point GetPixelPoint( const Point& rLogPoint );
- static Point GetLogPoint( const Point& rPixelPoint );
+ static Point GetPixelPoint( const Point& rLogPoint );
+ static Point GetLogPoint( const Point& rPixelPoint );
- BOOL IsEqual( const IMapObject& rEqObj );
+ BOOL IsEqual( const IMapObject& rEqObj );
// IMap-Events
inline const SvxMacroTableDtor& GetMacroTable() const { return aEventList;}
inline void SetMacroTable( const SvxMacroTableDtor& rTbl ) { aEventList = rTbl; }
- inline const SvxMacro& GetEvent( USHORT nEvent ) const;
- inline BOOL HasEvent( USHORT nEvent ) const;
- void SetEvent( USHORT nEvent, const SvxMacro& );
- inline BOOL DelEvent( USHORT nEvent );
+ inline const SvxMacro& GetEvent( USHORT nEvent ) const;
+ inline BOOL HasEvent( USHORT nEvent ) const;
+ void SetEvent( USHORT nEvent, const SvxMacro& );
+ inline BOOL DelEvent( USHORT nEvent );
};
inline BOOL IMapObject::HasEvent( USHORT nEvent ) const