DCL 3.7.4
Loading...
Searching...
No Matches
DialogWrapper Class Reference

#include <HtmlView.h>

Inheritance diagram for DialogWrapper:
HtmlView TextTemplate Object

Public Member Functions

 DialogWrapper (HtmlPage *pPage)
virtual void init (SQLFields &fields) __DCL_THROWS1(Exception *)
virtual void onPrint (Session &session) __DCL_THROWS1(Exception *)
Public Member Functions inherited from HtmlView
const HtmlPagepage () const
String SELF () const
String VNO () const
virtual void onGet (Session &session) __DCL_THROWS1(Exception *)
virtual void onPost (Session &session) __DCL_THROWS1(Exception *)
Public Member Functions inherited from Object
virtual String toString () const
virtual void destroy ()
String className () const
bool isInstanceOf (const std::type_info &typeinfo) const
virtual const std::type_info & typeInfo () const

Additional Inherited Members

Static Public Member Functions inherited from HtmlView
static HtmlViewcreateObject (HtmlPage *pPage, int nClassID, int nIndex)
Protected Member Functions inherited from HtmlView
 HtmlView (HtmlPage *pPage)
Protected Member Functions inherited from TextTemplate
virtual String onSQLFieldValue (_CONST SQLField &_field, const String &_fieldIsNullValue)
void parseHelper (const char_t *_begin, const char_t *_end)
void parse (const char_t *_begin, const char_t *_end)
int append (const char_t *_name, const String &_value, bool _clearExists)
int append (const char_t *_name, const TextTemplate &_template, bool _clearExists)
int append (const StringStringArray &_nameToValues, bool _clearExists)
int append (_CONST SQLFields &_fields, const String &_fieldIsNullValue, bool _clearExists)
Protected Member Functions inherited from Object
virtual ~Object ()
 Object ()
Static Protected Member Functions inherited from HtmlView
static size_t split (const String &str, StringStringArray &v)
static void dump (Session &session)
static String getDefault (ListedStringToStringArrayMap &map, const String &strKey)
static size_t getShortString (SQLField &field, size_t _len, String &strLong, String &strShort)
Protected Attributes inherited from HtmlView
HtmlPage__pPage
int __nIndex
int __nClassID
StringToStringMap __mapParams
Protected Attributes inherited from TextTemplate
void * __textList
void * __subTemplateMap

Detailed Description

Definition at line 263 of file HtmlView.h.

Constructor & Destructor Documentation

◆ DialogWrapper()

DialogWrapper::DialogWrapper ( HtmlPage * pPage)

Member Function Documentation

◆ init()

void DialogWrapper::init ( SQLFields & fields)
virtual

Reimplemented from HtmlView.

Definition at line 612 of file HtmlView.cpp.

614{
615 HtmlView::init(fields);
616
617 String rValue;
618 if (__mapParams.lookup(L"WIDTH", rValue) && !rValue.isEmpty())
619 __strWidth = rValue;
620
621 if (__mapParams.lookup(L"HEIGHT", rValue) && !rValue.isEmpty())
622 __strHeight = rValue;
623
624 if (__mapParams.lookup(L"INNER", rValue))
625 __strInnerPageID = rValue;
626}
StringToStringMap __mapParams
Definition HtmlView.h:112
virtual void init(SQLFields &fields) __DCL_THROWS1(Exception *)
Definition HtmlView.cpp:298

◆ onPrint()

void DialogWrapper::onPrint ( Session & session)
virtual

Reimplemented from HtmlView.

Definition at line 628 of file HtmlView.cpp.

630{
631 assign(L"PAGE_ID", __strInnerPageID);
632 assign(L"WIDTH", __strWidth);
633 assign(L"HEIGHT", __strHeight);
634
635 HtmlView::onPrint(session);
636 /*
637 OutputStream& out = session.__ctx.writer();
638 out << L"<iframe src=\"?p="
639 << __nInnerPageID
640 << L"\" width=\""
641 << __nWidth
642 << L"\" height=\""
643 << __nHeight
644 << L"\" frameborder=\"0\" scrolling=\"no\"></iframe>\n";
645 */
646}
virtual void onPrint(Session &session) __DCL_THROWS1(Exception *)
Definition HtmlView.cpp:349

The documentation for this class was generated from the following files: