bump product version to 4.1.6.2
[LibreOffice.git] / sc / inc / userdat.hxx
bloba13759f55a3d2e3eca6febead7cc9d8dd9488114
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SC_USERDAT_HXX
21 #define SC_USERDAT_HXX
23 #include <svx/svdobj.hxx>
24 #include <svtools/imap.hxx>
25 #include "global.hxx"
26 #include "address.hxx"
29 //-------------------------------------------------------------------------
31 #define SC_DRAWLAYER 0x30334353 // Inventor: "SC30"
33 // Object-Ids fuer UserData
34 #define SC_UD_OBJDATA 1
35 #define SC_UD_IMAPDATA 2
36 #define SC_UD_MACRODATA 3
37 #define SC_UD_ALTOBJDATA 4
39 //-------------------------------------------------------------------------
41 class ScDrawObjFactory
43 DECL_LINK( MakeUserData, SdrObjFactory * );
44 public:
45 ScDrawObjFactory();
46 ~ScDrawObjFactory();
49 //-------------------------------------------------------------------------
51 class SC_DLLPUBLIC ScDrawObjData : public SdrObjUserData
53 public:
54 enum Type { CellNote, ValidationCircle, DetectiveArrow, DrawingObject };
56 ScAddress maStart;
57 ScAddress maEnd;
58 Point maStartOffset;
59 Point maEndOffset;
60 Type meType;
61 Rectangle maLastRect;
63 explicit ScDrawObjData();
65 private:
66 virtual ScDrawObjData* Clone( SdrObject* pObj ) const;
69 //-------------------------------------------------------------------------
71 class ScIMapInfo : public SdrObjUserData
73 ImageMap aImageMap;
75 public:
76 ScIMapInfo();
77 ScIMapInfo( const ImageMap& rImageMap );
78 ScIMapInfo( const ScIMapInfo& rIMapInfo );
79 virtual ~ScIMapInfo();
81 virtual SdrObjUserData* Clone( SdrObject* pObj ) const;
83 void SetImageMap( const ImageMap& rIMap ) { aImageMap = rIMap; }
84 const ImageMap& GetImageMap() const { return aImageMap; }
87 //-------------------------------------------------------------------------
89 class ScMacroInfo : public SdrObjUserData
91 public:
92 ScMacroInfo();
93 virtual ~ScMacroInfo();
95 virtual SdrObjUserData* Clone( SdrObject* pObj ) const;
97 void SetMacro( const OUString& rMacro ) { maMacro = rMacro; }
98 const OUString& GetMacro() const { return maMacro; }
100 void SetHlink( const OUString& rHlink ) { maHlink = rHlink; }
101 const OUString& GetHlink() const { return maHlink; }
103 private:
104 OUString maMacro;
105 OUString maHlink;
108 //-------------------------------------------------------------------------
110 #endif
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */