예제 #1
0
 public static IPoint GetPoint(IActionInstance instance)
 {
     if (instance == null)
     {
         return(null);
     }
     return(ServiceProvider.Current.Control.GetPoint(instance.Point));
 }
예제 #2
0
        protected override ICompiledTextRunInstance CreateTextRunInstance()
        {
            ICompiledTextRunInstance compiledTextRunInstance = base.CreateTextRunInstance();

            compiledTextRunInstance.MarkupType = MarkupType.HTML;
            if (this.m_currentHyperlinkText != null)
            {
                IActionInstance actionInstance = base.m_IRichTextInstanceCreator.CreateActionInstance();
                actionInstance.SetHyperlinkText(this.m_currentHyperlinkText);
                compiledTextRunInstance.ActionInstance = actionInstance;
            }
            return(compiledTextRunInstance);
        }
예제 #3
0
 private void ParseActionElement(int listLevel)
 {
     RevertActionElement(HtmlElement.HtmlElementType.A);
     if (!m_currentHtmlElement.IsEmptyElement && m_currentHtmlElement.HasAttributes && m_currentHtmlElement.Attributes.TryGetValue("href", out string value))
     {
         IActionInstance actionInstance = m_IRichTextInstanceCreator.CreateActionInstance();
         actionInstance.SetHyperlinkText(value);
         if (actionInstance.HyperlinkText != null)
         {
             m_currentStyle                = m_currentStyle.CreateChildStyle(HtmlElement.HtmlElementType.A);
             m_currentStyle.Color          = new ReportColor("Blue");
             m_currentStyle.TextDecoration = TextDecorations.Underline;
             m_currentHyperlinkText        = value;
         }
     }
 }
예제 #4
0
        private void ParseActionElement(int listLevel)
        {
            this.RevertActionElement(HtmlElement.HtmlElementType.A);
            string text = default(string);

            if (!this.m_currentHtmlElement.IsEmptyElement && this.m_currentHtmlElement.HasAttributes && this.m_currentHtmlElement.Attributes.TryGetValue("href", out text))
            {
                IActionInstance actionInstance = base.m_IRichTextInstanceCreator.CreateActionInstance();
                actionInstance.SetHyperlinkText(text);
                if (actionInstance.HyperlinkText != null)
                {
                    base.m_currentStyle                = base.m_currentStyle.CreateChildStyle(HtmlElement.HtmlElementType.A);
                    base.m_currentStyle.Color          = new ReportColor("Blue");
                    base.m_currentStyle.TextDecoration = TextDecorations.Underline;
                    this.m_currentHyperlinkText        = text;
                }
            }
        }
예제 #5
0
 public static IPoint GetPoint(this IActionInstance inst)
 {
     return(ActionInstances.GetPoint(inst));
 }
예제 #6
0
 public static int GetAnalogPointState(IActionInstance inst, BlockState blockState = null)
 {
     throw new NotImplementedException();
 }
예제 #7
0
 public void CommunicateActionTo(IActionReceptor actionReceptor, IActionInstance actionInstance)
 {
     throw new NotImplementedException();
 }