示例#1
0
/*
 INTL_DefaultWinCharSetID,
   Based on DefaultDocCSID, it determines which Win CSID to use for Display
*/
PUBLIC int16 INTL_DefaultWinCharSetID(iDocumentContext context)
{

	if (context) {
		INTL_CharSetInfo csi = LO_GetDocumentCharacterSetInfo(context);
		if (INTL_GetCSIWinCSID(csi))
			return INTL_GetCSIWinCSID(csi);
	}

	return INTL_DocToWinCharSetID(INTL_DefaultDocCharSetID(context));
}
示例#2
0
XFE_FolderFrame::XFE_FolderFrame(Widget toplevel,
								 XFE_Frame *parent_frame,
								 Chrome *chromespec) 
  : XFE_Frame("MailFolder", toplevel, parent_frame,
			  FRAME_MAILNEWS_FOLDER, chromespec)
{
  INTL_CharSetInfo c = LO_GetDocumentCharacterSetInfo(m_context);
  INTL_SetCSIWinCSID(c, 
		INTL_DocToWinCharSetID (CONTEXT_DATA (m_context)->xfe_doc_csid));

  geometryPrefName = "mail.folder";

D(	printf ("in XFE_FolderFrame::XFE_FolderFrame()\n");)