indexing description: "[ This class allows to save in a file the contents of a rich edit control. Note: Do not use more than one instance of this class at the same time. Nested streams are not supported. ]" status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class WEL_RICH_EDIT_FILE_SAVER inherit WEL_RICH_EDIT_STREAM_OUT rename make as rich_edit_stream_out_make redefine finish_action end create make feature {NONE} -- Initialization make (a_file: RAW_FILE) is -- Save the contents of the rich edit control -- in `a_file'. require a_file_not_void: a_file /= Void a_file_exists: a_file.exists a_file_is_open_write: a_file.is_open_write do rich_edit_stream_out_make file := a_file ensure file_set: file = a_file end feature {NONE} -- Implementation file: RAW_FILE -- File to save write_buffer (buffer: STRING) is -- Write `buffer' in `file'. do file.put_string (buffer) end finish_action is -- Close `file'. do file.close ensure then file_closed: file.is_closed end invariant file_not_void: file /= Void end -- class WEL_RICH_EDIT_FILE_SAVER --|---------------------------------------------------------------- --| Windows Eiffel Library: library of reusable components for ISE Eiffel. --| Copyright (C) 1985-2004 Eiffel Software. All rights reserved. --| Duplication and distribution prohibited. May be used only with --| ISE Eiffel, under terms of user license. --| Contact Eiffel Software for any other use. --| --| Interactive Software Engineering Inc. --| dba Eiffel Software --| 356 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Contact us at: http://www.eiffel.com/general/email.html --| Customer support: http://support.eiffel.com --| For latest info on our award winning products, visit: --| http://www.eiffel.com --|----------------------------------------------------------------