note description: "Objects that represent an EV_DIALOG.% %The original version of this class was generated by EiffelBuild." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class DOCUMENT_WIDGET inherit DOCUMENT_WIDGET_IMP SHARED_OBJECTS undefine copy, default_create, is_equal end UTILITY_FUNCTIONS undefine copy, default_create, is_equal end create make feature -- Creation make (a_document: DOCUMENT) -- New widget based on `a_document' do document := a_document default_create end feature {NONE} -- Initialization user_initialization -- called by `initialize'. -- Any custom user initialization that -- could not be performed in `initialize', -- (due to regeneration of implementation class) -- can be added here. do -- Edit widget create internal_edit_widget.make (document) --internal_edit_widget.resize_actions.force_extend (agent editor_resized) set_first (internal_edit_widget) update internal_edit_widget.resize_actions.force_extend (agent editor_resized) end feature -- Access title: STRING -- Title to display do Result := document.short_name (document.name) end feature -- Commands update -- Update local l_split_pos: INTEGER do l_split_pos := shared_document_editor.split_position internal_edit_widget.resize_actions.block if not has (internal_html_widget) then if internal_html_widget.parent /= Void then internal_html_widget.parent.prune (internal_html_widget) end set_second (internal_html_widget) end internal_edit_widget.resize_actions.resume internal_html_widget.set_document (document) set_split_position (l_split_pos) shared_document_editor.set_split_position (l_split_pos) end feature -- Implementation document: DOCUMENT -- Associated document internal_edit_widget: DOCUMENT_TEXT_WIDGET -- Internal editing widget internal_xml_widget: DOCUMENT_BROWSER -- Internal XML widget internal_html_widget: DOCUMENT_BROWSER -- Internal HTML Browser widget once Result := Shared_web_browser end editor_resized -- Editor was resized do shared_document_editor.set_split_position (split_position) end note copyright: "Copyright (c) 1984-2006, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class WIDGET_BUILDER_NOT_FOR_SYSTEM