<commit_before>﻿/*****************************************************************************
 * 
 * ReoGrid - .NET Spreadsheet Control
 * 
 * http://reogrid.net/
 *
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
 * PURPOSE.
 *
 * Author: Jing <lujing at unvell.com>
 *
 * Copyright (c) 2012-2016 Jing <lujing at unvell.com>
 * Copyright (c) 2012-2016 unvell.com, all rights reserved.
 * 
 ****************************************************************************/

using System;

namespace unvell.ReoGrid
{
	/// <summary>
	/// Worksheet Settings
	/// </summary>
	/// <remarks>Refer to: http://reogrid.net/document/settings </remarks>
	[Flags]
	public enum WorksheetSettings : ulong
	{
		/// <summary>
		/// None settings.
		/// </summary>
		None = 0x000000000L,

		/// <summary>
		/// Default settings.
		/// </summary>
		Default = Edit_Default | Behavior_Default | View_Default | Formula_Default,

		#region Edit
		/// <summary>
		/// All default edit settings.
		/// </summary>
		Edit_Default = Edit_AutoFormatCell | Edit_FriendlyPercentInput 
			| Edit_AutoExpandRowHeight //| Edit_AutoAdjustColumnWidth
			| Edit_AllowAdjustRowHeight | Edit_AllowAdjustColumnWidth
			| Edit_DragSelectionToMoveCells
			| Edit_DragSelectionToFillSerial,

		/// <summary>
		/// Make worksheet read-only. Any changes are not allowed.
		/// </summary>
		Edit_Readonly = 0x00000001L,

		/// <summary>
		/// Allow data format after text editing by user.
		/// </summary>
		Edit_AutoFormatCell = 0x00000002L,

		/// <summary>
		/// Allow to put a '%' symbol at the end of text when start edit a cell that is set as percent data format.
		/// </summary>
		Edit_FriendlyPercentInput = 0x00000004L,

		/// <summary>
		/// Allow automatically adjust row height to fit largest cell.
		/// </summary>
		[Obsolete("use Edit_AutoExpandRowHeight instead")]
		Edit_AutoAdjustRowHeight = Edit_AutoExpandRowHeight,

		/// <summary>
		/// Allow automatically adjust row height to fit largest cell.
		/// </summary>
		Edit_AutoExpandRowHeight = 0x00000008L,

		/// <summary>
		/// Allow user adjusts row height by mouse.
		/// </summary>
		Edit_AllowAdjustRowHeight = 0x00000010L,

		/// <summary>
		/// Allow automatically adjust column width to fit largest cells.
		/// </summary>
		[Obsolete("use Edit_AutoExpandColumnWidth instead")]
		Edit_AutoAdjustColumnWidth = Edit_AutoExpandColumnWidth,

		/// <summary>
		/// Allow automatically adjust column width to fit largest cells.
		/// </summary>
		Edit_AutoExpandColumnWidth = 0x00000020L,

		/// <summary>
		/// Allows user adjusts column width by mouse.
		/// </summary>
		Edit_AllowAdjustColumnWidth = 0x00000040L,

		/// <summary>
		/// Allow user drags and drops the selection to move cell content.
		/// </summary>
		Edit_DragSelectionToMoveCells = 0x00000080L,

		/// <summary>
		/// Allow user drags and drops selection to fill data serial, reuse formulas or clear data.
		/// </summary>
		Edit_DragSelectionToFillSerial = 0x00000100L,

		#endregion // Edit

		#region Behavior

		/// <summary>
		/// All behaivor settings.
		/// </summary>
		Behavior_Default = Behavior_DoubleClickToResizeHeader | Behavior_MouseWheelToScroll
			| Behavior_MouseWheelToZoom | Behavior_ShortcutKeyToZoom | Behavior_ScrollToFocusCell
			| Behavior_AllowUserChangingPageBreaks,

		/// <summary>
		/// Allow double click to make the headers fit to maximum text of cells. <commit_msg>Fix some summary of method<commit_after>﻿/*****************************************************************************
 * 
 * ReoGrid - .NET Spreadsheet Control
 * 
 * http://reogrid.net/
 *
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
 * PURPOSE.
 *
 * Author: Jing <lujing at unvell.com>
 *
 * Copyright (c) 2012-2016 Jing <lujing at unvell.com>
 * Copyright (c) 2012-2016 unvell.com, all rights reserved.
 * 
 ****************************************************************************/

using System;

namespace unvell.ReoGrid
{
	/// <summary>
	/// Worksheet Settings
	/// </summary>
	/// <remarks>Refer to: http://reogrid.net/document/settings </remarks>
	[Flags]
	public enum WorksheetSettings : ulong
	{
		/// <summary>
		/// None settings.
		/// </summary>
		None = 0x000000000L,

		/// <summary>
		/// Default settings.
		/// </summary>
		Default = Edit_Default | Behavior_Default | View_Default | Formula_Default,

		#region Edit
		/// <summary>
		/// All default edit settings.
		/// </summary>
		Edit_Default = Edit_AutoFormatCell | Edit_FriendlyPercentInput 
			| Edit_AutoExpandRowHeight //| Edit_AutoAdjustColumnWidth
			| Edit_AllowAdjustRowHeight | Edit_AllowAdjustColumnWidth
			| Edit_DragSelectionToMoveCells
			| Edit_DragSelectionToFillSerial,

		/// <summary>
		/// Make worksheet read-only. Any changes are not allowed.
		/// </summary>
		Edit_Readonly = 0x00000001L,

		/// <summary>
		/// Allow data format after text editing by user.
		/// </summary>
		Edit_AutoFormatCell = 0x00000002L,

		/// <summary>
		/// Allow to put a '%' symbol at the end of text when start edit a cell that is set as percent data format.
		/// </summary>
		Edit_FriendlyPercentInput = 0x00000004L,

		/// <summary>
		/// Allow automatically adjust row height to fit largest cell.
		/// </summary>
		[Obsolete("use Edit_AutoExpandRowHeight instead")]
		Edit_AutoAdjustRowHeight = Edit_AutoExpandRowHeight,

		/// <summary>
		/// Allow automatically adjust row height to fit largest cell.
		/// </summary>
		Edit_AutoExpandRowHeight = 0x00000008L,

		/// <summary>
		/// Allow user adjusts row height by mouse.
		/// </summary>
		Edit_AllowAdjustRowHeight = 0x00000010L,

		/// <summary>
		/// Allow automatically adjust column width to fit largest cell.
		/// </summary>
		[Obsolete("use Edit_AutoExpandColumnWidth instead")]
		Edit_AutoAdjustColumnWidth = Edit_AutoExpandColumnWidth,

		/// <summary>
		/// Allow automatically adjust column width to fit largest cell.
		/// </summary>
		Edit_AutoExpandColumnWidth = 0x00000020L,

		/// <summary>
		/// Allows user adjusts column width by mouse.
		/// </summary>
		Edit_AllowAdjustColumnWidth = 0x00000040L,

		/// <summary>
		/// Allow user drags and drops the selection to move cell content.
		/// </summary>
		Edit_DragSelectionToMoveCells = 0x00000080L,

		/// <summary>
		/// Allow user drags and drops selection to fill data serial, reuse formulas or clear data.
		/// </summary>
		Edit_DragSelectionToFillSerial = 0x00000100L,

		#endregion // Edit

		#region Behavior

		/// <summary>
		/// All behaivor settings.
		/// </summary>
		Behavior_Default = Behavior_DoubleClickToResizeHeader | Behavior_MouseWheelToScroll
			| Behavior_MouseWheelToZoom | Behavior_ShortcutKeyToZoom | Behavior_ScrollToFocusCell
			| Behavior_AllowUserChangingPageBreaks,

		/// <summary>
		/// Allow double click to make the headers fit to maximum text of cells. 
{'fraction_non_alphanumeric': 0.15207954068057694, 'fraction_numerical': 0.029967791625822714, 'mean_word_length': 3.3628588882101407, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 10, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4991502', 'n_tokens_mistral': 2464, 'n_tokens_neox': 2029, 'n_words': 606}