note description: "Information shared for formatting." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision $" class SHARED_FORMAT_INFO feature -- Properties is_short: BOOLEAN -- Is Current doing a flat-short? (False implies flat) do Result := is_short_bool.item end in_bench_mode: BOOLEAN -- Are all instruction calls clickable? do Result := in_bench_mode_bool.item end in_assertion: BOOLEAN -- Are we in an assertion? do Result := in_assertion_bool.item end order_same_as_text: BOOLEAN -- Keep the same order as in text? do Result := order_same_as_text_bool.item end is_with_breakable: BOOLEAN -- Do we show breakable position in class format? do Result := is_with_breakable_bool.item end feature -- Setting set_in_bench_mode -- Set in_bench_mode to True do in_bench_mode_bool.put (True) ensure in_bench_mode: in_bench_mode end set_is_short -- Set is_short to True. do is_short_bool.put (True) ensure is_short: is_short end set_order_same_as_text -- Set order_same_as_text to True. do order_same_as_text_bool.put (True) ensure order_same_as_text: order_same_as_text end set_in_assertion -- Set in_assertion to True. do in_assertion_bool.put (True) ensure in_assertion: in_assertion end set_not_in_assertion -- Set in_assertion to False do in_assertion_bool.put (False) ensure not_in_assertion: not in_assertion end set_is_with_breakable -- Set is_with_breakable to True do is_with_breakable_bool.put (True) ensure is_with_breakable: is_with_breakable end set_is_without_breakable -- Set is_with_breakable to False do is_with_breakable_bool.put (False) ensure is_without_breakable: not is_with_breakable end reset_format_booleans -- Reset all booleans to false. do is_short_bool.put (False) in_bench_mode_bool.put (False) in_assertion_bool.put (False) order_same_as_text_bool.put (False) ensure not is_short not in_bench_mode not in_assertion not order_same_as_text end feature {NONE} is_short_bool: CELL [BOOLEAN] -- Cell to store `is_short' flag once create Result.put (False) ensure is_short_bool_not_void: Result /= Void end in_bench_mode_bool: CELL [BOOLEAN] -- Cell to store `in_bench_mode' flag once create Result.put (False) ensure in_bench_mode_bool_not_void: Result /= Void end in_assertion_bool: CELL [BOOLEAN] -- Cell to store `in_assertion' flag once create Result.put (False) ensure in_assertion_bool_not_void: Result /= Void end order_same_as_text_bool: CELL [BOOLEAN] -- Cell to store `order_same_as_text' flag once create Result.put (False) ensure order_same_as_text_bool_not_void: Result /= Void end is_with_breakable_bool: CELL [BOOLEAN] -- Cell to store `is_with_breakable' flag once create Result.put (False) ensure is_with_breakable_bool_not_void: Result /= Void 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 SHARED_FORMAT_INFO