public void LockedContentStart(ILockedContentProperties lockedContentInfo)
 {
     if (!_tqaDeletion)
     {
         _buffer.LockedContentStart(lockedContentInfo);
     }
 }
Beispiel #2
0
        private ILockedContent CreateLockedContent()
        {
            ILockedContentProperties lockedProps =
                _itemFactory.PropertiesFactory.CreateLockedContentProperties(LockTypeFlags.Manual);

            return(_itemFactory.CreateLockedContent(lockedProps));
        }
        // 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();
        }