|
// -- FILE ------------------------------------------------------------------
// name : RtfVisualVisitorBase.cs
// project : RTF Framelet
// created : Leon Poyyayil - 2008.05.26
// language : c#
// environment: .NET 2.0
// copyright : (c) 2004-2010 by Itenso GmbH, Switzerland
// --------------------------------------------------------------------------
namespace Itenso.Rtf.Support
{
// ------------------------------------------------------------------------
public class RtfVisualVisitorBase : IRtfVisualVisitor
{
// ----------------------------------------------------------------------
public void VisitText( IRtfVisualText visualText )
{
if ( visualText != null )
{
DoVisitText( visualText );
}
} // VisitText
// ----------------------------------------------------------------------
protected virtual void DoVisitText( IRtfVisualText visualText )
{
} // DoVisitText
// ----------------------------------------------------------------------
public void VisitBreak( IRtfVisualBreak visualBreak )
{
if ( visualBreak != null )
{
DoVisitBreak( visualBreak );
}
} // VisitBreak
// ----------------------------------------------------------------------
protected virtual void DoVisitBreak( IRtfVisualBreak visualBreak )
{
} // DoVisitBreak
// ----------------------------------------------------------------------
public void VisitSpecial( IRtfVisualSpecialChar visualSpecialChar )
{
if ( visualSpecialChar != null )
{
DoVisitSpecial( visualSpecialChar );
}
} // VisitSpecial
// ----------------------------------------------------------------------
protected virtual void DoVisitSpecial( IRtfVisualSpecialChar visualSpecialChar )
{
} // DoVisitSpecial
// ----------------------------------------------------------------------
public void VisitImage( IRtfVisualImage visualImage )
{
if ( visualImage != null )
{
DoVisitImage( visualImage );
}
} // VisitImage
// ----------------------------------------------------------------------
protected virtual void DoVisitImage( IRtfVisualImage visualImage )
{
} // DoVisitImage
} // class RtfVisualVisitorBase
} // namespace Itenso.Rtf.Support
// -- EOF -------------------------------------------------------------------
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
👨 Senior .NET Software Engineer
🚀 My Open Source Projects
-
Time Period Library 👉
GitHub
-
Payroll Engine 👉
GitHub
Feedback and contributions are welcome.