public void Text(ITextProperties textInfo)
 {
     if (!_tqaDeletion)
     {
         _buffer.Text(textInfo);
     }
 }
Ejemplo n.º 2
0
        private IText CreateText(string segText)
        {
            ITextProperties textProperties = PropertiesFactory.CreateTextProperties(segText);
            IText           textContent    = ItemFactory.CreateText(textProperties);

            return(textContent);
        }
Ejemplo n.º 3
0
        public override void InlinePlaceholderTag(IPlaceholderTagProperties tagInfo)
        {
            string originalText = tagInfo.GetMetaData(EmbeddedContentMetaKey);

            if (originalText != null)
            {
                ITextProperties textInfo = PropertiesFactory.CreateTextProperties(originalText);
                base.Text(textInfo);
            }
            else
            {
                base.InlinePlaceholderTag(tagInfo);
            }
        }
        // protect text from being altered during translation
        // by locking it
        private void WriteLockedContent(string LockedContent)
        {
            //create opening tag for locked content
            ILockedContentProperties Lockedprops = PropertiesFactory.CreateLockedContentProperties(LockTypeFlags.Manual);

            Output.LockedContentStart(Lockedprops);

            //create text inside of locked content
            ITextProperties textProps = PropertiesFactory.CreateTextProperties(LockedContent);

            Output.Text(textProps);

            //close locked content
            Output.LockedContentEnd();
        }
Ejemplo n.º 5
0
            protected override void Execute()
            {
                //get the active segment pair from the current active document in the editor
                var activeSegmentPair = Controller.ActiveDocument.ActiveSegmentPair;

                if (activeSegmentPair == null)
                {
                    return;
                }

                //Create an instance of the document item factory that is needed to create segment elements
                IDocumentItemFactory documentItemFactory = DefaultDocumentItemFactory.CreateInstance();

                ITextProperties firstTextProp = documentItemFactory
                                                .PropertiesFactory
                                                .CreateTextProperties(OpusCatProviderLanguageDirection.CurrentTranslation.ToPlain());
                IText firstText = documentItemFactory.CreateText(firstTextProp);

                activeSegmentPair.Target.Add(firstText);
                Controller.ActiveDocument.UpdateSegmentPair(activeSegmentPair);
            }
 public override void Text(ITextProperties textInfo)
 {
     _targetFile.Write(textInfo.Text);
 }
 // output the translatable strings
 public override void Text(ITextProperties textInfo)
 {
     _preview.Write(textInfo.Text);
 }
        // output translatable text
        private void WriteText(string TextContent)
        {
            ITextProperties textProperties = PropertiesFactory.CreateTextProperties(TextContent);

            Output.Text(textProperties);
        }
Ejemplo n.º 9
0
        private IText CreateText(string textContent)
        {
            ITextProperties textProps = _itemFactory.PropertiesFactory.CreateTextProperties(textContent);

            return(_itemFactory.CreateText(textProps));
        }