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 .
20 #ifndef INCLUDED_SVX_SVDOGRP_HXX
21 #define INCLUDED_SVX_SVDOGRP_HXX
23 #include <svx/svdobj.hxx>
24 #include <svx/svxdllapi.h>
27 // Vorausdeklarationen
38 class SVX_DLLPUBLIC SdrObjGroup
: public SdrObject
42 virtual sdr::contact::ViewContact
* CreateObjectSpecificViewContact() SAL_OVERRIDE
;
43 virtual sdr::properties::BaseProperties
* CreateObjectSpecificProperties() SAL_OVERRIDE
;
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() SAL_OVERRIDE
;
55 virtual sal_uInt16
GetObjIdentifier() const SAL_OVERRIDE
;
56 virtual void TakeObjInfo(SdrObjTransformInfoRec
& rInfo
) const SAL_OVERRIDE
;
57 virtual SdrLayerID
GetLayer() const SAL_OVERRIDE
;
58 virtual void NbcSetLayer(SdrLayerID nLayer
) SAL_OVERRIDE
;
59 virtual void SetObjList(SdrObjList
* pNewObjList
) SAL_OVERRIDE
;
60 virtual void SetPage(SdrPage
* pNewPage
) SAL_OVERRIDE
;
61 virtual void SetModel(SdrModel
* pNewModel
) SAL_OVERRIDE
;
62 virtual bool HasRefPoint() const SAL_OVERRIDE
;
63 virtual Point
GetRefPoint() const SAL_OVERRIDE
;
64 virtual void SetRefPoint(const Point
& rPnt
) SAL_OVERRIDE
;
65 virtual SdrObjList
* GetSubList() const SAL_OVERRIDE
;
67 virtual const Rectangle
& GetCurrentBoundRect() const SAL_OVERRIDE
;
68 virtual const Rectangle
& GetSnapRect() const SAL_OVERRIDE
;
70 virtual SdrObjGroup
* Clone() const SAL_OVERRIDE
;
71 SdrObjGroup
& operator=(const SdrObjGroup
& rObj
);
73 virtual OUString
TakeObjNameSingul() const SAL_OVERRIDE
;
74 virtual OUString
TakeObjNamePlural() const SAL_OVERRIDE
;
76 virtual void RecalcSnapRect() SAL_OVERRIDE
;
77 virtual basegfx::B2DPolyPolygon
TakeXorPoly() const SAL_OVERRIDE
;
79 // special drag methods
80 virtual bool beginSpecialDrag(SdrDragStat
& rDrag
) const SAL_OVERRIDE
;
82 virtual bool BegCreate(SdrDragStat
& rStat
) SAL_OVERRIDE
;
84 virtual long GetRotateAngle() const SAL_OVERRIDE
;
85 virtual long GetShearAngle(bool bVertical
= false) const SAL_OVERRIDE
;
87 virtual void Move(const Size
& rSiz
) SAL_OVERRIDE
;
88 virtual void Resize(const Point
& rRef
, const Fraction
& xFact
, const Fraction
& yFact
, bool bUnsetRelative
= true) SAL_OVERRIDE
;
89 virtual void Rotate(const Point
& rRef
, long nAngle
, double sn
, double cs
) SAL_OVERRIDE
;
90 virtual void Mirror(const Point
& rRef1
, const Point
& rRef2
) SAL_OVERRIDE
;
91 virtual void Shear(const Point
& rRef
, long nAngle
, double tn
, bool bVShear
) SAL_OVERRIDE
;
92 virtual void SetAnchorPos(const Point
& rPnt
) SAL_OVERRIDE
;
93 virtual void SetRelativePos(const Point
& rPnt
) SAL_OVERRIDE
;
94 virtual void SetSnapRect(const Rectangle
& rRect
) SAL_OVERRIDE
;
95 virtual void SetLogicRect(const Rectangle
& rRect
) SAL_OVERRIDE
;
97 virtual void NbcMove(const Size
& rSiz
) SAL_OVERRIDE
;
98 virtual void NbcResize(const Point
& rRef
, const Fraction
& xFact
, const Fraction
& yFact
) SAL_OVERRIDE
;
99 virtual void NbcRotate(const Point
& rRef
, long nAngle
, double sn
, double cs
) SAL_OVERRIDE
;
100 virtual void NbcMirror(const Point
& rRef1
, const Point
& rRef2
) SAL_OVERRIDE
;
101 virtual void NbcShear(const Point
& rRef
, long nAngle
, double tn
, bool bVShear
) SAL_OVERRIDE
;
102 virtual void NbcSetAnchorPos(const Point
& rPnt
) SAL_OVERRIDE
;
103 virtual void NbcSetRelativePos(const Point
& rPnt
) SAL_OVERRIDE
;
104 virtual void NbcSetSnapRect(const Rectangle
& rRect
) SAL_OVERRIDE
;
105 virtual void NbcSetLogicRect(const Rectangle
& rRect
) SAL_OVERRIDE
;
107 virtual void NbcReformatText() SAL_OVERRIDE
;
108 virtual void ReformatText() SAL_OVERRIDE
;
110 virtual SdrObject
* DoConvertToPolyObj(bool bBezier
, bool bAddText
) const SAL_OVERRIDE
;
112 virtual void dumpAsXml(struct _xmlTextWriter
* pWriter
) const SAL_OVERRIDE
;
115 #endif // INCLUDED_SVX_SVDOGRP_HXX
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */