public ArticleEditorForm() { InitializeComponent(); editor.Document.Paragraphs.Insert(editor.Document.Range.Start); editor.Document.Selection = editor.Document.Paragraphs[0].Range; SetParagraphHeading1LevelCommand h1Command = new SetParagraphHeading1LevelCommand(editor); h1Command.ForceExecute(h1Command.CreateDefaultCommandUIState()); SetParagraphHeading2LevelCommand h2Command = new SetParagraphHeading2LevelCommand(editor); h2Command.ForceExecute(h1Command.CreateDefaultCommandUIState()); SetParagraphHeading3LevelCommand h3Command = new SetParagraphHeading3LevelCommand(editor); h3Command.ForceExecute(h1Command.CreateDefaultCommandUIState()); SetParagraphHeading4LevelCommand h4Command = new SetParagraphHeading4LevelCommand(editor); h4Command.ForceExecute(h1Command.CreateDefaultCommandUIState()); SetParagraphHeading5LevelCommand h5Command = new SetParagraphHeading5LevelCommand(editor); h5Command.ForceExecute(h1Command.CreateDefaultCommandUIState()); AddQuoteStyle(); editor.Document.Delete(editor.Document.Paragraphs[0].Range); XHtmlDocumentExporter.Register(editor); InitTypes(); Text = "New article"; editor.SpellChecker = MainForm.Instance.SpellChecker; }
private BaseBookEditForm() { InitializeComponent(); XHtmlDocumentExporter.Register(txtPreface); }