Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Application Framework implementation of the Document View interface for the IlvView
class.
More...
#include <ilviews/appframe/view.h>
Public Member Functions | |
IlvDvView (IlvGadgetContainer *parent) | |
Constructs an IlvDvView object. | |
virtual IlvAbstractView * | getDvView () |
Gets the IlvAbstractView of the document view. |
Application Framework implementation of the Document View interface for the IlvView
class.
Library: ilvappframe
IlvDvView
is a subclass of IlvView
and implements the IlvDvDocViewInterface
interface. It is used for displaying document data in an IlvView
view. For example, the IlvDvManagerView
class inherits from this class to display the manager of its associated document.
Subclasses of IlvDvView
must be declared and implemented with specific macros, therefore allowing instances of these classes to be created automatically by the document templates. Here is a schematic sample that shows how macros must be used:
class MyViewClass : public IlvDvView { IlvDvDeclareViewCreate(); public: MyViewClass(IlvGadgetContainer* parent) : IlvDvView(parent) {} ... }; // Implementation file IlvDvPreRegisterViewClass(MyViewClass, IlvDvView); IL_BEGINMODULEINITDEF(mymodule) IlvDvPostRegisterViewClass(MyViewClass, IlvDvView); IL_ENDMODULEINITDEF(mymodule)
IlvDvView::IlvDvView | ( | IlvGadgetContainer * | parent | ) |
virtual IlvAbstractView* IlvDvView::getDvView | ( | ) | [virtual] |
Gets the IlvAbstractView
of the document view.
Must be redefined by the class that implements the interface if the class inherits from the IlvAbstractView
class. In this case, the redefined method must only return this
object. For example, the IlvDvView
class redefines the method to return (IlvView*)this
object. By default, the method returns 0
.
Reimplemented from IlvDvDocViewInterface.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.