public void ExecuteInsertTableRow()
        {
            if (!EverInitialized)
            {
                return;
            }

            var table = CurrentSelectionTable as IHTMLTable;

            if (table != null)
            {
                int rowIndex = CurrentSelectionTableRowIndex;

                var row =
                    HtmlEditorTableNewForm.AddTableRowsAfterRow(
                        table,
                        rowIndex,
                        1);

                // Set focus to first cell in the new line.
                if (row != null)
                {
                    var cell = row.cells.item(0, 0) as IHTMLTableCell;
                    MoveCaretToElement(cell as IHTMLElement);
                }
            }
        }
Beispiel #2
0
        public void ExecuteTableAddTableColumn()
        {
            var table = CurrentSelectionTable as IHTMLTable;

            if (table != null)
            {
                HtmlEditorTableNewForm.AddTableColumnsAtRight(
                    table,
                    1);
            }
        }
Beispiel #3
0
        public void ExecuteTableAddTableRow()
        {
            var table = CurrentSelectionTable as IHTMLTable;

            if (table != null)
            {
                var row = HtmlEditorTableNewForm.AddTableRowsAtBottom(table, 1);

                MoveCaretToElement(row.cells.item(0, 0) as IHTMLElement);
            }
        }
        public void ExecuteInsertTable()
        {
            using (var form = new HtmlEditorTableNewForm())
            {
                form.ExternalInformationProvider = Configuration == null
                    ? null
                    : Configuration.ExternalInformationProvider;

                if (form.ShowDialog(FindForm()) == DialogResult.OK)
                {
                    InsertHtmlAtCurrentSelection(form.Html);
                }
            }
        }
Beispiel #5
0
        public void ExecuteInsertTableColumn()
        {
            var table = CurrentSelectionTable as IHTMLTable;

            if (table != null)
            {
                var columnIndex = CurrentSelectionTableColumnIndex;

                HtmlEditorTableNewForm.AddTableColumnsAfterColumn(
                    table,
                    columnIndex,
                    1);
            }
        }
Beispiel #6
0
        public void ExecuteInsertTable()
        {
            using (var form = new HtmlEditorTableNewForm())
            {
                form.ExternalInformationProvider = Configuration == null
                    ? null
                    : Configuration.ExternalInformationProvider;

                if (form.ShowDialog(FindForm()) == DialogResult.OK)
                {
                    InsertHtmlAtCurrentSelection(form.Html);
                }
            }
        }
        public void ExecuteTableAddTableColumn()
        {
            if (!EverInitialized)
            {
                return;
            }

            var table = CurrentSelectionTable as IHTMLTable;

            if (table != null)
            {
                HtmlEditorTableNewForm.AddTableColumnsAtRight(table, 1);
            }
        }
Beispiel #8
0
        public void ExecuteTableProperties()
        {
            var table = CurrentSelectionTable as IHTMLTable;

            if (table != null)
            {
                using (var form = new HtmlEditorTableNewForm())
                {
                    form.ExternalInformationProvider = Configuration == null
                        ? null
                        : Configuration.ExternalInformationProvider;

                    form.Table = table;
                    form.ShowDialog(FindForm());
                }
            }
        }
        public void ExecuteInsertTable()
        {
            if (!EverInitialized)
            {
                return;
            }

            using (var form = new HtmlEditorTableNewForm())
            {
                form.ExternalInformationProvider = Configuration?.ExternalInformationProvider;

                if (form.ShowDialog(FindForm()) == DialogResult.OK)
                {
                    InsertHtmlAtCurrentSelection(form.Html);
                }
            }
        }
        public void ExecuteTableProperties()
        {
            var table = CurrentSelectionTable as IHTMLTable;

            if (table != null)
            {
                using (var form = new HtmlEditorTableNewForm())
                {
                    form.ExternalInformationProvider = Configuration == null
                        ? null
                        : Configuration.ExternalInformationProvider;

                    form.Table = table;
                    form.ShowDialog(FindForm());
                }
            }
        }