Bloom.Book.Book.PrepareForEditing C# (CSharp) Метод

PrepareForEditing() публичный Метод

Under normal conditions, this isn't needed, because it is done when a book is first created. But thing might have changed: *changing xmatter pack, and update to it, changing the languages, etc. *the book was dragged from another project *the editing language was changed. Under those conditions, if we didn't, for example, do a PrepareElementsInPageOrDocument, we would end up with no editable items, because there are no elements in our language.
public PrepareForEditing ( ) : void
Результат void
        public void PrepareForEditing()
        {
            if (!_haveDoneUpdate)
            {
                BringBookUpToDate(OurHtmlDom, new NullProgress());
                _haveDoneUpdate = true;
            }
            //We could re-enable RebuildXMatter() here later, so that we get this nice refresh each time.
            //But currently this does some really slow image compression:	RebuildXMatter(RawDom);
            UpdateEditableAreasOfElement(OurHtmlDom);
        }
Book