Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.0 KiB

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