devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
10 lines (9 loc) • 414 B
JavaScript
import { CommandBase } from '../command-base';
import { SimpleCommandState } from '../command-states';
export class ContextItemHeadersFooters extends CommandBase {
getState() {
var state = new SimpleCommandState(this.control.innerClientProperties.viewsSettings.isPrintLayoutView, false);
state.visible = this.selection.activeSubDocument.isHeaderFooter();
return state;
}
}