nsSVGGlyphFrame Class Reference

Inheritance diagram for nsSVGGlyphFrame:

Inheritance graph
[legend]
Collaboration diagram for nsSVGGlyphFrame:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Protected Member Functions

Protected Attributes

Friends


Constructor & Destructor Documentation

nsSVGGlyphFrame::nsSVGGlyphFrame  )  [protected]
 

Definition at line 181 of file nsSVGGlyphFrame.cpp.

nsSVGGlyphFrame::~nsSVGGlyphFrame  )  [protected, virtual]
 

Definition at line 187 of file nsSVGGlyphFrame.cpp.


Member Function Documentation

virtual nsresult nsSVGGlyphFrame::QueryInterface const nsIID &  aIID,
void **  aInstancePtr
[virtual]
 

Reimplemented from nsFrame.

virtual nsrefcnt nsSVGGlyphFrame::AddRef void   )  [inline, virtual]
 

Reimplemented from nsFrame.

Definition at line 76 of file nsSVGGlyphFrame.cpp.

virtual nsrefcnt nsSVGGlyphFrame::Release void   )  [inline, virtual]
 

Reimplemented from nsFrame.

Definition at line 77 of file nsSVGGlyphFrame.cpp.

virtual nsresult nsSVGGlyphFrame::Init nsIPresContext *  aPresContext,
nsIContent *  aContent,
nsIFrame aParent,
nsStyleContext *  aContext,
nsIFrame aPrevInFlow
[virtual]
 

Called to initialize the frame. This is called immediately after creating the frame.

If the frame is a continuing frame, then aPrevInFlow indicates the previous frame (the frame that was split). You should connect the continuing frame to its prev-in-flow, e.g. by using the AppendToFlow() function

If you want a view associated with your frame, you should create the view now.

Parameters:
aContent the content object associated with the frame
aGeometricParent the geometric parent frame
aContentParent the content parent frame
aContext the style context associated with the frame
aPrevInFlow the prev-in-flow frame
See also:
#AppendToFlow()

Reimplemented from nsFrame.

virtual nsresult nsSVGGlyphFrame::ContentChanged nsIPresContext *  aPresContext,
nsIContent *  aChild,
nsISupports *  aSubContent
[virtual]
 

This call is invoked when content is changed in the content tree. The first frame that maps that content is asked to deal with the change by generating an incremental reflow command.

Parameters:
aPresContext the presentation context
aContent the content node that was changed
aSubContent a hint to the frame about the change

Reimplemented from nsFrame.

virtual nsresult nsSVGGlyphFrame::SetSelected nsIPresContext *  aPresContext,
nsIDOMRange *  aRange,
PRBool  aSelected,
nsSpread  aSpread
[virtual]
 

Called to set the selection of the frame based on frame offsets. you can FORCE the frame to redraw event if aSelected == the frame selection with the last parameter. data in struct may be changed when passed in.

Parameters:
aRange is the range that will dictate if the frames need to be redrawn null means the whole content needs to be redrawn
aSelected is it selected?
aSpread should it spread the selection to flow elements around it? or go down to its children?

Reimplemented from nsFrame.

virtual nsresult nsSVGGlyphFrame::GetSelected PRBool *  aSelected  )  const [virtual]
 

Reimplemented from nsFrame.

virtual nsresult nsSVGGlyphFrame::IsSelectable PRBool *  aIsSelectable,
PRUint8 *  aSelectStyle
[virtual]
 

virtual nsresult nsSVGGlyphFrame::Paint nsISVGRendererCanvas canvas,
const nsRect &  dirtyRectTwips
[virtual]
 

Implements nsISVGChildFrame.

virtual nsresult nsSVGGlyphFrame::GetFrameForPoint float  x,
float  y,
nsIFrame **  hit
[virtual]
 

Implements nsISVGChildFrame.

virtual already_AddRefed<nsISVGRendererRegion> nsSVGGlyphFrame::GetCoveredRegion  )  [virtual]
 

Implements nsISVGChildFrame.

virtual nsresult nsSVGGlyphFrame::InitialUpdate  )  [virtual]
 

Implements nsISVGChildFrame.

virtual nsresult nsSVGGlyphFrame::NotifyCTMChanged  )  [virtual]
 

Implements nsISVGChildFrame.

virtual nsresult nsSVGGlyphFrame::NotifyRedrawSuspended  )  [virtual]
 

Implements nsISVGChildFrame.

virtual nsresult nsSVGGlyphFrame::NotifyRedrawUnsuspended  )  [virtual]
 

Implements nsISVGChildFrame.

virtual nsresult nsSVGGlyphFrame::GetBBox nsIDOMSVGRect **  _retval  )  [virtual]
 

Implements nsISVGChildFrame.

nsresult nsSVGGlyphFrame::GetPresContext nsIPresContext **  aPresContext  )  [virtual]
 

Definition at line 433 of file nsSVGGlyphFrame.cpp.

References nsIFrame::GetPresContext().

nsresult nsSVGGlyphFrame::GetCTM nsIDOMSVGMatrix **  aCTM  )  [virtual]
 

Definition at line 443 of file nsSVGGlyphFrame.cpp.

References nsISVGTextFrame::GetCTM(), and GetTextFrame().

nsresult nsSVGGlyphFrame::GetStrokeOpacity float *  aStrokeOpacity  )  [virtual]
 

Definition at line 455 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetStrokeWidth float *  aStrokeWidth  )  [virtual]
 

Definition at line 463 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetStrokeDashArray float **  arr,
PRUint32 *  count
[virtual]
 

Definition at line 471 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetStrokeDashoffset float *  aStrokeDashoffset  )  [virtual]
 

Definition at line 516 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetStrokeLinecap PRUint16 *  aStrokeLinecap  )  [virtual]
 

Definition at line 524 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetStrokeLinejoin PRUint16 *  aStrokeLinejoin  )  [virtual]
 

Definition at line 532 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetStrokeMiterlimit float *  aStrokeMiterlimit  )  [virtual]
 

Definition at line 540 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetFillOpacity float *  aFillOpacity  )  [virtual]
 

Definition at line 548 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetFillRule PRUint16 *  aFillRule  )  [virtual]
 

Definition at line 556 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetStrokePaintType PRUint16 *  aStrokePaintType  )  [virtual]
 

Definition at line 564 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetStrokePaint nscolor aStrokePaint  )  [virtual]
 

Definition at line 572 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetFillPaintType PRUint16 *  aFillPaintType  )  [virtual]
 

Definition at line 580 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetFillPaint nscolor aFillPaint  )  [virtual]
 

Definition at line 588 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetFont nsFont aFont  )  [virtual]
 

Definition at line 599 of file nsSVGGlyphFrame.cpp.

References nsFont::decorations, nsIFrame::GetStyleContext(), nsIFrame::mParent, nsIFrame::mStyleContext, NS_FONT_DECORATION_LINE_THROUGH, NS_FONT_DECORATION_OVERLINE, and NS_FONT_DECORATION_UNDERLINE.

nsresult nsSVGGlyphFrame::GetCharacterData nsAString &  aCharacterData  )  [virtual]
 

Definition at line 625 of file nsSVGGlyphFrame.cpp.

References mCharacterData.

nsresult nsSVGGlyphFrame::GetTextRendering PRUint16 *  aTextRendering  )  [virtual]
 

Definition at line 633 of file nsSVGGlyphFrame.cpp.

References nsIFrame::mStyleContext.

nsresult nsSVGGlyphFrame::GetMetrics nsISVGRendererGlyphMetrics **  aMetrics  )  [virtual]
 

Definition at line 644 of file nsSVGGlyphFrame.cpp.

References mMetrics.

nsresult nsSVGGlyphFrame::GetX float *  aX  )  [virtual]
 

Definition at line 653 of file nsSVGGlyphFrame.cpp.

References mX.

nsresult nsSVGGlyphFrame::GetY float *  aY  )  [virtual]
 

Definition at line 661 of file nsSVGGlyphFrame.cpp.

References mY.

nsresult nsSVGGlyphFrame::GetHasHighlight PRBool *  aHasHighlight  )  [virtual]
 

Definition at line 669 of file nsSVGGlyphFrame.cpp.

References nsIFrame::GetFrameState(), NS_FRAME_SELECTED_CONTENT, and nsFrameState.

Referenced by GetHighlight().

nsresult nsSVGGlyphFrame::GetHighlight PRUint32 *  charnum,
PRUint32 *  nchars,
nscolor foreground,
nscolor background
[virtual]
 

Definition at line 728 of file nsSVGGlyphFrame.cpp.

References CompressIndex(), GetHasHighlight(), nsIFrame::GetPresContext(), nsFrame::GetSelectionController(), nsISVGGlyphGeometrySource::hasHighlight, nsIFrame::mContent, and nsISVGGeometrySource::presContext.

void nsSVGGlyphFrame::SetGlyphPosition float  x,
float  y
[virtual]
 

Implements nsISVGGlyphFragmentLeaf.

Definition at line 834 of file nsSVGGlyphFrame.cpp.

References mX, mY, UpdateGeometry(), nsISVGGlyphGeometrySource::UPDATEMASK_X, and nsISVGGlyphGeometrySource::UPDATEMASK_Y.

float nsSVGGlyphFrame::GetGlyphPositionX  )  [virtual]
 

Implements nsISVGGlyphFragmentLeaf.

Definition at line 843 of file nsSVGGlyphFrame.cpp.

References mX.

float nsSVGGlyphFrame::GetGlyphPositionY  )  [virtual]
 

Implements nsISVGGlyphFragmentLeaf.

Definition at line 849 of file nsSVGGlyphFrame.cpp.

References mY.

nsresult nsSVGGlyphFrame::GetGlyphMetrics nsISVGRendererGlyphMetrics **  metrics  )  [virtual]
 

Implements nsISVGGlyphFragmentLeaf.

Definition at line 856 of file nsSVGGlyphFrame.cpp.

References mMetrics.

PRBool nsSVGGlyphFrame::IsStartOfChunk  )  [virtual]
 

Implements nsISVGGlyphFragmentLeaf.

Definition at line 864 of file nsSVGGlyphFrame.cpp.

void nsSVGGlyphFrame::GetAdjustedPosition float &  x,
float &  y
[virtual]
 

Implements nsISVGGlyphFragmentLeaf.

Definition at line 874 of file nsSVGGlyphFrame.cpp.

PRUint32 nsSVGGlyphFrame::GetNumberOfChars  )  [virtual]
 

Implements nsISVGGlyphFragmentLeaf.

Definition at line 879 of file nsSVGGlyphFrame.cpp.

References mCharacterData.

PRUint32 nsSVGGlyphFrame::GetCharNumberOffset  )  [virtual]
 

Implements nsISVGGlyphFragmentLeaf.

Definition at line 885 of file nsSVGGlyphFrame.cpp.

References mCharOffset.

nsISVGGlyphFragmentLeaf * nsSVGGlyphFrame::GetFirstGlyphFragment  )  [virtual]
 

Implements nsISVGGlyphFragmentNode.

Definition at line 894 of file nsSVGGlyphFrame.cpp.

nsISVGGlyphFragmentLeaf * nsSVGGlyphFrame::GetNextGlyphFragment  )  [virtual]
 

Implements nsISVGGlyphFragmentNode.

Definition at line 900 of file nsSVGGlyphFrame.cpp.

References nsISVGGlyphFragmentNode::GetFirstGlyphFragment(), nsISVGGlyphFragmentNode::GetNextGlyphFragment(), nsIFrame::GetNextSibling(), nsIFrame::mNextSibling, and nsIFrame::mParent.

PRUint32 nsSVGGlyphFrame::BuildGlyphFragmentTree PRUint32  charNum,
PRBool  lastBranch
[virtual]
 

Implements nsISVGGlyphFragmentNode.

Definition at line 920 of file nsSVGGlyphFrame.cpp.

References mCharacterData, mCharOffset, and nsIFrame::mContent.

void nsSVGGlyphFrame::NotifyMetricsSuspended  )  [virtual]
 

Implements nsISVGGlyphFragmentNode.

Definition at line 945 of file nsSVGGlyphFrame.cpp.

void nsSVGGlyphFrame::NotifyMetricsUnsuspended  )  [virtual]
 

Implements nsISVGGlyphFragmentNode.

Definition at line 951 of file nsSVGGlyphFrame.cpp.

References GetTextFrame(), mFragmentTreeDirty, mGeometryUpdateFlags, mMetrics, mMetricsUpdateFlags, nsISVGTextFrame::NotifyGlyphMetricsChange(), and nsISVGGlyphGeometrySource::UPDATEMASK_METRICS.

void nsSVGGlyphFrame::NotifyGlyphFragmentTreeSuspended  )  [virtual]
 

Implements nsISVGGlyphFragmentNode.

Definition at line 970 of file nsSVGGlyphFrame.cpp.

void nsSVGGlyphFrame::NotifyGlyphFragmentTreeUnsuspended  )  [virtual]
 

Implements nsISVGGlyphFragmentNode.

Definition at line 976 of file nsSVGGlyphFrame.cpp.

References GetTextFrame(), mFragmentTreeDirty, and nsISVGTextFrame::NotifyGlyphFragmentTreeChange().

void nsSVGGlyphFrame::UpdateGeometry PRUint32  flags,
PRBool  bRedraw = 1
[protected]
 

Definition at line 992 of file nsSVGGlyphFrame.cpp.

References GetOuterSVGFrame(), nsISVGOuterSVGFrame::InvalidateRegion(), nsISVGOuterSVGFrame::IsRedrawSuspended(), mFragmentTreeDirty, mGeometry, mGeometryUpdateFlags, and mMetricsUpdateFlags.

Referenced by SetGlyphPosition().

void nsSVGGlyphFrame::UpdateMetrics PRUint32  flags  )  [protected]
 

Definition at line 1015 of file nsSVGGlyphFrame.cpp.

References GetTextFrame(), nsISVGTextFrame::IsMetricsSuspended(), mFragmentTreeDirty, mGeometryUpdateFlags, mMetrics, mMetricsUpdateFlags, nsISVGTextFrame::NotifyGlyphMetricsChange(), and nsISVGGlyphGeometrySource::UPDATEMASK_METRICS.

void nsSVGGlyphFrame::UpdateFragmentTree  )  [protected]
 

Definition at line 1038 of file nsSVGGlyphFrame.cpp.

References GetTextFrame(), nsISVGTextFrame::IsGlyphFragmentTreeSuspended(), mFragmentTreeDirty, and nsISVGTextFrame::NotifyGlyphFragmentTreeChange().

nsISVGOuterSVGFrame * nsSVGGlyphFrame::GetOuterSVGFrame  )  [protected]
 

Definition at line 1056 of file nsSVGGlyphFrame.cpp.

References nsISVGContainerFrame::GetOuterSVGFrame(), and nsIFrame::mParent.

Referenced by UpdateGeometry().

nsISVGTextFrame * nsSVGGlyphFrame::GetTextFrame  )  [protected]
 

Definition at line 1071 of file nsSVGGlyphFrame.cpp.

References nsISVGTextContainerFrame::GetTextFrame(), and nsIFrame::mParent.

Referenced by GetCTM(), NotifyGlyphFragmentTreeUnsuspended(), NotifyMetricsUnsuspended(), UpdateFragmentTree(), and UpdateMetrics().


Friends And Related Function Documentation

nsresult NS_NewSVGGlyphFrame nsIPresShell *  aPresShell,
nsIContent *  aContent,
nsIFrame parentFrame,
nsIFrame **  aNewFrame
[friend]
 

Definition at line 157 of file nsSVGGlyphFrame.cpp.


Member Data Documentation

nsISVGRendererGlyphGeometry* nsSVGGlyphFrame::mGeometry [protected]
 

Definition at line 143 of file nsSVGGlyphFrame.cpp.

Referenced by UpdateGeometry().

nsISVGRendererGlyphMetrics* nsSVGGlyphFrame::mMetrics [protected]
 

Definition at line 144 of file nsSVGGlyphFrame.cpp.

Referenced by GetGlyphMetrics(), GetMetrics(), NotifyMetricsUnsuspended(), and UpdateMetrics().

float nsSVGGlyphFrame::mX [protected]
 

Definition at line 145 of file nsSVGGlyphFrame.cpp.

Referenced by GetGlyphPositionX(), GetX(), and SetGlyphPosition().

float nsSVGGlyphFrame::mY [protected]
 

Definition at line 145 of file nsSVGGlyphFrame.cpp.

Referenced by GetGlyphPositionY(), GetY(), and SetGlyphPosition().

PRUint32 nsSVGGlyphFrame::mCharOffset [protected]
 

Definition at line 146 of file nsSVGGlyphFrame.cpp.

Referenced by BuildGlyphFragmentTree(), and GetCharNumberOffset().

PRUint32 nsSVGGlyphFrame::mGeometryUpdateFlags [protected]
 

Definition at line 147 of file nsSVGGlyphFrame.cpp.

Referenced by NotifyMetricsUnsuspended(), UpdateGeometry(), and UpdateMetrics().

PRUint32 nsSVGGlyphFrame::mMetricsUpdateFlags [protected]
 

Definition at line 148 of file nsSVGGlyphFrame.cpp.

Referenced by NotifyMetricsUnsuspended(), UpdateGeometry(), and UpdateMetrics().

PRBool nsSVGGlyphFrame::mFragmentTreeDirty [protected]
 

Definition at line 149 of file nsSVGGlyphFrame.cpp.

Referenced by NotifyGlyphFragmentTreeUnsuspended(), NotifyMetricsUnsuspended(), UpdateFragmentTree(), UpdateGeometry(), and UpdateMetrics().

nsString nsSVGGlyphFrame::mCharacterData [protected]
 

Definition at line 150 of file nsSVGGlyphFrame.cpp.

Referenced by BuildGlyphFragmentTree(), GetCharacterData(), and GetNumberOfChars().


The documentation for this class was generated from the following file:
Generated on Wed Sep 10 22:25:45 2003 for Mozilla SVG Project Rendering Backend by doxygen1.3