46 #ifndef __WTX_TEMPLATE_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 47 #define __WTX_TEMPLATE_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 49 #include <Wt/WTemplate.h> 54 :
public Wt::WTemplate
69 virtual Wt::WString templateText()
const;
71 virtual void bindString(
const std::string & varName,
const Wt::WString & value, Wt::TextFormat textFormat=Wt::TextFormat::XHTML );
73 virtual void bindWidget(
const std::string & varName, std::unique_ptr< Wt::WWidget > widget );
75 virtual std::unique_ptr< WWidget > removeWidget( Wt::WWidget * widget )
override;
77 virtual bool conditionValue(
const std::string & name )
const;
79 virtual void resolveString(
const std::string & varName,
const std::vector< Wt::WString > & args, std::ostream & result );
81 virtual void handleUnresolvedVariable(
const std::string & varName,
const std::vector< Wt::WString > & args, std::ostream &result );
83 virtual Wt::WWidget * resolveWidget(
const std::string &varName );
85 virtual bool resolveFunction(
const std::string & name,
const std::vector< Wt::WString > & args, std::ostream & result );
89 virtual void refresh()
override;
91 virtual void renderTemplate( std::ostream &result );
100 #endif // __WTX_TEMPLATE_H___