示例#1
0
        public static EscapesequenceColorSet Parse(string s)
        {
            EscapesequenceColorSet r = new EscapesequenceColorSet();

            r.Load(s);
            return(r);
        }
示例#2
0
        public RenderProfile()
        {
            //do nothing. properties must be filled
            _backgroundImageFileName = "";
#if !MACRODOC
            _esColorSet = new EscapesequenceColorSet();
#endif
        }
示例#3
0
 private EscapesequenceColorSet(EscapesequenceColorSet a)
 {
     _isDefault = a._isDefault;
     for (int i = 0; i < _colors.Length; i++)
     {
         _colors[i] = a._colors[i];
     }
 }
        public object Clone()
        {
            EscapesequenceColorSet newval = new EscapesequenceColorSet();

            for (int i = 0; i < _colors.Length; i++)
            {
                newval._colors[i] = _colors[i];
            }
            newval._isDefault = _isDefault;
            return(newval);
        }
        public EditEscapeSequenceColor(Color back, Color fore, EscapesequenceColorSet cs)
        {
            //
            // Windows フォーム デザイナ サポートに必要です。
            //
            InitializeComponent();

            _colorBoxes = new ColorButton[8];
            _backColor = back;
            _foreColor = fore;
            _esColorSet = (EscapesequenceColorSet)cs.Clone();
            int ti = 0;

            int y = 8;
            AddBackColorUI(y, ref ti);
            y += 24;

            for (int i = -1; i < 8; i++) {
                AddUI(i, y, ref ti); //-1はデフォルト色設定
                y += 24;
            }

            y += 8;
            _setDefaultButton = new Button();
            _setDefaultButton.Left = 106;
            _setDefaultButton.Width = 144;
            _setDefaultButton.Click += new EventHandler(OnSetDefault);
            _setDefaultButton.Text = ConnectProfilePlugin.Strings.GetString("Form.EditEscapesequenceColor._setDefaultButton");
            _setDefaultButton.Top = y;
            _setDefaultButton.TabIndex = ti++;
            _setDefaultButton.FlatStyle = FlatStyle.System;
            this.Controls.Add(_setDefaultButton);

            y += 32;
            _okButton.Text = ConnectProfilePlugin.Strings.GetString("Common.OK");
            _okButton.Top = y;
            _cancelButton.Text = ConnectProfilePlugin.Strings.GetString("Common.Cancel");
            _cancelButton.Top = y;
            this.Text = ConnectProfilePlugin.Strings.GetString("Form.EditEscapesequenceColor.Text");

            this.ClientSize = new Size(this.ClientSize.Width, y + 32);
        }
示例#6
0
        /// <summary>
        /// <ja>コピーして作成します。</ja>
        /// <en>Initializes with another instance.</en>
        /// </summary>
        public RenderProfile(RenderProfile src)
        {
            _fontName        = src._fontName;
            _cjkFontName     = src._cjkFontName;
            _fontSize        = src._fontSize;
            _lineSpacing     = src._lineSpacing;
            _useClearType    = src._useClearType;
            _enableBoldStyle = src._enableBoldStyle;
            _forceBoldStyle  = src._forceBoldStyle;
            _cjkFont         = _font = null;

            _forecolor = src._forecolor;
            _bgcolor   = src._bgcolor;
#if !MACRODOC
            _esColorSet = (EscapesequenceColorSet)src._esColorSet.Clone();
#endif
            _bgbrush = _brush = null;

            _backgroundImageFileName = src._backgroundImageFileName;
            _imageLoadIsAttempted    = false;
            _imageStyle = src.ImageStyle;
        }
示例#7
0
 public static EscapesequenceColorSet Parse(string s) {
     EscapesequenceColorSet r = new EscapesequenceColorSet();
     r.Load(s);
     return r;
 }
示例#8
0
 private EscapesequenceColorSet(EscapesequenceColorSet a) {
     _isDefault = a._isDefault;
     for (int i = 0; i < _colors.Length; i++) {
         _colors[i] = a._colors[i];
     }
 }
示例#9
0
        public RenderProfile() {
            //do nothing. properties must be filled
            _backgroundImageFileName = "";
#if !MACRODOC
            _esColorSet = new EscapesequenceColorSet();
#endif
        }
示例#10
0
        /// <summary>
        /// <ja>コピーして作成します。</ja>
        /// <en>Initializes with another instance.</en>
        /// </summary>
        public RenderProfile(RenderProfile src) {
            _fontName = src._fontName;
            _cjkFontName = src._cjkFontName;
            _fontSize = src._fontSize;
            _lineSpacing = src._lineSpacing;
            _useClearType = src._useClearType;
            _enableBoldStyle = src._enableBoldStyle;
            _forceBoldStyle = src._forceBoldStyle;
            _cjkFont = _font = null;

            _forecolor = src._forecolor;
            _bgcolor = src._bgcolor;
#if !MACRODOC
            _esColorSet = (EscapesequenceColorSet)src._esColorSet.Clone();
#endif
            _bgbrush = _brush = null;

            _backgroundImageFileName = src._backgroundImageFileName;
            _imageLoadIsAttempted = false;
            _imageStyle = src.ImageStyle;
        }