You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
780 B
25 lines
780 B
#pragma once
|
|
#include "pugixml\pugixml.hpp"
|
|
#include "res.mgr\SSkinPool.h"
|
|
#include "helper\SplitString.h"
|
|
#include "resprovider-zip\zipresprovider-param.h"
|
|
#include "resprovider-zip\SResProviderZip.h"
|
|
namespace SOUI
|
|
{
|
|
#define RT_SKIN _T("SkinXml")
|
|
class SSkinLoader :public SSingleton<SSkinLoader>
|
|
{
|
|
SAutoRefPtr<IResProvider> m_pResProvider;
|
|
SAutoRefPtr<SSkinPool> m_privateSkinPool;
|
|
SApplication *m_theApp;
|
|
BOOL CreateResProvider_ZIP(IObjRef **ppObj)
|
|
{
|
|
return RESPROVIDER_ZIP::SCreateInstance(ppObj);
|
|
}
|
|
public:
|
|
SSkinLoader(SApplication*);
|
|
~SSkinLoader();
|
|
void LoadSkinFormZip(SStringT respath, const TCHAR *strXmlSkin=_T("SkinXml:LoadSkinXml"));
|
|
void LoadSkin(SStringT respath,const TCHAR *strXmlSkin = _T("SkinXml:LoadSkinXml"));
|
|
};
|
|
}//END SOUI
|
|
|