<@doc hierarchy="GMLDOM"> Layout aspects (c) SAP AG 2003-2006. All rights reserved. Aspect role Layout : l; ////////////////////////////////////////////////////////////////// // BOARD CONFIGURATION Configure BOARDS, EDITORS, VARIABLES; // NOTE: the following lines are temporary // (until the GmlScript preprocessor enables writing "implement core.dev:IBoard;" in this declaration unit). $DOM.attachPrototype('core.dev:IBoard', 'core.lyt:Layout'); $DOM.attachPrototype('core.lyt:ILayoutable', 'core.lyt:Diagram'); $DOM.attachPrototype('core.lyt:ILayoutable', 'core.lyt:Widget'); // NOTE: TEMP: remove this and replace by extend(defineBoards) in core.gml, // when core.gml will start to call RULE(workspaceOpen) $ENV.defineBoard({ id: '#NS[GMLLAYOUT_BOARD]', aspect: '#NS[Layout]', name: '#TEXT[XTBS_LAYOUT]', type: 'HTM', impl: '#URL[layout.board.Board.htm]', priority: 200, visible: function(def) { if (!$ENV.context || !$ENV.context.unit || !ISA($ENV.context.unit, 'core.gml:Scenario')) return false; return GETVAR('LayoutBoardEnabled'); } }); ////////////////////////////////////////////////////////////////// // LAYOUT VARIABLES // NOTE: Consider removing this from Options UI $ENV.defineVariable({id: 'LayoutBoardEnabled', type: 'bool', dflt: 'false', scope: 'user'}); $ENV.defineVariable({id: 'FORM_SHOW_GRID', type: 'bool', dflt: 'true', scope: 'user'}); /*var editor = $ENV.getEditor('STUDIO_OPTIONS'); if (editor) { editor.insert({ id: 'LayoutBoardEnabled', type: 'check', label: '#TEXT[XCKL_ENABLE_LAYOUT]', getter: function (context, def) { return GETVAR(def.id); }, setter: function (value, context, def) { SETVAR(def.id, value); $WIN.updateBoards(); } }, 'ClientCacheEnabled' ); }*/ end