|
|
@ -106,6 +106,10 @@ namespace NLGUI
|
|
|
|
sint32 MaxHeight;
|
|
|
|
sint32 MaxHeight;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ImageDownload system
|
|
|
|
|
|
|
|
enum TDataType {ImgType= 0, BnpType};
|
|
|
|
|
|
|
|
enum TImageType {NormalImage=0, OverImage};
|
|
|
|
|
|
|
|
|
|
|
|
// Constructor
|
|
|
|
// Constructor
|
|
|
|
CGroupHTML(const TCtorParam ¶m);
|
|
|
|
CGroupHTML(const TCtorParam ¶m);
|
|
|
|
~CGroupHTML();
|
|
|
|
~CGroupHTML();
|
|
|
@ -152,6 +156,10 @@ namespace NLGUI
|
|
|
|
// End of the paragraph
|
|
|
|
// End of the paragraph
|
|
|
|
void endParagraph();
|
|
|
|
void endParagraph();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// add image download (used by view_bitmap.cpp to load web images)
|
|
|
|
|
|
|
|
void addImageDownload(const std::string &url, CViewBase *img, const CStyleParams &style = CStyleParams(), const TImageType type = NormalImage);
|
|
|
|
|
|
|
|
std::string localImageName(const std::string &url);
|
|
|
|
|
|
|
|
|
|
|
|
// Timeout
|
|
|
|
// Timeout
|
|
|
|
void setTimeout(float tm) {_TimeoutValue= std::max(0.f, tm);}
|
|
|
|
void setTimeout(float tm) {_TimeoutValue= std::max(0.f, tm);}
|
|
|
|
float getTimeout() const {return (float)_TimeoutValue;}
|
|
|
|
float getTimeout() const {return (float)_TimeoutValue;}
|
|
|
@ -730,6 +738,8 @@ namespace NLGUI
|
|
|
|
return _Indent.back();
|
|
|
|
return _Indent.back();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Current node is a title
|
|
|
|
// Current node is a title
|
|
|
|
bool _Title;
|
|
|
|
bool _Title;
|
|
|
|
|
|
|
|
|
|
|
@ -819,10 +829,6 @@ namespace NLGUI
|
|
|
|
// decode all HTML entities
|
|
|
|
// decode all HTML entities
|
|
|
|
static ucstring decodeHTMLEntities(const ucstring &str);
|
|
|
|
static ucstring decodeHTMLEntities(const ucstring &str);
|
|
|
|
|
|
|
|
|
|
|
|
// ImageDownload system
|
|
|
|
|
|
|
|
enum TDataType {ImgType= 0, BnpType};
|
|
|
|
|
|
|
|
enum TImageType {NormalImage=0, OverImage};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct CDataImageDownload
|
|
|
|
struct CDataImageDownload
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
@ -864,8 +870,6 @@ namespace NLGUI
|
|
|
|
|
|
|
|
|
|
|
|
void initImageDownload();
|
|
|
|
void initImageDownload();
|
|
|
|
void checkImageDownload();
|
|
|
|
void checkImageDownload();
|
|
|
|
void addImageDownload(const std::string &url, CViewBase *img, const CStyleParams &style = CStyleParams(), const TImageType type = NormalImage);
|
|
|
|
|
|
|
|
std::string localImageName(const std::string &url);
|
|
|
|
|
|
|
|
std::string getAbsoluteUrl(const std::string &url);
|
|
|
|
std::string getAbsoluteUrl(const std::string &url);
|
|
|
|
|
|
|
|
|
|
|
|
bool isTrustedDomain(const std::string &domain);
|
|
|
|
bool isTrustedDomain(const std::string &domain);
|
|
|
|