2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00: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/. */
|
2000-04-01 14:38:51 +00:00
|
|
|
|
|
|
|
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 12:39:26 +00:00
|
|
|
#ifndef __NS_ISVGGLYPHFRAGMENTNODE_H__
|
|
|
|
#define __NS_ISVGGLYPHFRAGMENTNODE_H__
|
2000-04-01 14:38:51 +00:00
|
|
|
|
2009-01-12 19:20:59 +00:00
|
|
|
#include "nsQueryFrame.h"
|
2000-04-01 14:38:51 +00:00
|
|
|
|
2012-03-20 12:15:55 +00:00
|
|
|
class nsSVGGlyphFrame;
|
2000-04-01 14:38:51 +00:00
|
|
|
|
2012-12-23 04:54:25 +00:00
|
|
|
namespace mozilla {
|
2013-01-06 14:14:43 +00:00
|
|
|
class nsISVGPoint;
|
2012-12-23 04:54:25 +00:00
|
|
|
}
|
|
|
|
|
2009-01-12 19:20:59 +00:00
|
|
|
class nsISVGGlyphFragmentNode : public nsQueryFrame
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 12:39:26 +00:00
|
|
|
{
|
|
|
|
public:
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsISVGGlyphFragmentNode)
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 12:39:26 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual uint32_t GetNumberOfChars()=0;
|
2009-05-29 10:15:40 +00:00
|
|
|
virtual float GetComputedTextLength()=0;
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual float GetSubStringLength(uint32_t charnum, uint32_t fragmentChars)=0;
|
2013-01-06 14:14:43 +00:00
|
|
|
virtual int32_t GetCharNumAtPosition(mozilla::nsISVGPoint *point)=0;
|
2011-05-07 17:08:41 +00:00
|
|
|
NS_IMETHOD_(nsSVGGlyphFrame *) GetFirstGlyphFrame()=0;
|
|
|
|
NS_IMETHOD_(nsSVGGlyphFrame *) GetNextGlyphFrame()=0;
|
2011-09-29 06:19:26 +00:00
|
|
|
NS_IMETHOD_(void) SetWhitespaceCompression(bool aCompressWhitespace)=0;
|
2000-04-01 14:38:51 +00:00
|
|
|
};
|
|
|
|
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 12:39:26 +00:00
|
|
|
#endif // __NS_ISVGGLYPHFRAGMENTNODE_H__
|