From 442198860cf1372ff7daa769b7289324394fa753 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 26 Feb 2013 14:37:15 +0000 Subject: [PATCH] --- .../Extension/DocumentExt.cs | 60 ++++++++++++------ .../VEObjects/VETreeNode.cs | 9 ++- PROMS/fmtxml/WST2all.xml | Bin 61224 -> 61884 bytes 3 files changed, 43 insertions(+), 26 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index 511c2771..96ce353b 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -667,7 +667,7 @@ namespace VEPROMS.CSLA.Library string roid = lookup.GetROIDByAccPagID(sel.Text, spPrefix, igPrefix); if (roid != null) { - string roidkey = string.Format("{0}:{1}",rofst.RODbID, roid); + string roidkey = string.Format("{0}:{1}", rofst.RODbID, roid); if (!roids.Contains(roidkey)) roids.Add(roidkey); } @@ -998,26 +998,44 @@ namespace VEPROMS.CSLA.Library } private static LBSelection FindRO() { - LBSelection sel = MyApp.Selection; - LBFind find = sel.Find; - find.ClearFormatting(); - // Search string format - this is MSWord wildcard format - // If you do a search in MSWord, make sure wildcard box is checked and then press the - // Special button to see the definitions of the various wildcards - // [<] - Less-Than Character - // [!<> ]@ - 1 or more characters not including Less-Than, Greater-Than or Space - // - Dash - // [!<> ]@ - 1 or more characters not including Less-Than, Greater-Than or Space - // [>] - Greater-Than Character - find.Text = "[<][!<> ]@-[!<> ]@[>]"; - //find.Wrap = LBWdFindWrap.wdFindStop; - find.Wrap = LBWdFindWrap.wdFindContinue; - find.MatchCase = false; - find.MatchWholeWord = false; - find.MatchWildcards = true; - find.MatchSoundsLike = false; - find.MatchAllWordForms = false; - if (find.Execute()) return sel; + int firstStart = 0; + bool executeResult = false; + LBSelection sel = null; + while (!executeResult) + { + sel = MyApp.Selection; + LBFind find = sel.Find; + find.ClearFormatting(); + // Search string format - this is MSWord wildcard format + // If you do a search in MSWord, make sure wildcard box is checked and then press the + // Special button to see the definitions of the various wildcards + // [<] - Less-Than Character + // [!<> ]@ - 1 or more characters not including Less-Than, Greater-Than or Space + // - Dash + // [!<> ]@ - 1 or more characters not including Less-Than, Greater-Than or Space + // [>] - Greater-Than Character + find.Text = "[<][!<> ]@-[!<> ]@[>]"; + find.Wrap = LBWdFindWrap.wdFindContinue; + find.MatchCase = false; + find.MatchWholeWord = false; + find.MatchWildcards = true; + find.MatchSoundsLike = false; + find.MatchAllWordForms = false; + executeResult = find.Execute(); + // MS Word found 'invalid' ro when text had "[335.0 0; + bool editSteps = !hasMetaSubs || (sectInfo.MyConfig is SectionConfig && (sectInfo.MyConfig as SectionConfig).SubSection_Edit == "Y"); + if (!editSteps) skipIt = true; } if (!skipIt) { diff --git a/PROMS/fmtxml/WST2all.xml b/PROMS/fmtxml/WST2all.xml index 9f813442d9ad2753d3b618c4012f0c978ef96b1c..a28d412b0d967260f2c238d190271f6a37176e1f 100644 GIT binary patch delta 70 zcmV-M0J;CD-UGbj1F(d1lMp8y12q6KlTB_dlW0{kldx_GlLRbclQ3x