/*------------------------------------------------------------------------------*
 * File Name:	TXDefines.h 													*
 * Creation: 	AW																*
 * Purpose: OriginC Source C file												*
 * Copyright (c) ABCD Corp.	2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010		*
 * All Rights Reserved															*
 * 																				*
 * Modification Log:															*
 *------------------------------------------------------------------------------*/
 
#ifndef _TX_DEFINES_H
#define _TX_DEFINES_H 
 
 
 
enum {
	TX_FILE_HTML = 4,
	TX_FILE_RTF, 
	TX_FILE_DOC = 9,
	TX_FILE_XML,
	TX_FILE_PDF = 12,
 };
 
enum {
	 txDocWidth = 0, 
	txDocHeight, 
	txDocLeftMargin, 
	txDocTopMargin, 
	txDocRightMargin, 
	txDocBottomMargin, 
	txDocTitle, 
	txDocBkColor, 
	txCSSFile, 
	txCSSSaveMode, 
	txDocAccessPermissions, 
	txMasterPassword, 
	txUserPassword, 
	txImageCompressionQuality, 
	txImageMaxResolution, 
	txAbsPath, 
	txBasePath, 
	txBaseFontSize, 
	txPropFontName, 
	txMonoFontName, 
	txTextColor, 
	txOverwriteTextColor, 
	txTextBkColor, 
	txOverwriteTextBkColor, 
	txLoadImages, 
	txEnableLinks, 
	txEnableHighlights, 
	txEnableTopics, 
	txLinkColor, 
	txOverwriteLinkColor, 
	txUnderlineLinks, 
};

enum {
	TX_OLE_INSERT_DIALOG = 1,
	TX_OLE_INSERT_OBJECT_WITH_PROGID,
	TX_OLE_INSERT_OBJECT_EMBEDDED,
	TX_OLE_INSERT_OBJECT_LINKED,
};

/**
	fix the problem in keyboard changing in TX
*/
class TXKeyboardHandle
{
public:
	TXKeyboardHandle() { m_hklCurrent = GetKeyboardLayout(); }
	~TXKeyboardHandle() {}
public:
	void RestoreKeyboard() { ActivateKeyboardLayout(m_hklCurrent); }
	
private:
	HKL				m_hklCurrent;
};


	

#endif // _TX_DEFINES_H