Page Num Transition (for grids)
This commit is contained in:
@@ -481,6 +481,7 @@ namespace Volian.Controls.Library
|
||||
if (!MyFlexGrid.IsDirty && !IsSaving) return;
|
||||
List<int> RtfRoUsageList = new List<int>();
|
||||
List<int> RtfTransList = new List<int>();
|
||||
List<int> RtfTransPageNumList = new List<int>();
|
||||
|
||||
int r = 0;
|
||||
int c = 0;
|
||||
@@ -524,6 +525,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
int tid = int.Parse(myMatch.Groups[2].Value);
|
||||
RtfTransList.Add(tid);
|
||||
if (m.Groups[3].Value.Contains("(Page ~)")) RtfTransPageNumList.Add(tid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -567,7 +569,17 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
List<int> delTrans = new List<int>();
|
||||
foreach (TransitionInfo ti in MyItemInfo.MyContent.ContentTransitions)
|
||||
{
|
||||
if (!RtfTransList.Contains(ti.TransitionID)) delTrans.Add(ti.TransitionID);
|
||||
else if (RtfTransPageNumList.Contains(ti.TransitionID))
|
||||
{
|
||||
using (Transition t = ti.Get())
|
||||
{
|
||||
t.Config = "<Config><Transition Formatted=\"True\" /></Config>";
|
||||
t.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (int dt in delTrans) Transition.Delete(dt);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user