2001-09-29 00:14:13 +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/. */
|
2000-04-01 18:38:51 +04: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 15:39:26 +03:00
|
|
|
#ifndef __NS_ISVGGLYPHFRAGMENTNODE_H__
|
|
|
|
#define __NS_ISVGGLYPHFRAGMENTNODE_H__
|
2000-04-01 18:38:51 +04:00
|
|
|
|
2009-01-12 22:20:59 +03:00
|
|
|
#include "nsQueryFrame.h"
|
2000-04-01 18:38:51 +04:00
|
|
|
|
2012-03-20 16:15:55 +04:00
|
|
|
class nsSVGGlyphFrame;
|
2000-04-01 18:38:51 +04:00
|
|
|
|
2012-12-23 08:54:25 +04:00
|
|
|
namespace mozilla {
|
2013-01-06 18:14:43 +04:00
|
|
|
class nsISVGPoint;
|
2012-12-23 08:54:25 +04:00
|
|
|
}
|
|
|
|
|
2009-01-12 22:20:59 +03: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 15:39:26 +03:00
|
|
|
{
|
|
|
|
public:
|
2009-09-12 20:49:24 +04: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 15:39:26 +03:00
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
virtual uint32_t GetNumberOfChars()=0;
|
2009-05-29 14:15:40 +04:00
|
|
|
virtual float GetComputedTextLength()=0;
|
2012-08-22 19:56:38 +04:00
|
|
|
virtual float GetSubStringLength(uint32_t charnum, uint32_t fragmentChars)=0;
|
2013-01-06 18:14:43 +04:00
|
|
|
virtual int32_t GetCharNumAtPosition(mozilla::nsISVGPoint *point)=0;
|
2011-05-07 21:08:41 +04:00
|
|
|
NS_IMETHOD_(nsSVGGlyphFrame *) GetFirstGlyphFrame()=0;
|
|
|
|
NS_IMETHOD_(nsSVGGlyphFrame *) GetNextGlyphFrame()=0;
|
2011-09-29 10:19:26 +04:00
|
|
|
NS_IMETHOD_(void) SetWhitespaceCompression(bool aCompressWhitespace)=0;
|
2000-04-01 18:38:51 +04: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 15:39:26 +03:00
|
|
|
#endif // __NS_ISVGGLYPHFRAGMENTNODE_H__
|