home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dokpr1.zip / sampapp / sampcont.cpp < prev    next >
Text File  |  1995-11-09  |  3KB  |  141 lines

  1. /**************************************************************************
  2.  *                                                                        *
  3.  *                                                                        *
  4.  *          This code is copyright (c) 1994                               *
  5.  *                     Athena Design, Inc.                                *
  6.  *                     and David Pollak                                   *
  7.  *                                                                        *
  8.  *                ALL RIGHTS RESERVED                                     *
  9.  *                                                                        *
  10.  *                                                                        *
  11.  *                                                                        *
  12.  *                                                                        *
  13.  *                                                                        *
  14.  **************************************************************************/
  15.  
  16. #include "sampcont.h"
  17. #include <stdio.h>
  18.  
  19. MSampleController :: MSampleController(const char *lic,int &enable,HAB hab,int USERGB,int bufferRedraw)
  20.     : MGController(lic,enable,hab,USERGB)
  21. {
  22.     hitPoint.set(0,0);
  23. }
  24.  
  25. MSampleController :: ~MSampleController()
  26. {
  27. }
  28.  
  29. void MSampleController :: displayException(const MException *)
  30. {
  31. }
  32.  
  33. void MSampleController :: addToDestroyList(HWND)
  34. {
  35. }
  36.  
  37. int MSampleController :: beAlive()
  38. {
  39.     return 1;
  40. }
  41.  
  42. int MSampleController :: getInBeAlive()
  43. {
  44.     return 0;
  45. }
  46.  
  47. void MSampleController :: percentComplete(int)
  48. {
  49. }
  50.  
  51. void MSampleController :: setStatusMessage(const char *)
  52. {
  53. }
  54.  
  55. MPoint MSampleController :: getHitPoint()
  56. {
  57.     return hitPoint;
  58. }
  59.  
  60. void MSampleController :: setHitPoint(int x,int y)
  61. {
  62.     hitPoint.set(x,y);
  63. }
  64.  
  65.  
  66. HWND MSampleController :: getApplicationFrameWindow()
  67. {
  68.     return 0;
  69. }
  70.  
  71. HWND MSampleController :: getApplicationClientWindow()
  72. {
  73.     return 0;
  74. }
  75.  
  76. int MSampleController :: isEditingFormula()
  77. {
  78.     return 0;
  79. }
  80.  
  81. int MSampleController :: isEditing()
  82. {
  83.     return 0;
  84. }
  85.  
  86. int MSampleController :: handleKey(int,int)
  87. {
  88.     return 0;
  89. }
  90.  
  91. void MSampleController :: updateFormulaView()
  92. {
  93. }
  94.  
  95. void MSampleController :: removeEdit()
  96. {
  97. }
  98.  
  99. MEditView *MSampleController :: getEditView()
  100. {
  101.     return NULL;
  102. }
  103.  
  104. void MSampleController :: runScript(const char *,MException *)
  105. {
  106. }
  107.  
  108. const char * MSampleController :: getCurrencyChars(int page,int chr)
  109. {
  110.     static char *cur[] = {
  111.         // dollars
  112.         ".",",","$","",
  113.         // yen
  114.         ".",",","\xBE","",
  115.         // pounds
  116.         ".",",","\x9C","",
  117.         // ??
  118.         ",",".","",""};
  119.         
  120.     return cur[page * 4 + chr];
  121. }
  122.  
  123. void MSampleController :: resizeFormulaView()
  124. {
  125. }
  126.  
  127. void MSampleController :: setEndFlag (int on)
  128. {
  129. }
  130.  
  131. int MSampleController :: checkKBDState()
  132. {
  133. return 0;
  134. }
  135.  
  136. MMesaModel *MSampleController :: findModelChar( const char *, int )
  137. {
  138.     return NULL;
  139. }
  140.  
  141.