2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 12:12:37 +01: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 14:20:59 -05: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-22 23:54:25 -05:00
|
|
|
namespace mozilla {
|
|
|
|
class DOMSVGPoint;
|
|
|
|
}
|
|
|
|
|
2009-01-12 14:20:59 -05: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 17:49:24 +01: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 11:56:38 -04:00
|
|
|
virtual uint32_t GetNumberOfChars()=0;
|
2009-05-29 12:15:40 +02:00
|
|
|
virtual float GetComputedTextLength()=0;
|
2012-08-22 11:56:38 -04:00
|
|
|
virtual float GetSubStringLength(uint32_t charnum, uint32_t fragmentChars)=0;
|
2012-12-22 23:54:25 -05:00
|
|
|
virtual int32_t GetCharNumAtPosition(mozilla::DOMSVGPoint *point)=0;
|
2011-05-07 18:08:41 +01: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;
|
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__
|