build fix
[LibreOffice.git] / include / svx / svdogrp.hxx
blobb1694272d9e9b288ff6a9421c5fb9e3af4a140fc
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 INCLUDED_SVX_SVDOGRP_HXX
21 #define INCLUDED_SVX_SVDOGRP_HXX
23 #include <svx/svdobj.hxx>
24 #include <svx/svxdllapi.h>
27 // Vorausdeklarationen
30 class SdrObjList;
31 class SdrObjListIter;
32 class SfxItemSet;
35 // SdrObjGroup
38 class SVX_DLLPUBLIC SdrObjGroup : public SdrObject
40 private:
41 protected:
42 virtual sdr::contact::ViewContact* CreateObjectSpecificViewContact() override;
43 virtual sdr::properties::BaseProperties* CreateObjectSpecificProperties() override;
45 SdrObjList* pSub; // Subliste (Kinder)
46 Point aRefPoint; // Referenzpunkt innerhalb der Objektgruppe
48 public:
49 SdrObjGroup();
50 virtual ~SdrObjGroup() override;
52 virtual void SetBoundRectDirty() override;
53 virtual sal_uInt16 GetObjIdentifier() const override;
54 virtual void TakeObjInfo(SdrObjTransformInfoRec& rInfo) const override;
55 virtual SdrLayerID GetLayer() const override;
56 virtual void NbcSetLayer(SdrLayerID nLayer) override;
57 virtual void SetObjList(SdrObjList* pNewObjList) override;
58 virtual void SetPage(SdrPage* pNewPage) override;
59 virtual void SetModel(SdrModel* pNewModel) override;
60 virtual SdrObjList* GetSubList() const override;
62 virtual const Rectangle& GetCurrentBoundRect() const override;
63 virtual const Rectangle& GetSnapRect() const override;
65 virtual SdrObjGroup* Clone() const override;
66 SdrObjGroup& operator=(const SdrObjGroup& rObj);
68 virtual OUString TakeObjNameSingul() const override;
69 virtual OUString TakeObjNamePlural() const override;
71 virtual void RecalcSnapRect() override;
72 virtual basegfx::B2DPolyPolygon TakeXorPoly() const override;
74 // special drag methods
75 virtual bool beginSpecialDrag(SdrDragStat& rDrag) const override;
77 virtual bool BegCreate(SdrDragStat& rStat) override;
79 virtual long GetRotateAngle() const override;
80 virtual long GetShearAngle(bool bVertical = false) const override;
82 virtual void Move(const Size& rSiz) override;
83 virtual void Resize(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bUnsetRelative = true) override;
84 virtual void Rotate(const Point& rRef, long nAngle, double sn, double cs) override;
85 virtual void Mirror(const Point& rRef1, const Point& rRef2) override;
86 virtual void Shear(const Point& rRef, long nAngle, double tn, bool bVShear) override;
87 virtual void SetAnchorPos(const Point& rPnt) override;
88 virtual void SetRelativePos(const Point& rPnt) override;
89 virtual void SetSnapRect(const Rectangle& rRect) override;
90 virtual void SetLogicRect(const Rectangle& rRect) override;
92 virtual void NbcMove(const Size& rSiz) override;
93 virtual void NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact) override;
94 virtual void NbcRotate(const Point& rRef, long nAngle, double sn, double cs) override;
95 virtual void NbcMirror(const Point& rRef1, const Point& rRef2) override;
96 virtual void NbcShear(const Point& rRef, long nAngle, double tn, bool bVShear) override;
97 virtual void NbcSetAnchorPos(const Point& rPnt) override;
98 virtual void NbcSetRelativePos(const Point& rPnt) override;
99 virtual void NbcSetSnapRect(const Rectangle& rRect) override;
100 virtual void NbcSetLogicRect(const Rectangle& rRect) override;
102 virtual void NbcReformatText() override;
103 virtual void ReformatText() override;
105 virtual SdrObject* DoConvertToPolyObj(bool bBezier, bool bAddText) const override;
107 virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const override;
110 #endif // INCLUDED_SVX_SVDOGRP_HXX
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */