home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1998 August / PC Direct August 1998.iso / S / powerj / Product / hpp.z / dtjtext.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-05  |  1.5 KB  |  60 lines

  1. // Design Time Java Text Component implementation. (HPP)
  2.  
  3. #ifndef _DTJTEXT_HPP
  4. #define _DTJTEXT_HPP
  5.  
  6. #include "dtjcomp.hpp"
  7.                       
  8. class METAEXPORTCLASSDEF DTJTextComponent : public DTJComponent
  9. {
  10.     public:
  11.         DTJTextComponent( const MetaObject * pMetaObj );
  12.         virtual ~DTJTextComponent();
  13.  
  14.     //
  15.     // Style
  16.     //
  17.     //    The Windows style property of the associated Window.
  18.     //    This doesn't necessarily match GetWindow()->GetStyle()
  19.     //    because some styles are deferred until run-time (such
  20.     //    as WSVisible).
  21.  
  22.     virtual WStyle        GetStyle() const;
  23.  
  24.     //
  25.     // DefaultStyle
  26.     //
  27.     //    The style with which new instances are created.  Default
  28.     //    implementation returns GetWindow()->GetDefaultStyle().
  29.  
  30.     virtual WStyle        GetDefaultStyle() const;
  31.  
  32.     //
  33.     // ExtendedStyle
  34.     //
  35.     //    The ExtendedStyle property of the window nature.
  36.  
  37.     virtual WStyle        GetExtendedStyle() const;
  38.     virtual WBool        SetExtendedStyle( WStyle style, WBool clone=FALSE );
  39.  
  40.     //
  41.     // DefaultExtendedStyle
  42.     //
  43.     //    See DefaultStyle
  44.  
  45.     virtual WStyle        GetDefaultExtendedStyle() const;
  46.  
  47.         virtual void GenerateCode( MMCodeGeneration mmCodeGen,
  48.                    ostream& src,
  49.                    MMCodeGenerationParms& pGenParms );
  50.  
  51.     virtual void GenerateTextProp( const WString& objPrefix, ostream& src,
  52.                        MMJCodeGenerationParms * ) const;
  53. };
  54.  
  55. // needed for mdreader
  56. typedef DTJTextComponent DTjava__dot__awt__dot__TextComponent__dot__102;
  57. typedef WTextBox java__dot__awt__dot__TextComponent__dot__102;
  58.  
  59. #endif // _DTJTEXT_HPP
  60.