home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / objmodel / textdefs.h < prev    next >
C/C++ Source or Header  |  1998-05-05  |  2KB  |  95 lines

  1. // Microsoft Visual Studio Object Model
  2. // Copyright (C) 1996-1997 Microsoft Corporation
  3. // All rights reserved.
  4.  
  5. /////////////////////////////////////////////////////////////////////////////
  6. // textdefs.h
  7.  
  8. // Declaration of constants used by objects in the type library
  9. //  VISUAL STUDIO 97 TEXT EDITOR (SharedIDE\bin\devedit.pkg)
  10.  
  11. #ifndef __TEXTDEFS_H__
  12. #define __TEXTDEFS_H__
  13.  
  14.  
  15. ///////////////////////////////////////////////////////////////////////
  16. // Enumerations used by Automation Methods
  17.  
  18. // select vs. extend
  19. enum DsMovementOptions
  20. {
  21.     dsMove        = 0,
  22.     dsExtend    = 1
  23. };
  24.  
  25. // TextSelection.StartOfLine
  26. enum DsStartOfLineOptions
  27. {
  28.     dsFirstColumn    = 0,
  29.     dsFirstText        = 1
  30. };
  31.  
  32. // TextSelection.ChangeCase
  33. enum DsCaseOptions
  34. {
  35.     dsLowercase        = 1,
  36.     dsUppercase        = 2,
  37.     dsCapitalize    = 3
  38. };
  39.  
  40. // TextSelection.DeleteWhitespace
  41. enum DsWhitespaceOptions
  42. {
  43.     dsHorizontal    = 0,
  44.     dsVertical        = 1
  45. };
  46.  
  47. // TextSelection.GoToLine
  48. enum DsGoToLineOptions
  49. {
  50.     dsLastLine = -1
  51. };
  52.  
  53. // TextEditor.Emulation
  54. enum DsEmulation
  55. {
  56.  
  57.     dsDevStudio        = 0,
  58.     dsVC2            = 1,
  59.     dsBrief            = 2,
  60.     dsEpsilon        = 3,
  61.     dsCustom        = 4
  62. };
  63.  
  64.  
  65. // TextSelection.FindText/ReplaceText
  66. enum DsTextSearchOptions
  67. {
  68.     dsMatchWord            = 2,    // match whole words
  69.     dsMatchCase            = 4,    // match is sensitive to case
  70.     dsMatchNoRegExp        = 0,    // don't use regular expressions
  71.     dsMatchRegExp        = 8,    // match Dev Studio regular expressions
  72.     dsMatchRegExpB        = 16,    // match BRIEF(TM) regular expressions
  73.     dsMatchRegExpE        = 32,    // match Epsilon(TM) regular expressions
  74.     dsMatchRegExpCur    = 64,    // match using current reg exp setting
  75.     dsMatchForward        = 0,    // search forward
  76.     dsMatchBackward        = 128,    // search backwards
  77.     dsMatchFromStart    = 256,    // do search from start or end of view
  78. };
  79.  
  80.  
  81. // string constants
  82.  
  83. #define DS_IDL                "ODL/IDL"
  84. #define DS_VBS                "VBS Macro"
  85. #define DS_CPP                "C/C++"
  86. #define DS_JAVA                "Java"
  87. #define DS_HTML_IE3            "HTML - IE 3.0"
  88. #define DS_HTML_RFC1866        "HTML 2.0 (RFC 1866)"
  89. #define DS_FORTRAN_FIXED    "Fortran Fixed"
  90. #define DS_FORTRAN_FREE        "Fortran Free"
  91.  
  92. #define DS_TEXT_DOCUMENT    "Text"
  93.  
  94. #endif //__TEXTDEFS_H__
  95.