#include <Skin.h>
Public Member Functions | |
| CSkin () | |
| virtual | ~CSkin () |
| void | Apply () |
| void | Clear () |
| BOOL | LoadFromFile (LPCTSTR pszFile) |
| BOOL | LoadFromResource (HINSTANCE hInstance, UINT nResourceID) |
| BOOL | LoadFromString (const CString &strXML, const CString &strPath) |
| BOOL | LoadFromXML (CXMLElement *pXML, const CString &strPath) |
| BOOL | SelectCaption (CWnd *pWnd, int nIndex) |
| BOOL | SelectCaption (CString &strCaption, int nIndex) |
| void | DrawWrappedText (CDC *pDC, CRect *pBox, LPCTSTR pszText, CPoint ptStart, BOOL bExclude=TRUE) |
| BOOL | LoadString (CString &str, UINT nStringID) |
| BOOL | LoadControlTip (CString &str, UINT nCtrlID) |
| int | GetTextFlowChange (LPCTSTR pszText, BOOL *bIsRTL) |
| CMenu * | GetMenu (LPCTSTR pszName, bool bChild=false) |
| UINT | TrackPopupMenu (LPCTSTR pszMenu, const CPoint &point, UINT nDefaultID=0, UINT nFlags=0) |
| BOOL | CreateToolBar (LPCTSTR pszName, CCoolBarCtrl *pBar) |
| CXMLElement * | GetDocument (LPCTSTR pszName) |
| HBITMAP | GetWatermark (LPCTSTR pszName) |
| BOOL | GetWatermark (CBitmap *pBitmap, LPCTSTR pszName) |
| BOOL | Translate (LPCTSTR pszName, CHeaderCtrl *pCtrl) |
| BOOL | Apply (LPCTSTR pszName, CDialog *pDialog, UINT nIconID=0, CToolTipCtrl *pWndTooltips=NULL) |
| CString | GetDialogCaption (LPCTSTR pszName) |
| CSkinWindow * | GetWindowSkin (LPCTSTR pszWindow, LPCTSTR pszAppend=NULL) |
| CSkinWindow * | GetWindowSkin (CWnd *pWnd) |
| UINT | LookupCommandID (CXMLElement *pXML, LPCTSTR pszName=NULL) |
Public Attributes | |
| CMap< CString, const CString &, CMenu *, CMenu * > | m_pMenus |
| CMap< CString, const CString &, CCoolBarCtrl *, CCoolBarCtrl * > | m_pToolbars |
| COLORREF | m_crDialog |
| CBrush | m_brDialog |
| COLORREF | m_crPanelBack |
| CBitmap | m_bmPanelMark |
| COLORREF | m_crPanelText |
| COLORREF | m_crPanelBorder |
| COLORREF | m_crBannerBack |
| COLORREF | m_crBannerText |
| COLORREF | m_crSchemaRow [2] |
Protected Member Functions | |
| void | ApplyRecursive (LPCTSTR pszPath) |
| void | CreateDefault () |
| void | Finalise () |
| HBITMAP | LoadBitmap (CString &strName) |
| BOOL | LoadStrings (CXMLElement *pBase) |
| BOOL | LoadControlTips (CXMLElement *pBase) |
| BOOL | LoadMenus (CXMLElement *pBase) |
| BOOL | LoadMenu (CXMLElement *pXML) |
| BOOL | CreateMenu (CXMLElement *pXML, HMENU hMenu) |
| BOOL | LoadToolbars (CXMLElement *pBase) |
| BOOL | CreateToolBar (CXMLElement *pElement) |
| BOOL | LoadDocuments (CXMLElement *pBase) |
| BOOL | LoadWatermarks (CXMLElement *pSub, const CString &strPath) |
| BOOL | LoadListColumns (CXMLElement *pBase) |
| BOOL | LoadDialogs (CXMLElement *pBase) |
| BOOL | LoadWindowSkins (CXMLElement *pSub, const CString &strPath) |
| BOOL | LoadColourScheme (CXMLElement *pBase) |
| BOOL | LoadFonts (CXMLElement *pBase, const CString &strPath) |
| BOOL | LoadResourceMap (CXMLElement *pBase) |
| BOOL | LoadCommandImages (CXMLElement *pBase, const CString &strPath) |
| BOOL | LoadCommandBitmap (CXMLElement *pBase, const CString &strPath) |
Protected Attributes | |
| CMap< UINT, UINT, CString, CString & > | m_pStrings |
| CMap< UINT, UINT, CString, CString & > | m_pControlTips |
| CMenu | m_mnuDefault |
| CMenu | m_mnuChild |
| CMap< CString, const CString &, CXMLElement *, CXMLElement * > | m_pDocuments |
| CMap< CString, const CString &, CString, CString & > | m_pWatermarks |
| CMap< CString, const CString &, CString, CString & > | m_pLists |
| CMap< CString, const CString &, CXMLElement *, CXMLElement * > | m_pDialogs |
| CList< CSkinWindow * > | m_pSkins |
| CList< CString > | m_pFontPaths |
Static Protected Attributes | |
| static LPCTSTR | m_pszModeSuffix [3][4] |
Private Member Functions | |
| CSkin (const CSkin &) | |
| CSkin & | operator= (const CSkin &) |
| CSkin::CSkin | ( | ) |
| CSkin::~CSkin | ( | ) | [virtual] |
| CSkin::CSkin | ( | const CSkin & | ) | [private] |
| void CSkin::Apply | ( | ) |
| void CSkin::Clear | ( | ) |
| BOOL CSkin::LoadFromFile | ( | LPCTSTR | pszFile | ) |
| BOOL CSkin::LoadFromResource | ( | HINSTANCE | hInstance, | |
| UINT | nResourceID | |||
| ) |
| BOOL CSkin::LoadFromString | ( | const CString & | strXML, | |
| const CString & | strPath | |||
| ) |
| BOOL CSkin::LoadFromXML | ( | CXMLElement * | pXML, | |
| const CString & | strPath | |||
| ) |
| BOOL CSkin::SelectCaption | ( | CWnd * | pWnd, | |
| int | nIndex | |||
| ) |
| BOOL CSkin::SelectCaption | ( | CString & | strCaption, | |
| int | nIndex | |||
| ) |
| void CSkin::DrawWrappedText | ( | CDC * | pDC, | |
| CRect * | pBox, | |||
| LPCTSTR | pszText, | |||
| CPoint | ptStart, | |||
| BOOL | bExclude = TRUE | |||
| ) |
| void CSkin::ApplyRecursive | ( | LPCTSTR | pszPath | ) | [protected] |
| void CSkin::CreateDefault | ( | ) | [protected] |
| void CSkin::Finalise | ( | ) | [protected] |
| HBITMAP CSkin::LoadBitmap | ( | CString & | strName | ) | [protected] |
| BOOL CSkin::LoadString | ( | CString & | str, | |
| UINT | nStringID | |||
| ) |
| BOOL CSkin::LoadControlTip | ( | CString & | str, | |
| UINT | nCtrlID | |||
| ) |
| int CSkin::GetTextFlowChange | ( | LPCTSTR | pszText, | |
| BOOL * | bIsRTL | |||
| ) |
| BOOL CSkin::LoadStrings | ( | CXMLElement * | pBase | ) | [protected] |
| BOOL CSkin::LoadControlTips | ( | CXMLElement * | pBase | ) | [protected] |
| CMenu * CSkin::GetMenu | ( | LPCTSTR | pszName, | |
| bool | bChild = false | |||
| ) |
| UINT CSkin::TrackPopupMenu | ( | LPCTSTR | pszMenu, | |
| const CPoint & | point, | |||
| UINT | nDefaultID = 0, |
|||
| UINT | nFlags = 0 | |||
| ) |
| BOOL CSkin::LoadMenus | ( | CXMLElement * | pBase | ) | [protected] |
| BOOL CSkin::LoadMenu | ( | CXMLElement * | pXML | ) | [protected] |
| BOOL CSkin::CreateMenu | ( | CXMLElement * | pXML, | |
| HMENU | hMenu | |||
| ) | [protected] |
| BOOL CSkin::CreateToolBar | ( | LPCTSTR | pszName, | |
| CCoolBarCtrl * | pBar | |||
| ) |
| BOOL CSkin::LoadToolbars | ( | CXMLElement * | pBase | ) | [protected] |
| BOOL CSkin::CreateToolBar | ( | CXMLElement * | pElement | ) | [protected] |
| CXMLElement * CSkin::GetDocument | ( | LPCTSTR | pszName | ) |
| BOOL CSkin::LoadDocuments | ( | CXMLElement * | pBase | ) | [protected] |
| HBITMAP CSkin::GetWatermark | ( | LPCTSTR | pszName | ) |
| BOOL CSkin::GetWatermark | ( | CBitmap * | pBitmap, | |
| LPCTSTR | pszName | |||
| ) |
| BOOL CSkin::LoadWatermarks | ( | CXMLElement * | pSub, | |
| const CString & | strPath | |||
| ) | [protected] |
| BOOL CSkin::Translate | ( | LPCTSTR | pszName, | |
| CHeaderCtrl * | pCtrl | |||
| ) |
| BOOL CSkin::LoadListColumns | ( | CXMLElement * | pBase | ) | [protected] |
| BOOL CSkin::Apply | ( | LPCTSTR | pszName, | |
| CDialog * | pDialog, | |||
| UINT | nIconID = 0, |
|||
| CToolTipCtrl * | pWndTooltips = NULL | |||
| ) |
| CString CSkin::GetDialogCaption | ( | LPCTSTR | pszName | ) |
| BOOL CSkin::LoadDialogs | ( | CXMLElement * | pBase | ) | [protected] |
| CSkinWindow * CSkin::GetWindowSkin | ( | LPCTSTR | pszWindow, | |
| LPCTSTR | pszAppend = NULL | |||
| ) |
| CSkinWindow * CSkin::GetWindowSkin | ( | CWnd * | pWnd | ) |
| BOOL CSkin::LoadWindowSkins | ( | CXMLElement * | pSub, | |
| const CString & | strPath | |||
| ) | [protected] |
| BOOL CSkin::LoadColourScheme | ( | CXMLElement * | pBase | ) | [protected] |
| BOOL CSkin::LoadFonts | ( | CXMLElement * | pBase, | |
| const CString & | strPath | |||
| ) | [protected] |
| UINT CSkin::LookupCommandID | ( | CXMLElement * | pXML, | |
| LPCTSTR | pszName = NULL | |||
| ) |
| BOOL CSkin::LoadResourceMap | ( | CXMLElement * | pBase | ) | [protected] |
| BOOL CSkin::LoadCommandImages | ( | CXMLElement * | pBase, | |
| const CString & | strPath | |||
| ) | [protected] |
| BOOL CSkin::LoadCommandBitmap | ( | CXMLElement * | pBase, | |
| const CString & | strPath | |||
| ) | [protected] |
CMap<UINT, UINT, CString, CString&> CSkin::m_pStrings [protected] |
CMap<UINT, UINT, CString, CString&> CSkin::m_pControlTips [protected] |
| CMap< CString, const CString&, CMenu*, CMenu* > CSkin::m_pMenus |
CMenu CSkin::m_mnuDefault [protected] |
CMenu CSkin::m_mnuChild [protected] |
| CMap< CString, const CString&, CCoolBarCtrl*, CCoolBarCtrl* > CSkin::m_pToolbars |
CMap< CString, const CString&, CXMLElement*, CXMLElement* > CSkin::m_pDocuments [protected] |
CMap< CString, const CString&, CString, CString& > CSkin::m_pWatermarks [protected] |
CMap< CString, const CString&, CString, CString& > CSkin::m_pLists [protected] |
CMap< CString, const CString&, CXMLElement*, CXMLElement* > CSkin::m_pDialogs [protected] |
CList< CSkinWindow* > CSkin::m_pSkins [protected] |
| COLORREF CSkin::m_crDialog |
| CBrush CSkin::m_brDialog |
| COLORREF CSkin::m_crPanelBack |
| CBitmap CSkin::m_bmPanelMark |
| COLORREF CSkin::m_crPanelText |
| COLORREF CSkin::m_crPanelBorder |
| COLORREF CSkin::m_crBannerBack |
| COLORREF CSkin::m_crBannerText |
| COLORREF CSkin::m_crSchemaRow[2] |
CList< CString > CSkin::m_pFontPaths [protected] |
LPCTSTR CSkin::m_pszModeSuffix [static, protected] |
1.5.2