/*------------------------------------------------------------------------------*
 * File Name: Wks_Utils.h														*
 * Creation: GJL 5/22/2002														*
 * Purpose: Header file for Wks_Utils.c											*
 * Copyright (c) OriginLab Corp.	2002-2007									*
 * All Rights Reserved															*
 * 																				*
 * Modification Log:															*
 *	LY	11/4/02 QA70-3256 v7.0428 BINARY_IMPORT									*
 *	Sim 05-09-2007 CHANGE_LABEL_TEXT_STYLE										*
 *	Folger 06/25/07 REMOVE_NO_MORE_USE_CODE										*
 *	TD 01-05-2008 QA80-12470 LT_INVOKE_Worksheet_Properties_dialog				*
 *	Kyle 08/12/2009 QA80-12339-P7 WKS_PROPERTIES_FORMAT_INFORMED_HINT_FOR_APPLY_TO_OPTIONS
 *	Kyle 08/12/2009 QA80-12339-P6 WKS_PROPERTIES_FORMAT_ADD_COLUMN_LABELS_OPTION*
 *------------------------------------------------------------------------------*/
/////Folger 06/22/07 ADD_WKS_PROPERTIES_FUNCTIONS
//#include <GetNBox.h>
//#include "OriginEvents.h" 
//#include "okThemeID.h"
//#include "theme_utils.h"
//#include "TextFormat.h"
/////End ADD_WKS_PROPERTIES_FUNCTIONS
#ifndef _WKS_UTILS_H
#define _WKS_UTILS_H

//////////////////////////////////////////////////////////////////////////////////
// Function synonyms for backward compatibility...no longer using "wu" function
// name prefix 
//////////////////////////////////////////////////////////////////////////////////
///Folger 06/25/07 REMOVE_NO_MORE_USE_CODE

//All useless code has been removed

///End REMOVE_NO_MORE_USE_CODE
///Folger 06/22/07 ADD_WKS_PROPERTIES_FUNCTIONS
void construct_wks_properties_tree(const Worksheet &wks, TreeNode &tr);
string get_show_label_names(const Worksheet &wks);
bool get_wks_setting(const Worksheet &wks, TreeNode& tr);
string convert_displayname_to_tagname(const TreeNode& tr);
/// TD 01-05-2008 QA80-12470 LT_INVOKE_Worksheet_Properties_dialog
//bool set_wks_setting(Worksheet &wks, TreeNode& tr, TreeNode &trOrigin);
bool set_wks_setting(Worksheet &wks, TreeNode& tr, TreeNode &trOrigin, bool bRelyOnChangeAttribute = true);
/// end LT_INVOKE_Worksheet_Properties_dialog
///End ADD_WKS_PROPERTIES_FUNCTIONS


void update_text_format_hint(TreeNode& tr, LPCSTR lpcszTagName);			///Kyle 08/12/2009 QA80-12339-P7 WKS_PROPERTIES_FORMAT_INFORMED_HINT_FOR_APPLY_TO_OPTIONS

string construct_text_format_apply_to_list(const Worksheet& wks);			///Kyle 08/12/2009 QA80-12339-P6 WKS_PROPERTIES_FORMAT_ADD_COLUMN_LABELS_OPTION


#endif //_WKS_UTILS_H
