예제 #1
0
        public override void Init(ExportBase export)
        {
            base.Init(export);
            RTFExport rtfExport = Export as RTFExport;

            cbWysiwyg.Checked    = rtfExport.Wysiwyg;
            cbPageBreaks.Checked = rtfExport.PageBreaks;
            if (rtfExport.Pictures)
            {
                cbbPictures.SelectedIndex = rtfExport.ImageFormat == RTFImageFormat.Metafile ? 1 : (rtfExport.ImageFormat == RTFImageFormat.Jpeg ? 2 : 3);
            }
            else
            {
                cbbPictures.SelectedIndex = 0;
            }
        }
예제 #2
0
        protected override void Done()
        {
            base.Done();
            RTFExport rtfExport = Export as RTFExport;

            rtfExport.Wysiwyg    = cbWysiwyg.Checked;
            rtfExport.PageBreaks = cbPageBreaks.Checked;
            rtfExport.Pictures   = cbbPictures.SelectedIndex > 0;
            if (cbbPictures.SelectedIndex == 1)
            {
                rtfExport.ImageFormat = RTFImageFormat.Metafile;
            }
            else if (cbbPictures.SelectedIndex == 2)
            {
                rtfExport.ImageFormat = RTFImageFormat.Jpeg;
            }
            else
            {
                rtfExport.ImageFormat = RTFImageFormat.Png;
            }
        }