home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / Apps / Utilities / Converters / Convert_TEXT / Source / CharController.h < prev    next >
Encoding:
Text File  |  1993-10-02  |  2.2 KB  |  69 lines

  1. /***********************************************************************
  2. Controller class for Convert TEXT which converts between Mac and NeXT text.
  3. Copyright (C) 1993 David John Burrowes
  4.  
  5. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version.
  6.  
  7. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  8.  
  9. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  10.  
  11. The author, David John Burrowes, can be reached at:
  12.     davidjohn@kira.net.netcom.com
  13.     David John Burrowes
  14.     1926 Ivy #10
  15.     San Mateo, CA 94403-1367
  16. ***********************************************************************/
  17.  
  18. #import "ConvertController.h"
  19. //
  20. //
  21. //    93.07.05    djb    Added conversion type enum for 1.1
  22. //
  23. typedef    enum
  24. {
  25.     MacToNeXT = 0,
  26.     NeXTToMac = 1,
  27.     CRLFToNeXT = 2,
  28.     NeXTToCRLF = 3
  29. }
  30. ConversionTypes;
  31.  
  32. @interface CharController:ConvertController
  33. {
  34.     Instance    myManager;
  35.     Boolean    UseCurlyQuotes;
  36.     Boolean    UseIMv1;
  37.     ConversionTypes    DefaultConversion;    // Conversion to use if user hasn't explicitly specified
  38.     id    UseCurlyQuotesButton;
  39.     id    UseIMv1Button;
  40.     id    DefaultConversionButton;
  41.     id    theConverter;
  42.     ConversionTypes    CurrentConversion;    // the conversion that should be used at this moment.
  43.     id    MacConvertCommand;
  44.     id    NextConvertCommand;
  45.     id    CRLFConvertCommand;
  46.     id    NeXT2CRLFConvertCommand;
  47.     id    ConvertCommands;
  48. }
  49. - init;
  50.  
  51. - displayPreferences: sender;
  52. -SetUseCurlyQuotes: sender;
  53. -SetIMV1: sender;
  54. -SetDefaultConversion: sender;
  55.  
  56. - PrepareToConvertNeXT: sender;
  57. - PrepareToConvertMac: sender;
  58. - PrepareToConvertNeXTToCRLF:sender;
  59. - PrepareToConvertCRLF:sender;
  60. - ConvertFrom: sourceFile To: destinationFile; 
  61. //
  62. //    the following are used when pretending to be a converter, as well as controller.
  63. //
  64. - ReportTo: sender;
  65. - (Boolean) isThisAGoodFile: Instance;
  66.  
  67. @end
  68.  
  69.