2010-04-13 12:58:09 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-04-13 12:58:09 +04:00
|
|
|
|
2013-01-06 18:14:43 +04:00
|
|
|
#ifndef mozilla_dom_SVGTextPositioningElement_h
|
|
|
|
#define mozilla_dom_SVGTextPositioningElement_h
|
2010-04-13 12:58:09 +04:00
|
|
|
|
2013-01-06 18:14:43 +04:00
|
|
|
#include "mozilla/dom/SVGTextContentElement.h"
|
2010-07-17 01:42:12 +04:00
|
|
|
#include "SVGAnimatedLengthList.h"
|
2012-01-26 13:57:21 +04:00
|
|
|
#include "SVGAnimatedNumberList.h"
|
2010-04-13 12:58:09 +04:00
|
|
|
|
2010-05-24 18:58:24 +04:00
|
|
|
class nsSVGElement;
|
|
|
|
|
2010-07-17 01:42:12 +04:00
|
|
|
namespace mozilla {
|
|
|
|
class SVGAnimatedLengthList;
|
2013-01-06 18:14:43 +04:00
|
|
|
class DOMSVGAnimatedLengthList;
|
|
|
|
class DOMSVGAnimatedNumberList;
|
2010-07-17 01:42:12 +04:00
|
|
|
|
2013-01-06 18:14:43 +04:00
|
|
|
namespace dom {
|
|
|
|
typedef SVGTextContentElement SVGTextPositioningElementBase;
|
2010-05-24 18:58:24 +04:00
|
|
|
|
2013-01-06 18:14:43 +04:00
|
|
|
class SVGTextPositioningElement : public SVGTextPositioningElementBase
|
2010-04-13 12:58:09 +04:00
|
|
|
{
|
|
|
|
public:
|
2013-01-06 18:14:43 +04:00
|
|
|
// WebIDL
|
|
|
|
already_AddRefed<DOMSVGAnimatedLengthList> X();
|
|
|
|
already_AddRefed<DOMSVGAnimatedLengthList> Y();
|
|
|
|
already_AddRefed<DOMSVGAnimatedLengthList> Dx();
|
|
|
|
already_AddRefed<DOMSVGAnimatedLengthList> Dy();
|
|
|
|
already_AddRefed<DOMSVGAnimatedNumberList> Rotate();
|
|
|
|
|
2010-04-13 12:58:09 +04:00
|
|
|
protected:
|
2010-05-24 18:58:24 +04:00
|
|
|
|
2014-09-01 05:08:04 +04:00
|
|
|
explicit SVGTextPositioningElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
|
2013-01-06 18:14:43 +04:00
|
|
|
: SVGTextPositioningElementBase(aNodeInfo)
|
2010-05-24 18:58:24 +04:00
|
|
|
{}
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual LengthListAttributesInfo GetLengthListInfo() override;
|
|
|
|
virtual NumberListAttributesInfo GetNumberListInfo() override;
|
2010-07-17 01:42:12 +04:00
|
|
|
|
2013-01-06 18:14:43 +04:00
|
|
|
enum { ATTR_X, ATTR_Y, ATTR_DX, ATTR_DY };
|
2010-12-03 19:40:23 +03:00
|
|
|
SVGAnimatedLengthList mLengthListAttributes[4];
|
2010-07-17 01:42:12 +04:00
|
|
|
static LengthListInfo sLengthListInfo[4];
|
|
|
|
|
2010-12-03 19:40:23 +03:00
|
|
|
enum { ROTATE };
|
|
|
|
SVGAnimatedNumberList mNumberListAttributes[1];
|
|
|
|
static NumberListInfo sNumberListInfo[1];
|
2010-04-13 12:58:09 +04:00
|
|
|
};
|
|
|
|
|
2013-01-06 18:14:43 +04:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_SVGTextPositioningElement_h
|