public BookDocumentView()
        {
            using var _ = new DocumentAddingProcessor(this);

            InitializeComponent();

            UIUtils.ConfigureRibbonBar(Ribbon);

            //Fix skin colors in comment control
            var commentEdit = richEditCommentControl1.Controls.OfType <InnerCommentControl>().FirstOrDefault();

            if (commentEdit != null)
            {
                commentEdit.Options.DocumentCapabilities.Macros     = DocumentCapability.Disabled;
                commentEdit.Options.DocumentCapabilities.OleObjects = DocumentCapability.Disabled;

                commentEdit.Views.DraftView.AdjustColorsToSkins       = commentEdit.RichEditControl.Views.DraftView.AdjustColorsToSkins;
                commentEdit.Views.SimpleView.AdjustColorsToSkins      = commentEdit.RichEditControl.Views.SimpleView.AdjustColorsToSkins;
                commentEdit.Views.PrintLayoutView.AdjustColorsToSkins = commentEdit.RichEditControl.Views.PrintLayoutView.AdjustColorsToSkins;
            }

            ribbonControl.SelectedPage = homeRibbonPage1;

            SCBook = new InternalBook(Editor);
            BookFactoryHelper.SetCommandFactory(Editor, this);

            Disposed += BookDocumentView_Disposed;

            //Disable removing styles
            barRemoveStyle.Visibility = BarItemVisibility.Never;
        }
 public BooksController()
 {
     Books = BookFactoryHelper.CreateBooks();
 }