2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef __NS_ISVGGLYPHFRAGMENTNODE_H__
|
|
|
|
#define __NS_ISVGGLYPHFRAGMENTNODE_H__
|
|
|
|
|
2009-01-12 11:20:59 -08:00
|
|
|
#include "nsQueryFrame.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-03-20 05:15:55 -07:00
|
|
|
class nsSVGGlyphFrame;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-12-22 20:54:25 -08:00
|
|
|
namespace mozilla {
|
2013-01-06 06:14:43 -08:00
|
|
|
class nsISVGPoint;
|
2012-12-22 20:54:25 -08:00
|
|
|
}
|
|
|
|
|
2009-01-12 11:20:59 -08:00
|
|
|
class nsISVGGlyphFragmentNode : public nsQueryFrame
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
public:
|
2009-09-12 09:49:24 -07:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsISVGGlyphFragmentNode)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
virtual uint32_t GetNumberOfChars()=0;
|
2009-05-29 03:15:40 -07:00
|
|
|
virtual float GetComputedTextLength()=0;
|
2012-08-22 08:56:38 -07:00
|
|
|
virtual float GetSubStringLength(uint32_t charnum, uint32_t fragmentChars)=0;
|
2013-01-06 06:14:43 -08:00
|
|
|
virtual int32_t GetCharNumAtPosition(mozilla::nsISVGPoint *point)=0;
|
2011-05-07 10:08:41 -07:00
|
|
|
NS_IMETHOD_(nsSVGGlyphFrame *) GetFirstGlyphFrame()=0;
|
|
|
|
NS_IMETHOD_(nsSVGGlyphFrame *) GetNextGlyphFrame()=0;
|
2011-09-28 23:19:26 -07:00
|
|
|
NS_IMETHOD_(void) SetWhitespaceCompression(bool aCompressWhitespace)=0;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __NS_ISVGGLYPHFRAGMENTNODE_H__
|