Change Manager

This commit is contained in:
Rich
2011-08-01 20:20:39 +00:00
parent 1d910db31a
commit 792351c922
14 changed files with 2329 additions and 42 deletions

View File

@@ -342,8 +342,12 @@ namespace Volian.Controls.Library
{
if (_FormatFont == null)
{
Font formatFont = MyItemInfo.GetItemFont().WindowsFont; // OrigDisplayText.TextFont.WindowsFont;
if (MyItemInfo.IsTable || MyItemInfo.IsFigure)
Font formatFont;
if (MyItemInfo != null)
formatFont = MyItemInfo.GetItemFont().WindowsFont; // OrigDisplayText.TextFont.WindowsFont;
else
formatFont = Font;
if (MyItemInfo != null && (MyItemInfo.IsTable || MyItemInfo.IsFigure))
_FormatFont = formatFont;
else
{
@@ -357,9 +361,18 @@ namespace Volian.Controls.Library
}
return _FormatFont;
}
set { _FormatFont = value; }
}
public void SetupRichText(string rtf, VE_Font vFont)
{
//FormatFont = vFont.WindowsFont;
DisplayText vlnText = new DisplayText(rtf, vFont, true);
AddRtfText(vlnText.StartText);
ReadOnly = true;
}
public void RefreshDisplay()
{
if (Disposing) return;
RefreshDisplay(ActiveMode);
}
// RefreshDisplay is used to update the rtb for an entire Item as defined by MyItemInfo.