Update ooo320-m1
[ooovba.git] / sc / inc / userdat.hxx
blobf5294582530f93535bb5d97317b8eee7ae402536
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: userdat.hxx,v $
10 * $Revision: 1.8.128.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_USERDAT_HXX
32 #define SC_USERDAT_HXX
34 #include <svx/svdobj.hxx>
35 #include <svtools/imap.hxx>
36 #include "global.hxx"
37 #include "address.hxx"
40 //-------------------------------------------------------------------------
42 #define SC_DRAWLAYER 0x30334353 // Inventor: "SC30"
44 // Object-Ids fuer UserData
45 #define SC_UD_OBJDATA 1
46 #define SC_UD_IMAPDATA 2
47 #define SC_UD_MACRODATA 3
49 //-------------------------------------------------------------------------
51 class ScDrawObjFactory
53 DECL_LINK( MakeUserData, SdrObjFactory * );
54 public:
55 ScDrawObjFactory();
56 ~ScDrawObjFactory();
59 //-------------------------------------------------------------------------
61 class ScDrawObjData : public SdrObjUserData
63 public:
64 ScAddress maStart;
65 ScAddress maEnd;
66 bool mbNote;
68 explicit ScDrawObjData();
70 private:
71 virtual ScDrawObjData* Clone( SdrObject* pObj ) const;
74 //-------------------------------------------------------------------------
76 class ScIMapInfo : public SdrObjUserData
78 ImageMap aImageMap;
80 public:
81 ScIMapInfo();
82 ScIMapInfo( const ImageMap& rImageMap );
83 ScIMapInfo( const ScIMapInfo& rIMapInfo );
84 virtual ~ScIMapInfo();
86 virtual SdrObjUserData* Clone( SdrObject* pObj ) const;
88 void SetImageMap( const ImageMap& rIMap ) { aImageMap = rIMap; }
89 const ImageMap& GetImageMap() const { return aImageMap; }
92 //-------------------------------------------------------------------------
94 class ScMacroInfo : public SdrObjUserData
96 public:
97 ScMacroInfo();
98 virtual ~ScMacroInfo();
100 virtual SdrObjUserData* Clone( SdrObject* pObj ) const;
102 void SetMacro( const rtl::OUString& rMacro ) { maMacro = rMacro; }
103 const rtl::OUString& GetMacro() const { return maMacro; }
105 void SetHlink( const rtl::OUString& rHlink ) { maHlink = rHlink; }
106 const rtl::OUString& GetHlink() const { return maHlink; }
108 private:
109 rtl::OUString maMacro;
110 rtl::OUString maHlink;
113 //-------------------------------------------------------------------------
115 #endif