1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
23 #include <svx/svdobj.hxx>
24 #include "svx/svxdllapi.h"
26 //************************************************************
27 // Vorausdeklarationen
28 //************************************************************
34 //************************************************************
36 //************************************************************
38 class SVX_DLLPUBLIC SdrObjGroup
: public SdrObject
42 virtual sdr::contact::ViewContact
* CreateObjectSpecificViewContact();
43 virtual sdr::properties::BaseProperties
* CreateObjectSpecificProperties();
45 SdrObjList
* pSub
; // Subliste (Kinder)
46 Point aRefPoint
; // Referenzpunkt innerhalb der Objektgruppe
47 bool bRefPoint
; // Ist ein RefPoint gesetzt?
52 virtual ~SdrObjGroup();
54 virtual void SetBoundRectDirty();
55 virtual sal_uInt16
GetObjIdentifier() const;
56 virtual void TakeObjInfo(SdrObjTransformInfoRec
& rInfo
) const;
57 virtual SdrLayerID
GetLayer() const;
58 virtual void NbcSetLayer(SdrLayerID nLayer
);
59 virtual void SetObjList(SdrObjList
* pNewObjList
);
60 virtual void SetPage(SdrPage
* pNewPage
);
61 virtual void SetModel(SdrModel
* pNewModel
);
62 virtual bool HasRefPoint() const;
63 virtual Point
GetRefPoint() const;
64 virtual void SetRefPoint(const Point
& rPnt
);
65 virtual SdrObjList
* GetSubList() const;
67 virtual const Rectangle
& GetCurrentBoundRect() const;
68 virtual const Rectangle
& GetSnapRect() const;
70 virtual SdrObjGroup
* Clone() const;
71 SdrObjGroup
& operator=(const SdrObjGroup
& rObj
);
73 virtual void TakeObjNameSingul(String
& rName
) const;
74 virtual void TakeObjNamePlural(String
& rName
) const;
76 virtual void RecalcSnapRect();
77 virtual basegfx::B2DPolyPolygon
TakeXorPoly() const;
79 // special drag methods
80 virtual bool beginSpecialDrag(SdrDragStat
& rDrag
) const;
82 virtual bool BegCreate(SdrDragStat
& rStat
);
84 virtual long GetRotateAngle() const;
85 virtual long GetShearAngle(bool bVertical
= false) const;
87 virtual void Move(const Size
& rSiz
);
88 virtual void Resize(const Point
& rRef
, const Fraction
& xFact
, const Fraction
& yFact
, bool bUnsetRelative
= true);
89 virtual void Rotate(const Point
& rRef
, long nWink
, double sn
, double cs
);
90 virtual void Mirror(const Point
& rRef1
, const Point
& rRef2
);
91 virtual void Shear(const Point
& rRef
, long nWink
, double tn
, bool bVShear
);
92 virtual void SetAnchorPos(const Point
& rPnt
);
93 virtual void SetRelativePos(const Point
& rPnt
);
94 virtual void SetSnapRect(const Rectangle
& rRect
);
95 virtual void SetLogicRect(const Rectangle
& rRect
);
97 virtual void NbcMove(const Size
& rSiz
);
98 virtual void NbcResize(const Point
& rRef
, const Fraction
& xFact
, const Fraction
& yFact
);
99 virtual void NbcRotate(const Point
& rRef
, long nWink
, double sn
, double cs
);
100 virtual void NbcMirror(const Point
& rRef1
, const Point
& rRef2
);
101 virtual void NbcShear(const Point
& rRef
, long nWink
, double tn
, bool bVShear
);
102 virtual void NbcSetAnchorPos(const Point
& rPnt
);
103 virtual void NbcSetRelativePos(const Point
& rPnt
);
104 virtual void NbcSetSnapRect(const Rectangle
& rRect
);
105 virtual void NbcSetLogicRect(const Rectangle
& rRect
);
107 virtual void NbcReformatText();
108 virtual void ReformatText();
110 virtual SdrObject
* DoConvertToPolyObj(sal_Bool bBezier
, bool bAddText
) const;
113 #endif //_SVDOGRP_HXX
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */