home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2006 April / DPPRO0406DVD.ISO / Essentials / Programming / Notepad2 / Source / NP2SRC.ZIP / Edit.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-06-25  |  2.4 KB  |  90 lines

  1. /******************************************************************************
  2. *
  3. *
  4. * Notepad2
  5. *
  6. * Edit.h
  7. *   Text File Editing Helper Stuff
  8. *
  9. * See Readme.txt for more information about this source code.
  10. * Please send me your comments to this work.
  11. *
  12. * Distributed under the terms of the GNU General Public License,
  13. * see License.txt for details.
  14. *
  15. *                                              (c) Florian Balmer 1996-2004
  16. *                                                       textview@bluewin.ch
  17. *                                               http://www.flos-freeware.ch
  18. *
  19. *
  20. ******************************************************************************/
  21.  
  22.  
  23.  
  24. typedef struct _editfindreplace
  25. {
  26.   char szFind[256];
  27.   char szReplace[256];
  28.   char szFindUTF8[256];
  29.   char szReplaceUTF8[256];
  30.   UINT fuFlags;
  31.   BOOL bFindUp;
  32.   BOOL bFindClose;
  33.   BOOL bReplaceClose;
  34.   HWND hwnd;
  35.   //HANDLE hMRUFind;
  36.   //HANDLE hMRUReplace;
  37.  
  38. } EDITFINDREPLACE, *LPEDITFINDREPLACE, *LPCEDITFINDREPLACE;
  39.  
  40.  
  41. HWND EditCreate(HWND);
  42. void EditSetNewText(HWND,LPCSTR,DWORD);
  43. int  EditDetectEOLMode(HWND,LPCSTR,DWORD);
  44. BOOL EditLoadFile(HWND,LPCSTR,BOOL,int*,int*,BOOL*,BOOL*);
  45. BOOL EditSaveFile(HWND,LPCSTR,int,BOOL);
  46.  
  47. void EditCopyAppend(HWND);
  48.  
  49. void EditMakeUppercase(HWND);
  50. void EditMakeLowercase(HWND);
  51.  
  52. void EditTabsToSpaces(HWND,int);
  53. void EditSpacesToTabs(HWND,int);
  54.  
  55. void EditStripFirstCharacter(HWND);
  56. void EditStripTrailingBlanks(HWND);
  57. void EditRemoveBlankLines(HWND);
  58.  
  59. void EditJumpTo(HWND,int,int);
  60. void EditToggleBookmark(HWND);
  61. void EditJumpToBookmark(HWND,BOOL);
  62. void EditClearAllBookmarks(HWND);
  63.  
  64. BOOL EditFindReplaceDlg(HWND,LPCEDITFINDREPLACE,BOOL);
  65. BOOL EditFindNext(HWND,LPCEDITFINDREPLACE);
  66. BOOL EditFindPrev(HWND,LPCEDITFINDREPLACE);
  67. BOOL EditReplace(HWND,LPCEDITFINDREPLACE);
  68. BOOL EditReplaceAll(HWND,LPCEDITFINDREPLACE,BOOL);
  69. BOOL EditReplaceAllInSelection(HWND,LPCEDITFINDREPLACE,BOOL);
  70. BOOL EditLinenumDlg(HWND);
  71. BOOL EditPrint(HWND,LPCSTR,LPCSTR);
  72. void EditPrintSetup(HWND);
  73. void EditPrintInit();
  74.  
  75. // New codepage detection functions from Textview 6.0
  76. #define NCP_DEFAULT            0
  77. #define NCP_UTF8               1
  78. #define NCP_UTF8_SIGN          2
  79. #define NCP_UNICODE            4
  80. #define NCP_UNICODE_REVERSE    8
  81. #define NCP_UNICODE_BOM       16
  82.  
  83. BOOL IsUnicode(const char*,int,LPBOOL,LPBOOL);
  84. BOOL IsUTF8(const char*,int);
  85. BOOL IsUTF7(const char*,int);
  86.  
  87.  
  88.  
  89. ///   End of Edit.h   \\\
  90.