sync master with lastest vba changes
[ooovba.git] / binfilter / inc / bf_svtools / imapcirc.hxx
blob97738b2e592fbba9669d34e49145fcc67d7efd17
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: imapcirc.hxx,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
30 #ifndef _GOODIES_IMAPCIRC_HXX
31 #define _GOODIES_IMAPCIRC_HXX
33 #ifndef INCLUDED_SVTDLLAPI_H
34 #include "bf_svtools/svtdllapi.h"
35 #endif
37 #ifndef _GEN_HXX //autogen
38 #include <tools/gen.hxx>
39 #endif
41 #ifndef _GOODIES_IMAPOBJ_HXX
42 #include <bf_svtools/imapobj.hxx>
43 #endif
45 class Fraction;
47 namespace binfilter
50 class IMapCircleObject : public IMapObject
52 Point aCenter;
53 ULONG nRadius;
55 void ImpConstruct( const Point& rCenter, ULONG nRad, BOOL bPixel );
57 protected:
59 // Binaer-Im-/Export
60 virtual void WriteIMapObject( SvStream& rOStm ) const;
61 virtual void ReadIMapObject( SvStream& rIStm );
63 public:
65 IMapCircleObject() {};
66 IMapCircleObject( const Point& rCenter, ULONG nRad,
67 const String& rURL,
68 const String& rAltText,
69 const String& rDesc,
70 const String& rTarget,
71 const String& rName,
72 BOOL bActive = TRUE,
73 BOOL bPixelCoords = TRUE );
74 virtual ~IMapCircleObject() {};
76 virtual UINT16 GetType() const;
77 virtual BOOL IsHit( const Point& rPoint ) const;
79 Point GetCenter( BOOL bPixelCoords = TRUE ) const;
80 ULONG GetRadius( BOOL bPixelCoords = TRUE ) const;
82 // liefert das BoundRect des Kreis-Objektes in 1/100mm
83 virtual Rectangle GetBoundRect() const;
85 void Scale( const Fraction& rFractX, const Fraction& rFracY );
87 using IMapObject::IsEqual;
88 BOOL IsEqual( const IMapCircleObject& rEqObj );
93 #endif