├── .github ├── dependabot.yml └── workflows │ ├── CI_build.yml │ └── codeql-analysis.yml ├── LICENSE ├── Notepad_plus_msgs.h ├── PluginInterface.h ├── README.md ├── Sci_Position.h ├── Scintilla.h ├── SpeechPlugin.cpp ├── SpeechPlugin.rc ├── SpeechPlugin.vcxproj ├── change.log └── resource.h /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | 9 | # Maintain dependencies for GitHub Actions 10 | - package-ecosystem: "github-actions" 11 | directory: "/" 12 | schedule: 13 | interval: "weekly" 14 | -------------------------------------------------------------------------------- /.github/workflows/CI_build.yml: -------------------------------------------------------------------------------- 1 | name: CI_build 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | 8 | runs-on: windows-latest 9 | strategy: 10 | matrix: 11 | build_configuration: [Release, Debug] 12 | build_platform: [x64, Win32, ARM64] 13 | 14 | steps: 15 | - name: Checkout repo 16 | uses: actions/checkout@v4 17 | 18 | - name: Add msbuild to PATH 19 | uses: microsoft/setup-msbuild@v2 20 | 21 | - name: MSBuild of plugin dll 22 | working-directory: .\ 23 | run: msbuild SpeechPlugin.vcxproj /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" 24 | 25 | - uses: olegtarasov/get-tag@v2.1.4 26 | id: tagName 27 | 28 | - name: zip artifacts for ${{ matrix.build_platform }} 29 | if: matrix.build_configuration == 'Release' 30 | run: 7z a SpeechPlugin_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip .\${{ matrix.build_platform }}\${{ matrix.build_configuration }}\SpeechPlugin.dll 31 | 32 | - name: Archive artifacts for ${{ matrix.build_platform }} 33 | if: matrix.build_configuration == 'Release' 34 | uses: actions/upload-artifact@v4 35 | with: 36 | name: SpeechPlugin_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip 37 | path: SpeechPlugin_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip 38 | 39 | - name: Create release on tagging 40 | uses: softprops/action-gh-release@v2 41 | if: startsWith(github.ref, 'refs/tags/') 42 | with: 43 | files: SpeechPlugin_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip 44 | 45 | -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- 1 | name: "CodeQL" 2 | 3 | on: 4 | push: 5 | branches: [main, ] 6 | pull_request: 7 | # The branches below must be a subset of the branches above 8 | branches: [main] 9 | schedule: 10 | - cron: '0 6 * * 4' 11 | 12 | jobs: 13 | analyze: 14 | name: Analyze 15 | runs-on: windows-latest 16 | 17 | steps: 18 | - name: Checkout repository 19 | uses: actions/checkout@v4 20 | 21 | # Initializes the CodeQL tools for scanning. 22 | - name: Initialize CodeQL 23 | uses: github/codeql-action/init@v3 24 | # Override language selection by uncommenting this and choosing your languages 25 | # with: 26 | # languages: go, javascript, csharp, python, cpp, java 27 | 28 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 29 | # If this step fails, then you should remove it and run the build manually (see below) 30 | #- name: Autobuild 31 | # uses: github/codeql-action/autobuild@v1 32 | 33 | # ℹ️ Command-line programs to run using the OS shell. 34 | # 📚 https://git.io/JvXDl 35 | 36 | # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines 37 | # and modify them (or add more) to build your code if your project 38 | # uses a compiled language 39 | 40 | #- run: | 41 | # make bootstrap 42 | # make release 43 | 44 | - name: Add msbuild to PATH 45 | uses: microsoft/setup-msbuild@v2 46 | 47 | - name: MSBuild of plugin dll 48 | working-directory: . 49 | run: msbuild SpeechPlugin.vcxproj /m /p:configuration="Debug" /p:platform="x64" 50 | 51 | - name: Perform CodeQL Analysis 52 | uses: github/codeql-action/analyze@v3 53 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /Notepad_plus_msgs.h: -------------------------------------------------------------------------------- 1 | // This file is part of Notepad++ project 2 | // Copyright (C)2021 Don HO 3 | 4 | // This program is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // at your option any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program. If not, see . 16 | 17 | 18 | #pragma once 19 | 20 | #include 21 | #include 22 | 23 | enum LangType {L_TEXT, L_PHP , L_C, L_CPP, L_CS, L_OBJC, L_JAVA, L_RC,\ 24 | L_HTML, L_XML, L_MAKEFILE, L_PASCAL, L_BATCH, L_INI, L_ASCII, L_USER,\ 25 | L_ASP, L_SQL, L_VB, L_JS, L_CSS, L_PERL, L_PYTHON, L_LUA, \ 26 | L_TEX, L_FORTRAN, L_BASH, L_FLASH, L_NSIS, L_TCL, L_LISP, L_SCHEME,\ 27 | L_ASM, L_DIFF, L_PROPS, L_PS, L_RUBY, L_SMALLTALK, L_VHDL, L_KIX, L_AU3,\ 28 | L_CAML, L_ADA, L_VERILOG, L_MATLAB, L_HASKELL, L_INNO, L_SEARCHRESULT,\ 29 | L_CMAKE, L_YAML, L_COBOL, L_GUI4CLI, L_D, L_POWERSHELL, L_R, L_JSP,\ 30 | L_COFFEESCRIPT, L_JSON, L_JAVASCRIPT, L_FORTRAN_77, L_BAANC, L_SREC,\ 31 | L_IHEX, L_TEHEX, L_SWIFT,\ 32 | L_ASN1, L_AVS, L_BLITZBASIC, L_PUREBASIC, L_FREEBASIC, \ 33 | L_CSOUND, L_ERLANG, L_ESCRIPT, L_FORTH, L_LATEX, \ 34 | L_MMIXAL, L_NIM, L_NNCRONTAB, L_OSCRIPT, L_REBOL, \ 35 | L_REGISTRY, L_RUST, L_SPICE, L_TXT2TAGS, L_VISUALPROLOG,\ 36 | L_TYPESCRIPT, L_JSON5, L_MSSQL, L_GDSCRIPT, L_HOLLYWOOD,\ 37 | // Don't use L_JS, use L_JAVASCRIPT instead 38 | // The end of enumated language type, so it should be always at the end 39 | L_EXTERNAL}; 40 | enum class ExternalLexerAutoIndentMode { Standard, C_Like, Custom }; 41 | enum class MacroStatus { Idle, RecordInProgress, RecordingStopped, PlayingBack }; 42 | 43 | enum winVer { WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV_S2003, WV_XPX64, WV_VISTA, WV_WIN7, WV_WIN8, WV_WIN81, WV_WIN10, WV_WIN11 }; 44 | enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64, PF_ARM64 }; 45 | 46 | 47 | 48 | #define NPPMSG (WM_USER + 1000) 49 | 50 | #define NPPM_GETCURRENTSCINTILLA (NPPMSG + 4) 51 | #define NPPM_GETCURRENTLANGTYPE (NPPMSG + 5) 52 | #define NPPM_SETCURRENTLANGTYPE (NPPMSG + 6) 53 | 54 | #define NPPM_GETNBOPENFILES (NPPMSG + 7) 55 | #define ALL_OPEN_FILES 0 56 | #define PRIMARY_VIEW 1 57 | #define SECOND_VIEW 2 58 | 59 | #define NPPM_GETOPENFILENAMES (NPPMSG + 8) 60 | 61 | 62 | #define NPPM_MODELESSDIALOG (NPPMSG + 12) 63 | #define MODELESSDIALOGADD 0 64 | #define MODELESSDIALOGREMOVE 1 65 | 66 | #define NPPM_GETNBSESSIONFILES (NPPMSG + 13) 67 | #define NPPM_GETSESSIONFILES (NPPMSG + 14) 68 | #define NPPM_SAVESESSION (NPPMSG + 15) 69 | #define NPPM_SAVECURRENTSESSION (NPPMSG + 16) 70 | 71 | struct sessionInfo { 72 | TCHAR* sessionFilePathName; 73 | int nbFile; 74 | TCHAR** files; 75 | }; 76 | 77 | #define NPPM_GETOPENFILENAMESPRIMARY (NPPMSG + 17) 78 | #define NPPM_GETOPENFILENAMESSECOND (NPPMSG + 18) 79 | 80 | #define NPPM_CREATESCINTILLAHANDLE (NPPMSG + 20) 81 | #define NPPM_DESTROYSCINTILLAHANDLE (NPPMSG + 21) 82 | #define NPPM_GETNBUSERLANG (NPPMSG + 22) 83 | 84 | #define NPPM_GETCURRENTDOCINDEX (NPPMSG + 23) 85 | #define MAIN_VIEW 0 86 | #define SUB_VIEW 1 87 | 88 | #define NPPM_SETSTATUSBAR (NPPMSG + 24) 89 | #define STATUSBAR_DOC_TYPE 0 90 | #define STATUSBAR_DOC_SIZE 1 91 | #define STATUSBAR_CUR_POS 2 92 | #define STATUSBAR_EOF_FORMAT 3 93 | #define STATUSBAR_UNICODE_TYPE 4 94 | #define STATUSBAR_TYPING_MODE 5 95 | 96 | #define NPPM_GETMENUHANDLE (NPPMSG + 25) 97 | #define NPPPLUGINMENU 0 98 | #define NPPMAINMENU 1 99 | // INT NPPM_GETMENUHANDLE(INT menuChoice, 0) 100 | // Return: menu handle (HMENU) of choice (plugin menu handle or Notepad++ main menu handle) 101 | 102 | #define NPPM_ENCODESCI (NPPMSG + 26) 103 | //ascii file to unicode 104 | //int NPPM_ENCODESCI(MAIN_VIEW/SUB_VIEW, 0) 105 | //return new unicodeMode 106 | 107 | #define NPPM_DECODESCI (NPPMSG + 27) 108 | //unicode file to ascii 109 | //int NPPM_DECODESCI(MAIN_VIEW/SUB_VIEW, 0) 110 | //return old unicodeMode 111 | 112 | #define NPPM_ACTIVATEDOC (NPPMSG + 28) 113 | //void NPPM_ACTIVATEDOC(int view, int index2Activate) 114 | 115 | #define NPPM_LAUNCHFINDINFILESDLG (NPPMSG + 29) 116 | //void NPPM_LAUNCHFINDINFILESDLG(TCHAR * dir2Search, TCHAR * filtre) 117 | 118 | #define NPPM_DMMSHOW (NPPMSG + 30) 119 | //void NPPM_DMMSHOW(0, tTbData->hClient) 120 | 121 | #define NPPM_DMMHIDE (NPPMSG + 31) 122 | //void NPPM_DMMHIDE(0, tTbData->hClient) 123 | 124 | #define NPPM_DMMUPDATEDISPINFO (NPPMSG + 32) 125 | //void NPPM_DMMUPDATEDISPINFO(0, tTbData->hClient) 126 | 127 | #define NPPM_DMMREGASDCKDLG (NPPMSG + 33) 128 | //void NPPM_DMMREGASDCKDLG(0, &tTbData) 129 | 130 | #define NPPM_LOADSESSION (NPPMSG + 34) 131 | //void NPPM_LOADSESSION(0, const TCHAR* file name) 132 | 133 | #define NPPM_DMMVIEWOTHERTAB (NPPMSG + 35) 134 | //void WM_DMM_VIEWOTHERTAB(0, tTbData->pszName) 135 | 136 | #define NPPM_RELOADFILE (NPPMSG + 36) 137 | //BOOL NPPM_RELOADFILE(BOOL withAlert, TCHAR *filePathName2Reload) 138 | 139 | #define NPPM_SWITCHTOFILE (NPPMSG + 37) 140 | //BOOL NPPM_SWITCHTOFILE(0, TCHAR *filePathName2switch) 141 | 142 | #define NPPM_SAVECURRENTFILE (NPPMSG + 38) 143 | //BOOL NPPM_SAVECURRENTFILE(0, 0) 144 | 145 | #define NPPM_SAVEALLFILES (NPPMSG + 39) 146 | //BOOL NPPM_SAVEALLFILES(0, 0) 147 | 148 | #define NPPM_SETMENUITEMCHECK (NPPMSG + 40) 149 | //void WM_PIMENU_CHECK(UINT funcItem[X]._cmdID, TRUE/FALSE) 150 | 151 | #define NPPM_ADDTOOLBARICON_DEPRECATED (NPPMSG + 41) 152 | //void NPPM_ADDTOOLBARICON(UINT funcItem[X]._cmdID, toolbarIcons iconHandles) -- DEPRECATED : use NPPM_ADDTOOLBARICON_FORDARKMODE instead 153 | //2 formats of icon are needed: .ico & .bmp 154 | //Both handles below should be set so the icon will be displayed correctly if toolbar icon sets are changed by users 155 | struct toolbarIcons { 156 | HBITMAP hToolbarBmp; 157 | HICON hToolbarIcon; 158 | }; 159 | 160 | #define NPPM_GETWINDOWSVERSION (NPPMSG + 42) 161 | //winVer NPPM_GETWINDOWSVERSION(0, 0) 162 | 163 | #define NPPM_DMMGETPLUGINHWNDBYNAME (NPPMSG + 43) 164 | //HWND WM_DMM_GETPLUGINHWNDBYNAME(const TCHAR *windowName, const TCHAR *moduleName) 165 | // if moduleName is NULL, then return value is NULL 166 | // if windowName is NULL, then the first found window handle which matches with the moduleName will be returned 167 | 168 | #define NPPM_MAKECURRENTBUFFERDIRTY (NPPMSG + 44) 169 | //BOOL NPPM_MAKECURRENTBUFFERDIRTY(0, 0) 170 | 171 | #define NPPM_GETENABLETHEMETEXTUREFUNC_DEPRECATED (NPPMSG + 45) 172 | //BOOL NPPM_GETENABLETHEMETEXTUREFUNC(0, 0) -- DEPRECATED : use EnableThemeDialogTexture from uxtheme.h instead 173 | 174 | #define NPPM_GETPLUGINSCONFIGDIR (NPPMSG + 46) 175 | //INT NPPM_GETPLUGINSCONFIGDIR(int strLen, TCHAR *str) 176 | // Get user's plugin config directory path. It's useful if plugins want to save/load parameters for the current user 177 | // Returns the number of TCHAR copied/to copy. 178 | // Users should call it with "str" be NULL to get the required number of TCHAR (not including the terminating nul character), 179 | // allocate "str" buffer with the return value + 1, then call it again to get the path. 180 | 181 | #define NPPM_MSGTOPLUGIN (NPPMSG + 47) 182 | //BOOL NPPM_MSGTOPLUGIN(TCHAR *destModuleName, CommunicationInfo *info) 183 | // return value is TRUE when the message arrive to the destination plugins. 184 | // if destModule or info is NULL, then return value is FALSE 185 | struct CommunicationInfo { 186 | long internalMsg; 187 | const TCHAR * srcModuleName; 188 | void * info; // defined by plugin 189 | }; 190 | 191 | #define NPPM_MENUCOMMAND (NPPMSG + 48) 192 | //void NPPM_MENUCOMMAND(0, int cmdID) 193 | // uncomment //#include "menuCmdID.h" 194 | // in the beginning of this file then use the command symbols defined in "menuCmdID.h" file 195 | // to access all the Notepad++ menu command items 196 | 197 | #define NPPM_TRIGGERTABBARCONTEXTMENU (NPPMSG + 49) 198 | //void NPPM_TRIGGERTABBARCONTEXTMENU(int view, int index2Activate) 199 | 200 | #define NPPM_GETNPPVERSION (NPPMSG + 50) 201 | // int NPPM_GETNPPVERSION(BOOL ADD_ZERO_PADDING, 0) 202 | // Get Notepad++ version 203 | // HIWORD(returned_value) is major part of version: the 1st number 204 | // LOWORD(returned_value) is minor part of version: the 3 last numbers 205 | // 206 | // ADD_ZERO_PADDING == TRUE 207 | // 208 | // version | HIWORD | LOWORD 209 | //------------------------------ 210 | // 8.9.6.4 | 8 | 964 211 | // 9 | 9 | 0 212 | // 6.9 | 6 | 900 213 | // 6.6.6 | 6 | 660 214 | // 13.6.6.6 | 13 | 666 215 | // 216 | // 217 | // ADD_ZERO_PADDING == FALSE 218 | // 219 | // version | HIWORD | LOWORD 220 | //------------------------------ 221 | // 8.9.6.4 | 8 | 964 222 | // 9 | 9 | 0 223 | // 6.9 | 6 | 9 224 | // 6.6.6 | 6 | 66 225 | // 13.6.6.6 | 13 | 666 226 | 227 | #define NPPM_HIDETABBAR (NPPMSG + 51) 228 | // BOOL NPPM_HIDETABBAR(0, BOOL hideOrNot) 229 | // if hideOrNot is set as TRUE then tab bar will be hidden 230 | // otherwise it'll be shown. 231 | // return value : the old status value 232 | 233 | #define NPPM_ISTABBARHIDDEN (NPPMSG + 52) 234 | // BOOL NPPM_ISTABBARHIDDEN(0, 0) 235 | // returned value : TRUE if tab bar is hidden, otherwise FALSE 236 | 237 | #define NPPM_GETPOSFROMBUFFERID (NPPMSG + 57) 238 | // INT NPPM_GETPOSFROMBUFFERID(UINT_PTR bufferID, INT priorityView) 239 | // Return VIEW|INDEX from a buffer ID. -1 if the bufferID non existing 240 | // if priorityView set to SUB_VIEW, then SUB_VIEW will be search firstly 241 | // 242 | // VIEW takes 2 highest bits and INDEX (0 based) takes the rest (30 bits) 243 | // Here's the values for the view : 244 | // MAIN_VIEW 0 245 | // SUB_VIEW 1 246 | 247 | #define NPPM_GETFULLPATHFROMBUFFERID (NPPMSG + 58) 248 | // INT NPPM_GETFULLPATHFROMBUFFERID(UINT_PTR bufferID, TCHAR *fullFilePath) 249 | // Get full path file name from a bufferID. 250 | // Return -1 if the bufferID non existing, otherwise the number of TCHAR copied/to copy 251 | // User should call it with fullFilePath be NULL to get the number of TCHAR (not including the nul character), 252 | // allocate fullFilePath with the return values + 1, then call it again to get full path file name 253 | 254 | #define NPPM_GETBUFFERIDFROMPOS (NPPMSG + 59) 255 | // LRESULT NPPM_GETBUFFERIDFROMPOS(INT index, INT iView) 256 | // wParam: Position of document 257 | // lParam: View to use, 0 = Main, 1 = Secondary 258 | // Returns 0 if invalid 259 | 260 | #define NPPM_GETCURRENTBUFFERID (NPPMSG + 60) 261 | // LRESULT NPPM_GETCURRENTBUFFERID(0, 0) 262 | // Returns active Buffer 263 | 264 | #define NPPM_RELOADBUFFERID (NPPMSG + 61) 265 | // VOID NPPM_RELOADBUFFERID(UINT_PTR bufferID, BOOL alert) 266 | // Reloads Buffer 267 | // wParam: Buffer to reload 268 | // lParam: 0 if no alert, else alert 269 | 270 | #define NPPM_GETBUFFERLANGTYPE (NPPMSG + 64) 271 | // INT NPPM_GETBUFFERLANGTYPE(UINT_PTR bufferID, 0) 272 | // wParam: BufferID to get LangType from 273 | // lParam: 0 274 | // Returns as int, see LangType. -1 on error 275 | 276 | #define NPPM_SETBUFFERLANGTYPE (NPPMSG + 65) 277 | // BOOL NPPM_SETBUFFERLANGTYPE(UINT_PTR bufferID, INT langType) 278 | // wParam: BufferID to set LangType of 279 | // lParam: LangType 280 | // Returns TRUE on success, FALSE otherwise 281 | // use int, see LangType for possible values 282 | // L_USER and L_EXTERNAL are not supported 283 | 284 | #define NPPM_GETBUFFERENCODING (NPPMSG + 66) 285 | // INT NPPM_GETBUFFERENCODING(UINT_PTR bufferID, 0) 286 | // wParam: BufferID to get encoding from 287 | // lParam: 0 288 | // returns as int, see UniMode. -1 on error 289 | 290 | #define NPPM_SETBUFFERENCODING (NPPMSG + 67) 291 | // BOOL NPPM_SETBUFFERENCODING(UINT_PTR bufferID, INT encoding) 292 | // wParam: BufferID to set encoding of 293 | // lParam: encoding 294 | // Returns TRUE on success, FALSE otherwise 295 | // use int, see UniMode 296 | // Can only be done on new, unedited files 297 | 298 | #define NPPM_GETBUFFERFORMAT (NPPMSG + 68) 299 | // INT NPPM_GETBUFFERFORMAT(UINT_PTR bufferID, 0) 300 | // wParam: BufferID to get EolType format from 301 | // lParam: 0 302 | // returns as int, see EolType format. -1 on error 303 | 304 | #define NPPM_SETBUFFERFORMAT (NPPMSG + 69) 305 | // BOOL NPPM_SETBUFFERFORMAT(UINT_PTR bufferID, INT format) 306 | // wParam: BufferID to set EolType format of 307 | // lParam: format 308 | // Returns TRUE on success, FALSE otherwise 309 | // use int, see EolType format 310 | 311 | 312 | #define NPPM_HIDETOOLBAR (NPPMSG + 70) 313 | // BOOL NPPM_HIDETOOLBAR(0, BOOL hideOrNot) 314 | // if hideOrNot is set as TRUE then tool bar will be hidden 315 | // otherwise it'll be shown. 316 | // return value : the old status value 317 | 318 | #define NPPM_ISTOOLBARHIDDEN (NPPMSG + 71) 319 | // BOOL NPPM_ISTOOLBARHIDDEN(0, 0) 320 | // returned value : TRUE if tool bar is hidden, otherwise FALSE 321 | 322 | #define NPPM_HIDEMENU (NPPMSG + 72) 323 | // BOOL NPPM_HIDEMENU(0, BOOL hideOrNot) 324 | // if hideOrNot is set as TRUE then menu will be hidden 325 | // otherwise it'll be shown. 326 | // return value : the old status value 327 | 328 | #define NPPM_ISMENUHIDDEN (NPPMSG + 73) 329 | // BOOL NPPM_ISMENUHIDDEN(0, 0) 330 | // returned value : TRUE if menu is hidden, otherwise FALSE 331 | 332 | #define NPPM_HIDESTATUSBAR (NPPMSG + 74) 333 | // BOOL NPPM_HIDESTATUSBAR(0, BOOL hideOrNot) 334 | // if hideOrNot is set as TRUE then STATUSBAR will be hidden 335 | // otherwise it'll be shown. 336 | // return value : the old status value 337 | 338 | #define NPPM_ISSTATUSBARHIDDEN (NPPMSG + 75) 339 | // BOOL NPPM_ISSTATUSBARHIDDEN(0, 0) 340 | // returned value : TRUE if STATUSBAR is hidden, otherwise FALSE 341 | 342 | #define NPPM_GETSHORTCUTBYCMDID (NPPMSG + 76) 343 | // BOOL NPPM_GETSHORTCUTBYCMDID(int cmdID, ShortcutKey *sk) 344 | // get your plugin command current mapped shortcut into sk via cmdID 345 | // You may need it after getting NPPN_READY notification 346 | // returned value : TRUE if this function call is successful and shortcut is enable, otherwise FALSE 347 | 348 | #define NPPM_DOOPEN (NPPMSG + 77) 349 | // BOOL NPPM_DOOPEN(0, const TCHAR *fullPathName2Open) 350 | // fullPathName2Open indicates the full file path name to be opened. 351 | // The return value is TRUE (1) if the operation is successful, otherwise FALSE (0). 352 | 353 | #define NPPM_SAVECURRENTFILEAS (NPPMSG + 78) 354 | // BOOL NPPM_SAVECURRENTFILEAS (BOOL asCopy, const TCHAR* filename) 355 | 356 | #define NPPM_GETCURRENTNATIVELANGENCODING (NPPMSG + 79) 357 | // INT NPPM_GETCURRENTNATIVELANGENCODING(0, 0) 358 | // returned value : the current native language encoding 359 | 360 | #define NPPM_ALLOCATESUPPORTED (NPPMSG + 80) 361 | // returns TRUE if NPPM_ALLOCATECMDID is supported 362 | // Use to identify if subclassing is necessary 363 | 364 | #define NPPM_ALLOCATECMDID (NPPMSG + 81) 365 | // BOOL NPPM_ALLOCATECMDID(int numberRequested, int* startNumber) 366 | // sets startNumber to the initial command ID if successful 367 | // Returns: TRUE if successful, FALSE otherwise. startNumber will also be set to 0 if unsuccessful 368 | 369 | #define NPPM_ALLOCATEMARKER (NPPMSG + 82) 370 | // BOOL NPPM_ALLOCATEMARKER(int numberRequested, int* startNumber) 371 | // sets startNumber to the initial marker ID if successful 372 | // Allocates a marker number to a plugin: if a plugin need to add a marker on Notepad++'s Scintilla marker margin, 373 | // it has to use this message to get marker number, in order to prevent from the conflict with the other plugins. 374 | // Returns: TRUE if successful, FALSE otherwise. startNumber will also be set to 0 if unsuccessful 375 | 376 | #define NPPM_GETLANGUAGENAME (NPPMSG + 83) 377 | // INT NPPM_GETLANGUAGENAME(int langType, TCHAR *langName) 378 | // Get programming language name from the given language type (LangType) 379 | // Return value is the number of copied character / number of character to copy (\0 is not included) 380 | // You should call this function 2 times - the first time you pass langName as NULL to get the number of characters to copy. 381 | // You allocate a buffer of the length of (the number of characters + 1) then call NPPM_GETLANGUAGENAME function the 2nd time 382 | // by passing allocated buffer as argument langName 383 | 384 | #define NPPM_GETLANGUAGEDESC (NPPMSG + 84) 385 | // INT NPPM_GETLANGUAGEDESC(int langType, TCHAR *langDesc) 386 | // Get programming language short description from the given language type (LangType) 387 | // Return value is the number of copied character / number of character to copy (\0 is not included) 388 | // You should call this function 2 times - the first time you pass langDesc as NULL to get the number of characters to copy. 389 | // You allocate a buffer of the length of (the number of characters + 1) then call NPPM_GETLANGUAGEDESC function the 2nd time 390 | // by passing allocated buffer as argument langDesc 391 | 392 | #define NPPM_SHOWDOCLIST (NPPMSG + 85) 393 | // VOID NPPM_SHOWDOCLIST(0, BOOL toShowOrNot) 394 | // Send this message to show or hide Document List. 395 | // if toShowOrNot is TRUE then show Document List, otherwise hide it. 396 | 397 | #define NPPM_ISDOCLISTSHOWN (NPPMSG + 86) 398 | // BOOL NPPM_ISDOCLISTSHOWN(0, 0) 399 | // Check to see if Document List is shown. 400 | 401 | #define NPPM_GETAPPDATAPLUGINSALLOWED (NPPMSG + 87) 402 | // BOOL NPPM_GETAPPDATAPLUGINSALLOWED(0, 0) 403 | // Check to see if loading plugins from "%APPDATA%\..\Local\Notepad++\plugins" is allowed. 404 | 405 | #define NPPM_GETCURRENTVIEW (NPPMSG + 88) 406 | // INT NPPM_GETCURRENTVIEW(0, 0) 407 | // Return: current edit view of Notepad++. Only 2 possible values: 0 = Main, 1 = Secondary 408 | 409 | #define NPPM_DOCLISTDISABLEEXTCOLUMN (NPPMSG + 89) 410 | // VOID NPPM_DOCLISTDISABLEEXTCOLUMN(0, BOOL disableOrNot) 411 | // Disable or enable extension column of Document List 412 | 413 | #define NPPM_DOCLISTDISABLEPATHCOLUMN (NPPMSG + 102) 414 | // VOID NPPM_DOCLISTDISABLEPATHCOLUMN(0, BOOL disableOrNot) 415 | // Disable or enable path column of Document List 416 | 417 | #define NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR (NPPMSG + 90) 418 | // INT NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR(0, 0) 419 | // Return: current editor default foreground color. You should convert the returned value in COLORREF 420 | 421 | #define NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR (NPPMSG + 91) 422 | // INT NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR(0, 0) 423 | // Return: current editor default background color. You should convert the returned value in COLORREF 424 | 425 | #define NPPM_SETSMOOTHFONT (NPPMSG + 92) 426 | // VOID NPPM_SETSMOOTHFONT(0, BOOL setSmoothFontOrNot) 427 | 428 | #define NPPM_SETEDITORBORDEREDGE (NPPMSG + 93) 429 | // VOID NPPM_SETEDITORBORDEREDGE(0, BOOL withEditorBorderEdgeOrNot) 430 | 431 | #define NPPM_SAVEFILE (NPPMSG + 94) 432 | // VOID NPPM_SAVEFILE(0, const TCHAR *fileNameToSave) 433 | 434 | #define NPPM_DISABLEAUTOUPDATE (NPPMSG + 95) // 2119 in decimal 435 | // VOID NPPM_DISABLEAUTOUPDATE(0, 0) 436 | 437 | #define NPPM_REMOVESHORTCUTBYCMDID (NPPMSG + 96) // 2120 in decimal 438 | // BOOL NPPM_REMOVESHORTCUTASSIGNMENT(int cmdID) 439 | // removes the assigned shortcut mapped to cmdID 440 | // returned value : TRUE if function call is successful, otherwise FALSE 441 | 442 | #define NPPM_GETPLUGINHOMEPATH (NPPMSG + 97) 443 | // INT NPPM_GETPLUGINHOMEPATH(size_t strLen, TCHAR *pluginRootPath) 444 | // Get plugin home root path. It's useful if plugins want to get its own path 445 | // by appending which is the name of plugin without extension part. 446 | // Returns the number of TCHAR copied/to copy. 447 | // Users should call it with pluginRootPath be NULL to get the required number of TCHAR (not including the terminating nul character), 448 | // allocate pluginRootPath buffer with the return value + 1, then call it again to get the path. 449 | 450 | #define NPPM_GETSETTINGSONCLOUDPATH (NPPMSG + 98) 451 | // INT NPPM_GETSETTINGSCLOUDPATH(size_t strLen, TCHAR *settingsOnCloudPath) 452 | // Get settings on cloud path. It's useful if plugins want to store its settings on Cloud, if this path is set. 453 | // Returns the number of TCHAR copied/to copy. If the return value is 0, then this path is not set, or the "strLen" is not enough to copy the path. 454 | // Users should call it with settingsCloudPath be NULL to get the required number of TCHAR (not including the terminating nul character), 455 | // allocate settingsCloudPath buffer with the return value + 1, then call it again to get the path. 456 | 457 | #define NPPM_SETLINENUMBERWIDTHMODE (NPPMSG + 99) 458 | #define LINENUMWIDTH_DYNAMIC 0 459 | #define LINENUMWIDTH_CONSTANT 1 460 | // BOOL NPPM_SETLINENUMBERWIDTHMODE(0, INT widthMode) 461 | // Set line number margin width in dynamic width mode (LINENUMWIDTH_DYNAMIC) or constant width mode (LINENUMWIDTH_CONSTANT) 462 | // It may help some plugins to disable non-dynamic line number margins width to have a smoothly visual effect while vertical scrolling the content in Notepad++ 463 | // If calling is successful return TRUE, otherwise return FALSE. 464 | 465 | #define NPPM_GETLINENUMBERWIDTHMODE (NPPMSG + 100) 466 | // INT NPPM_GETLINENUMBERWIDTHMODE(0, 0) 467 | // Get line number margin width in dynamic width mode (LINENUMWIDTH_DYNAMIC) or constant width mode (LINENUMWIDTH_CONSTANT) 468 | 469 | #define NPPM_ADDTOOLBARICON_FORDARKMODE (NPPMSG + 101) 470 | // VOID NPPM_ADDTOOLBARICON_FORDARKMODE(UINT funcItem[X]._cmdID, toolbarIconsWithDarkMode iconHandles) 471 | // Use NPPM_ADDTOOLBARICON_FORDARKMODE instead obsolete NPPM_ADDTOOLBARICON which doesn't support the dark mode 472 | // 2 formats / 3 icons are needed: 1 * BMP + 2 * ICO 473 | // All 3 handles below should be set so the icon will be displayed correctly if toolbar icon sets are changed by users, also in dark mode 474 | struct toolbarIconsWithDarkMode { 475 | HBITMAP hToolbarBmp; 476 | HICON hToolbarIcon; 477 | HICON hToolbarIconDarkMode; 478 | }; 479 | 480 | #define NPPM_GETEXTERNALLEXERAUTOINDENTMODE (NPPMSG + 103) 481 | // BOOL NPPM_GETEXTERNALLEXERAUTOINDENTMODE(const TCHAR *languageName, ExternalLexerAutoIndentMode &autoIndentMode) 482 | // Get ExternalLexerAutoIndentMode for an installed external programming language. 483 | // - Standard means Notepad++ will keep the same TAB indentation between lines; 484 | // - C_Like means Notepad++ will perform a C-Language style indentation for the selected external language; 485 | // - Custom means a Plugin will be controlling auto-indentation for the current language. 486 | // returned values: TRUE for successful searches, otherwise FALSE. 487 | 488 | #define NPPM_SETEXTERNALLEXERAUTOINDENTMODE (NPPMSG + 104) 489 | // BOOL NPPM_SETEXTERNALLEXERAUTOINDENTMODE(const TCHAR *languageName, ExternalLexerAutoIndentMode autoIndentMode) 490 | // Set ExternalLexerAutoIndentMode for an installed external programming language. 491 | // - Standard means Notepad++ will keep the same TAB indentation between lines; 492 | // - C_Like means Notepad++ will perform a C-Language style indentation for the selected external language; 493 | // - Custom means a Plugin will be controlling auto-indentation for the current language. 494 | // returned value: TRUE if function call was successful, otherwise FALSE. 495 | 496 | #define NPPM_ISAUTOINDENTON (NPPMSG + 105) 497 | // BOOL NPPM_ISAUTOINDENTON(0, 0) 498 | // Returns the current Use Auto-Indentation setting in Notepad++ Preferences. 499 | 500 | #define NPPM_GETCURRENTMACROSTATUS (NPPMSG + 106) 501 | // MacroStatus NPPM_GETCURRENTMACROSTATUS(0, 0) 502 | // Gets current enum class MacroStatus { Idle - means macro is not in use and it's empty, RecordInProgress, RecordingStopped, PlayingBack } 503 | 504 | #define NPPM_ISDARKMODEENABLED (NPPMSG + 107) 505 | // bool NPPM_ISDARKMODEENABLED(0, 0) 506 | // Returns true when Notepad++ Dark Mode is enable, false when it is not. 507 | 508 | #define NPPM_GETDARKMODECOLORS (NPPMSG + 108) 509 | // bool NPPM_GETDARKMODECOLORS (size_t cbSize, NppDarkMode::Colors* returnColors) 510 | // - cbSize must be filled with sizeof(NppDarkMode::Colors). 511 | // - returnColors must be a pre-allocated NppDarkMode::Colors struct. 512 | // Returns true when successful, false otherwise. 513 | // You need to uncomment the following code to use NppDarkMode::Colors structure: 514 | // 515 | // namespace NppDarkMode 516 | // { 517 | // struct Colors 518 | // { 519 | // COLORREF background = 0; 520 | // COLORREF softerBackground = 0; 521 | // COLORREF hotBackground = 0; 522 | // COLORREF pureBackground = 0; 523 | // COLORREF errorBackground = 0; 524 | // COLORREF text = 0; 525 | // COLORREF darkerText = 0; 526 | // COLORREF disabledText = 0; 527 | // COLORREF linkText = 0; 528 | // COLORREF edge = 0; 529 | // COLORREF hotEdge = 0; 530 | // COLORREF disabledEdge = 0; 531 | // }; 532 | // } 533 | // 534 | // Note: in the case of calling failure ("false" is returned), you may need to change NppDarkMode::Colors structure to: 535 | // https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/NppDarkMode.h#L32 536 | 537 | #define NPPM_GETCURRENTCMDLINE (NPPMSG + 109) 538 | // INT NPPM_GETCURRENTCMDLINE(size_t strLen, TCHAR *commandLineStr) 539 | // Get the Current Command Line string. 540 | // Returns the number of TCHAR copied/to copy. 541 | // Users should call it with commandLineStr as NULL to get the required number of TCHAR (not including the terminating nul character), 542 | // allocate commandLineStr buffer with the return value + 1, then call it again to get the current command line string. 543 | 544 | #define NPPM_CREATELEXER (NPPMSG + 110) 545 | // void* NPPM_CREATELEXER(0, const TCHAR *lexer_name) 546 | // Returns the ILexer pointer created by Lexilla 547 | 548 | #define NPPM_GETBOOKMARKID (NPPMSG + 111) 549 | // void* NPPM_GETBOOKMARKID(0, 0) 550 | // Returns the bookmark ID 551 | 552 | #define NPPM_DARKMODESUBCLASSANDTHEME (NPPMSG + 112) 553 | // ULONG NPPM_DARKMODESUBCLASSANDTHEME(ULONG dmFlags, HWND hwnd) 554 | // Add support for generic dark mode. 555 | // 556 | // Docking panels don't need to call NPPM_DARKMODESUBCLASSANDTHEME for main hwnd. 557 | // Subclassing is applied automatically unless DWS_USEOWNDARKMODE flag is used. 558 | // 559 | // Might not work properly in C# plugins. 560 | // 561 | // Returns succesful combinations of flags. 562 | // 563 | 564 | namespace NppDarkMode 565 | { 566 | // Standard flags for main parent after its children are initialized. 567 | constexpr ULONG dmfInit = 0x0000000BUL; 568 | 569 | // Standard flags for main parent usually used in NPPN_DARKMODECHANGED. 570 | constexpr ULONG dmfHandleChange = 0x0000000CUL; 571 | }; 572 | 573 | // Examples: 574 | // 575 | // - after controls initializations in WM_INITDIALOG, in WM_CREATE or after CreateWindow: 576 | // 577 | //auto success = static_cast(::SendMessage(nppData._nppHandle, NPPM_DARKMODESUBCLASSANDTHEME, static_cast(NppDarkMode::dmfInit), reinterpret_cast(mainHwnd))); 578 | // 579 | // - handling dark mode change: 580 | // 581 | //extern "C" __declspec(dllexport) void beNotified(SCNotification * notifyCode) 582 | //{ 583 | // switch (notifyCode->nmhdr.code) 584 | // { 585 | // case NPPN_DARKMODECHANGED: 586 | // { 587 | // ::SendMessage(nppData._nppHandle, NPPM_DARKMODESUBCLASSANDTHEME, static_cast(dmfHandleChange), reinterpret_cast(mainHwnd)); 588 | // ::SetWindowPos(mainHwnd, nullptr, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED); // to redraw titlebar and window 589 | // break; 590 | // } 591 | // } 592 | //} 593 | 594 | #define NPPM_ALLOCATEINDICATOR (NPPMSG + 113) 595 | // BOOL NPPM_ALLOCATEINDICATOR(int numberRequested, int* startNumber) 596 | // sets startNumber to the initial indicator ID if successful 597 | // Allocates an indicator number to a plugin: if a plugin needs to add an indicator, 598 | // it has to use this message to get the indicator number, in order to prevent a conflict with the other plugins. 599 | // Returns: TRUE if successful, FALSE otherwise. 600 | 601 | // For RUNCOMMAND_USER 602 | #define VAR_NOT_RECOGNIZED 0 603 | #define FULL_CURRENT_PATH 1 604 | #define CURRENT_DIRECTORY 2 605 | #define FILE_NAME 3 606 | #define NAME_PART 4 607 | #define EXT_PART 5 608 | #define CURRENT_WORD 6 609 | #define NPP_DIRECTORY 7 610 | #define CURRENT_LINE 8 611 | #define CURRENT_COLUMN 9 612 | #define NPP_FULL_FILE_PATH 10 613 | #define GETFILENAMEATCURSOR 11 614 | #define CURRENT_LINESTR 12 615 | 616 | #define RUNCOMMAND_USER (WM_USER + 3000) 617 | 618 | #define NPPM_GETFULLCURRENTPATH (RUNCOMMAND_USER + FULL_CURRENT_PATH) 619 | #define NPPM_GETCURRENTDIRECTORY (RUNCOMMAND_USER + CURRENT_DIRECTORY) 620 | #define NPPM_GETFILENAME (RUNCOMMAND_USER + FILE_NAME) 621 | #define NPPM_GETNAMEPART (RUNCOMMAND_USER + NAME_PART) 622 | #define NPPM_GETEXTPART (RUNCOMMAND_USER + EXT_PART) 623 | #define NPPM_GETCURRENTWORD (RUNCOMMAND_USER + CURRENT_WORD) 624 | #define NPPM_GETNPPDIRECTORY (RUNCOMMAND_USER + NPP_DIRECTORY) 625 | #define NPPM_GETFILENAMEATCURSOR (RUNCOMMAND_USER + GETFILENAMEATCURSOR) 626 | #define NPPM_GETCURRENTLINESTR (RUNCOMMAND_USER + CURRENT_LINESTR) 627 | // BOOL NPPM_GETXXXXXXXXXXXXXXXX(size_t strLen, TCHAR *str) 628 | // where str is the allocated TCHAR array, 629 | // strLen is the allocated array size 630 | // The return value is TRUE when get generic_string operation success 631 | // Otherwise (allocated array size is too small) FALSE 632 | 633 | #define NPPM_GETCURRENTLINE (RUNCOMMAND_USER + CURRENT_LINE) 634 | // INT NPPM_GETCURRENTLINE(0, 0) 635 | // return the caret current position line 636 | #define NPPM_GETCURRENTCOLUMN (RUNCOMMAND_USER + CURRENT_COLUMN) 637 | // INT NPPM_GETCURRENTCOLUMN(0, 0) 638 | // return the caret current position column 639 | 640 | #define NPPM_GETNPPFULLFILEPATH (RUNCOMMAND_USER + NPP_FULL_FILE_PATH) 641 | 642 | 643 | // Notification code 644 | #define NPPN_FIRST 1000 645 | #define NPPN_READY (NPPN_FIRST + 1) // To notify plugins that all the procedures of launchment of notepad++ are done. 646 | //scnNotification->nmhdr.code = NPPN_READY; 647 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 648 | //scnNotification->nmhdr.idFrom = 0; 649 | 650 | #define NPPN_TBMODIFICATION (NPPN_FIRST + 2) // To notify plugins that toolbar icons can be registered 651 | //scnNotification->nmhdr.code = NPPN_TBMODIFICATION; 652 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 653 | //scnNotification->nmhdr.idFrom = 0; 654 | 655 | #define NPPN_FILEBEFORECLOSE (NPPN_FIRST + 3) // To notify plugins that the current file is about to be closed 656 | //scnNotification->nmhdr.code = NPPN_FILEBEFORECLOSE; 657 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 658 | //scnNotification->nmhdr.idFrom = BufferID; 659 | 660 | #define NPPN_FILEOPENED (NPPN_FIRST + 4) // To notify plugins that the current file is just opened 661 | //scnNotification->nmhdr.code = NPPN_FILEOPENED; 662 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 663 | //scnNotification->nmhdr.idFrom = BufferID; 664 | 665 | #define NPPN_FILECLOSED (NPPN_FIRST + 5) // To notify plugins that the current file is just closed 666 | //scnNotification->nmhdr.code = NPPN_FILECLOSED; 667 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 668 | //scnNotification->nmhdr.idFrom = BufferID; 669 | 670 | #define NPPN_FILEBEFOREOPEN (NPPN_FIRST + 6) // To notify plugins that the current file is about to be opened 671 | //scnNotification->nmhdr.code = NPPN_FILEBEFOREOPEN; 672 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 673 | //scnNotification->nmhdr.idFrom = BufferID; 674 | 675 | #define NPPN_FILEBEFORESAVE (NPPN_FIRST + 7) // To notify plugins that the current file is about to be saved 676 | //scnNotification->nmhdr.code = NPPN_FILEBEFOREOPEN; 677 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 678 | //scnNotification->nmhdr.idFrom = BufferID; 679 | 680 | #define NPPN_FILESAVED (NPPN_FIRST + 8) // To notify plugins that the current file is just saved 681 | //scnNotification->nmhdr.code = NPPN_FILESAVED; 682 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 683 | //scnNotification->nmhdr.idFrom = BufferID; 684 | 685 | #define NPPN_SHUTDOWN (NPPN_FIRST + 9) // To notify plugins that Notepad++ is about to be shutdowned. 686 | //scnNotification->nmhdr.code = NPPN_SHUTDOWN; 687 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 688 | //scnNotification->nmhdr.idFrom = 0; 689 | 690 | #define NPPN_BUFFERACTIVATED (NPPN_FIRST + 10) // To notify plugins that a buffer was activated (put to foreground). 691 | //scnNotification->nmhdr.code = NPPN_BUFFERACTIVATED; 692 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 693 | //scnNotification->nmhdr.idFrom = activatedBufferID; 694 | 695 | #define NPPN_LANGCHANGED (NPPN_FIRST + 11) // To notify plugins that the language in the current doc is just changed. 696 | //scnNotification->nmhdr.code = NPPN_LANGCHANGED; 697 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 698 | //scnNotification->nmhdr.idFrom = currentBufferID; 699 | 700 | #define NPPN_WORDSTYLESUPDATED (NPPN_FIRST + 12) // To notify plugins that user initiated a WordStyleDlg change. 701 | //scnNotification->nmhdr.code = NPPN_WORDSTYLESUPDATED; 702 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 703 | //scnNotification->nmhdr.idFrom = currentBufferID; 704 | 705 | #define NPPN_SHORTCUTREMAPPED (NPPN_FIRST + 13) // To notify plugins that plugin command shortcut is remapped. 706 | //scnNotification->nmhdr.code = NPPN_SHORTCUTSREMAPPED; 707 | //scnNotification->nmhdr.hwndFrom = ShortcutKeyStructurePointer; 708 | //scnNotification->nmhdr.idFrom = cmdID; 709 | //where ShortcutKeyStructurePointer is pointer of struct ShortcutKey: 710 | //struct ShortcutKey { 711 | // bool _isCtrl; 712 | // bool _isAlt; 713 | // bool _isShift; 714 | // UCHAR _key; 715 | //}; 716 | 717 | #define NPPN_FILEBEFORELOAD (NPPN_FIRST + 14) // To notify plugins that the current file is about to be loaded 718 | //scnNotification->nmhdr.code = NPPN_FILEBEFOREOPEN; 719 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 720 | //scnNotification->nmhdr.idFrom = NULL; 721 | 722 | #define NPPN_FILELOADFAILED (NPPN_FIRST + 15) // To notify plugins that file open operation failed 723 | //scnNotification->nmhdr.code = NPPN_FILEOPENFAILED; 724 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 725 | //scnNotification->nmhdr.idFrom = BufferID; 726 | 727 | #define NPPN_READONLYCHANGED (NPPN_FIRST + 16) // To notify plugins that current document change the readonly status, 728 | //scnNotification->nmhdr.code = NPPN_READONLYCHANGED; 729 | //scnNotification->nmhdr.hwndFrom = bufferID; 730 | //scnNotification->nmhdr.idFrom = docStatus; 731 | // where bufferID is BufferID 732 | // docStatus can be combined by DOCSTATUS_READONLY and DOCSTATUS_BUFFERDIRTY 733 | 734 | #define DOCSTATUS_READONLY 1 735 | #define DOCSTATUS_BUFFERDIRTY 2 736 | 737 | #define NPPN_DOCORDERCHANGED (NPPN_FIRST + 17) // To notify plugins that document order is changed 738 | //scnNotification->nmhdr.code = NPPN_DOCORDERCHANGED; 739 | //scnNotification->nmhdr.hwndFrom = newIndex; 740 | //scnNotification->nmhdr.idFrom = BufferID; 741 | 742 | #define NPPN_SNAPSHOTDIRTYFILELOADED (NPPN_FIRST + 18) // To notify plugins that a snapshot dirty file is loaded on startup 743 | //scnNotification->nmhdr.code = NPPN_SNAPSHOTDIRTYFILELOADED; 744 | //scnNotification->nmhdr.hwndFrom = NULL; 745 | //scnNotification->nmhdr.idFrom = BufferID; 746 | 747 | #define NPPN_BEFORESHUTDOWN (NPPN_FIRST + 19) // To notify plugins that Npp shutdown has been triggered, files have not been closed yet 748 | //scnNotification->nmhdr.code = NPPN_BEFORESHUTDOWN; 749 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 750 | //scnNotification->nmhdr.idFrom = 0; 751 | 752 | #define NPPN_CANCELSHUTDOWN (NPPN_FIRST + 20) // To notify plugins that Npp shutdown has been cancelled 753 | //scnNotification->nmhdr.code = NPPN_CANCELSHUTDOWN; 754 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 755 | //scnNotification->nmhdr.idFrom = 0; 756 | 757 | #define NPPN_FILEBEFORERENAME (NPPN_FIRST + 21) // To notify plugins that file is to be renamed 758 | //scnNotification->nmhdr.code = NPPN_FILEBEFORERENAME; 759 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 760 | //scnNotification->nmhdr.idFrom = BufferID; 761 | 762 | #define NPPN_FILERENAMECANCEL (NPPN_FIRST + 22) // To notify plugins that file rename has been cancelled 763 | //scnNotification->nmhdr.code = NPPN_FILERENAMECANCEL; 764 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 765 | //scnNotification->nmhdr.idFrom = BufferID; 766 | 767 | #define NPPN_FILERENAMED (NPPN_FIRST + 23) // To notify plugins that file has been renamed 768 | //scnNotification->nmhdr.code = NPPN_FILERENAMED; 769 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 770 | //scnNotification->nmhdr.idFrom = BufferID; 771 | 772 | #define NPPN_FILEBEFOREDELETE (NPPN_FIRST + 24) // To notify plugins that file is to be deleted 773 | //scnNotification->nmhdr.code = NPPN_FILEBEFOREDELETE; 774 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 775 | //scnNotification->nmhdr.idFrom = BufferID; 776 | 777 | #define NPPN_FILEDELETEFAILED (NPPN_FIRST + 25) // To notify plugins that file deletion has failed 778 | //scnNotification->nmhdr.code = NPPN_FILEDELETEFAILED; 779 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 780 | //scnNotification->nmhdr.idFrom = BufferID; 781 | 782 | #define NPPN_FILEDELETED (NPPN_FIRST + 26) // To notify plugins that file has been deleted 783 | //scnNotification->nmhdr.code = NPPN_FILEDELETED; 784 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 785 | //scnNotification->nmhdr.idFrom = BufferID; 786 | 787 | #define NPPN_DARKMODECHANGED (NPPN_FIRST + 27) // To notify plugins that Dark Mode was enabled/disabled 788 | //scnNotification->nmhdr.code = NPPN_DARKMODECHANGED; 789 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 790 | //scnNotification->nmhdr.idFrom = 0; 791 | 792 | #define NPPN_CMDLINEPLUGINMSG (NPPN_FIRST + 28) // To notify plugins that the new argument for plugins (via '-pluginMessage="YOUR_PLUGIN_ARGUMENT"' in command line) is available 793 | //scnNotification->nmhdr.code = NPPN_CMDLINEPLUGINMSG; 794 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 795 | //scnNotification->nmhdr.idFrom = pluginMessage; //where pluginMessage is pointer of type wchar_t 796 | 797 | #define NPPN_EXTERNALLEXERBUFFER (NPPN_FIRST + 29) // To notify lexer plugins that the buffer (in idFrom) is just applied to a external lexer 798 | //scnNotification->nmhdr.code = NPPN_EXTERNALLEXERBUFFER; 799 | //scnNotification->nmhdr.hwndFrom = hwndNpp; 800 | //scnNotification->nmhdr.idFrom = BufferID; //where pluginMessage is pointer of type wchar_t 801 | -------------------------------------------------------------------------------- /PluginInterface.h: -------------------------------------------------------------------------------- 1 | // This file is part of Notepad++ project 2 | // Copyright (C)2021 Don HO 3 | 4 | // This program is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // at your option any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program. If not, see . 16 | 17 | 18 | #pragma once 19 | 20 | #include "Scintilla.h" 21 | #include "Notepad_plus_msgs.h" 22 | 23 | const int nbChar = 64; 24 | 25 | typedef const TCHAR * (__cdecl * PFUNCGETNAME)(); 26 | 27 | struct NppData 28 | { 29 | HWND _nppHandle = nullptr; 30 | HWND _scintillaMainHandle = nullptr; 31 | HWND _scintillaSecondHandle = nullptr; 32 | }; 33 | 34 | typedef void (__cdecl * PFUNCSETINFO)(NppData); 35 | typedef void (__cdecl * PFUNCPLUGINCMD)(); 36 | typedef void (__cdecl * PBENOTIFIED)(SCNotification *); 37 | typedef LRESULT (__cdecl * PMESSAGEPROC)(UINT Message, WPARAM wParam, LPARAM lParam); 38 | 39 | 40 | struct ShortcutKey 41 | { 42 | bool _isCtrl = false; 43 | bool _isAlt = false; 44 | bool _isShift = false; 45 | UCHAR _key = 0; 46 | }; 47 | 48 | struct FuncItem 49 | { 50 | TCHAR _itemName[nbChar] = { '\0' }; 51 | PFUNCPLUGINCMD _pFunc = nullptr; 52 | int _cmdID = 0; 53 | bool _init2Check = false; 54 | ShortcutKey *_pShKey = nullptr; 55 | }; 56 | 57 | typedef FuncItem * (__cdecl * PFUNCGETFUNCSARRAY)(int *); 58 | 59 | // You should implement (or define an empty function body) those functions which are called by Notepad++ plugin manager 60 | extern "C" __declspec(dllexport) void setInfo(NppData); 61 | extern "C" __declspec(dllexport) const TCHAR * getName(); 62 | extern "C" __declspec(dllexport) FuncItem * getFuncsArray(int *); 63 | extern "C" __declspec(dllexport) void beNotified(SCNotification *); 64 | extern "C" __declspec(dllexport) LRESULT messageProc(UINT Message, WPARAM wParam, LPARAM lParam); 65 | 66 | // This API return always true now, since Notepad++ isn't compiled in ANSI mode anymore 67 | extern "C" __declspec(dllexport) BOOL isUnicode(); 68 | 69 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SpeechPlugin 2 | Unofficial version of https://sourceforge.net/projects/npp-plugins/files/SpeechPlugin/ 3 | 4 | Description: 5 | No kidding, Notepad++ speaks now. With SpeechPlugin, you can make Notepad++ dictate your text or source code. Of course, speakers are necessary. 6 | 7 | Possible Speakers are SAPI voices installed for windows, see e.g. 8 | 9 | https://support.microsoft.com/en-us/topic/how-to-download-text-to-speech-languages-for-windows-10-d5a6b612-b3ae-423f-afa5-4f6caf1ec5d3 10 | 11 | -------------------------------------------------------------------------------- /Sci_Position.h: -------------------------------------------------------------------------------- 1 | // Scintilla source code edit control 2 | /** @file Sci_Position.h 3 | ** Define the Sci_Position type used in Scintilla's external interfaces. 4 | ** These need to be available to clients written in C so are not in a C++ namespace. 5 | **/ 6 | // Copyright 2015 by Neil Hodgson 7 | // The License.txt file describes the conditions under which this software may be distributed. 8 | 9 | #ifndef SCI_POSITION_H 10 | #define SCI_POSITION_H 11 | 12 | #include 13 | 14 | // Basic signed type used throughout interface 15 | typedef ptrdiff_t Sci_Position; 16 | 17 | // Unsigned variant used for ILexer::Lex and ILexer::Fold 18 | typedef size_t Sci_PositionU; 19 | 20 | // For Sci_CharacterRange which is defined as long to be compatible with Win32 CHARRANGE 21 | typedef intptr_t Sci_PositionCR; 22 | 23 | #ifdef _WIN32 24 | #define SCI_METHOD __stdcall 25 | #else 26 | #define SCI_METHOD 27 | #endif 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /Scintilla.h: -------------------------------------------------------------------------------- 1 | /* Scintilla source code edit control */ 2 | /** @file Scintilla.h 3 | ** Interface to the edit control. 4 | **/ 5 | /* Copyright 1998-2003 by Neil Hodgson 6 | * The License.txt file describes the conditions under which this software may be distributed. */ 7 | 8 | /* Most of this file is automatically generated from the Scintilla.iface interface definition 9 | * file which contains any comments about the definitions. HFacer.py does the generation. */ 10 | 11 | #ifndef SCINTILLA_H 12 | #define SCINTILLA_H 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | #if defined(_WIN32) 19 | /* Return false on failure: */ 20 | int Scintilla_RegisterClasses(void *hInstance); 21 | int Scintilla_ReleaseResources(void); 22 | #endif 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | 28 | // Include header that defines basic numeric types. 29 | #include 30 | 31 | // Define uptr_t, an unsigned integer type large enough to hold a pointer. 32 | typedef uintptr_t uptr_t; 33 | // Define sptr_t, a signed integer large enough to hold a pointer. 34 | typedef intptr_t sptr_t; 35 | 36 | #include "Sci_Position.h" 37 | 38 | typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam); 39 | typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam, int *pStatus); 40 | 41 | #ifndef SCI_DISABLE_AUTOGENERATED 42 | 43 | /* ++Autogenerated -- start of section automatically generated from Scintilla.iface */ 44 | #define INVALID_POSITION -1 45 | #define SCI_START 2000 46 | #define SCI_OPTIONAL_START 3000 47 | #define SCI_LEXER_START 4000 48 | #define SCI_ADDTEXT 2001 49 | #define SCI_ADDSTYLEDTEXT 2002 50 | #define SCI_INSERTTEXT 2003 51 | #define SCI_CHANGEINSERTION 2672 52 | #define SCI_CLEARALL 2004 53 | #define SCI_DELETERANGE 2645 54 | #define SCI_CLEARDOCUMENTSTYLE 2005 55 | #define SCI_GETLENGTH 2006 56 | #define SCI_GETCHARAT 2007 57 | #define SCI_GETCURRENTPOS 2008 58 | #define SCI_GETANCHOR 2009 59 | #define SCI_GETSTYLEAT 2010 60 | #define SCI_GETSTYLEINDEXAT 2038 61 | #define SCI_REDO 2011 62 | #define SCI_SETUNDOCOLLECTION 2012 63 | #define SCI_SELECTALL 2013 64 | #define SCI_SETSAVEPOINT 2014 65 | #define SCI_GETSTYLEDTEXT 2015 66 | #define SCI_GETSTYLEDTEXTFULL 2778 67 | #define SCI_CANREDO 2016 68 | #define SCI_MARKERLINEFROMHANDLE 2017 69 | #define SCI_MARKERDELETEHANDLE 2018 70 | #define SCI_MARKERHANDLEFROMLINE 2732 71 | #define SCI_MARKERNUMBERFROMLINE 2733 72 | #define SCI_GETUNDOCOLLECTION 2019 73 | #define SCWS_INVISIBLE 0 74 | #define SCWS_VISIBLEALWAYS 1 75 | #define SCWS_VISIBLEAFTERINDENT 2 76 | #define SCWS_VISIBLEONLYININDENT 3 77 | #define SCI_GETVIEWWS 2020 78 | #define SCI_SETVIEWWS 2021 79 | #define SCTD_LONGARROW 0 80 | #define SCTD_STRIKEOUT 1 81 | #define SCI_GETTABDRAWMODE 2698 82 | #define SCI_SETTABDRAWMODE 2699 83 | #define SCI_POSITIONFROMPOINT 2022 84 | #define SCI_POSITIONFROMPOINTCLOSE 2023 85 | #define SCI_GOTOLINE 2024 86 | #define SCI_GOTOPOS 2025 87 | #define SCI_SETANCHOR 2026 88 | #define SCI_GETCURLINE 2027 89 | #define SCI_GETENDSTYLED 2028 90 | #define SC_EOL_CRLF 0 91 | #define SC_EOL_CR 1 92 | #define SC_EOL_LF 2 93 | #define SCI_CONVERTEOLS 2029 94 | #define SCI_GETEOLMODE 2030 95 | #define SCI_SETEOLMODE 2031 96 | #define SCI_STARTSTYLING 2032 97 | #define SCI_SETSTYLING 2033 98 | #define SCI_GETBUFFEREDDRAW 2034 99 | #define SCI_SETBUFFEREDDRAW 2035 100 | #define SCI_SETTABWIDTH 2036 101 | #define SCI_GETTABWIDTH 2121 102 | #define SCI_SETTABMINIMUMWIDTH 2724 103 | #define SCI_GETTABMINIMUMWIDTH 2725 104 | #define SCI_CLEARTABSTOPS 2675 105 | #define SCI_ADDTABSTOP 2676 106 | #define SCI_GETNEXTTABSTOP 2677 107 | #define SC_CP_UTF8 65001 108 | #define SCI_SETCODEPAGE 2037 109 | #define SCI_SETFONTLOCALE 2760 110 | #define SCI_GETFONTLOCALE 2761 111 | #define SC_IME_WINDOWED 0 112 | #define SC_IME_INLINE 1 113 | #define SCI_GETIMEINTERACTION 2678 114 | #define SCI_SETIMEINTERACTION 2679 115 | #define SC_ALPHA_TRANSPARENT 0 116 | #define SC_ALPHA_OPAQUE 255 117 | #define SC_ALPHA_NOALPHA 256 118 | #define SC_CURSORNORMAL -1 119 | #define SC_CURSORARROW 2 120 | #define SC_CURSORWAIT 4 121 | #define SC_CURSORREVERSEARROW 7 122 | #define MARKER_MAX 31 123 | #define SC_MARK_CIRCLE 0 124 | #define SC_MARK_ROUNDRECT 1 125 | #define SC_MARK_ARROW 2 126 | #define SC_MARK_SMALLRECT 3 127 | #define SC_MARK_SHORTARROW 4 128 | #define SC_MARK_EMPTY 5 129 | #define SC_MARK_ARROWDOWN 6 130 | #define SC_MARK_MINUS 7 131 | #define SC_MARK_PLUS 8 132 | #define SC_MARK_VLINE 9 133 | #define SC_MARK_LCORNER 10 134 | #define SC_MARK_TCORNER 11 135 | #define SC_MARK_BOXPLUS 12 136 | #define SC_MARK_BOXPLUSCONNECTED 13 137 | #define SC_MARK_BOXMINUS 14 138 | #define SC_MARK_BOXMINUSCONNECTED 15 139 | #define SC_MARK_LCORNERCURVE 16 140 | #define SC_MARK_TCORNERCURVE 17 141 | #define SC_MARK_CIRCLEPLUS 18 142 | #define SC_MARK_CIRCLEPLUSCONNECTED 19 143 | #define SC_MARK_CIRCLEMINUS 20 144 | #define SC_MARK_CIRCLEMINUSCONNECTED 21 145 | #define SC_MARK_BACKGROUND 22 146 | #define SC_MARK_DOTDOTDOT 23 147 | #define SC_MARK_ARROWS 24 148 | #define SC_MARK_PIXMAP 25 149 | #define SC_MARK_FULLRECT 26 150 | #define SC_MARK_LEFTRECT 27 151 | #define SC_MARK_AVAILABLE 28 152 | #define SC_MARK_UNDERLINE 29 153 | #define SC_MARK_RGBAIMAGE 30 154 | #define SC_MARK_BOOKMARK 31 155 | #define SC_MARK_VERTICALBOOKMARK 32 156 | #define SC_MARK_BAR 33 157 | #define SC_MARK_CHARACTER 10000 158 | #define SC_MARKNUM_HISTORY_REVERTED_TO_ORIGIN 21 159 | #define SC_MARKNUM_HISTORY_SAVED 22 160 | #define SC_MARKNUM_HISTORY_MODIFIED 23 161 | #define SC_MARKNUM_HISTORY_REVERTED_TO_MODIFIED 24 162 | #define SC_MARKNUM_FOLDEREND 25 163 | #define SC_MARKNUM_FOLDEROPENMID 26 164 | #define SC_MARKNUM_FOLDERMIDTAIL 27 165 | #define SC_MARKNUM_FOLDERTAIL 28 166 | #define SC_MARKNUM_FOLDERSUB 29 167 | #define SC_MARKNUM_FOLDER 30 168 | #define SC_MARKNUM_FOLDEROPEN 31 169 | #define SC_MASK_FOLDERS 0xFE000000 170 | #define SCI_MARKERDEFINE 2040 171 | #define SCI_MARKERSETFORE 2041 172 | #define SCI_MARKERSETBACK 2042 173 | #define SCI_MARKERSETBACKSELECTED 2292 174 | #define SCI_MARKERSETFORETRANSLUCENT 2294 175 | #define SCI_MARKERSETBACKTRANSLUCENT 2295 176 | #define SCI_MARKERSETBACKSELECTEDTRANSLUCENT 2296 177 | #define SCI_MARKERSETSTROKEWIDTH 2297 178 | #define SCI_MARKERENABLEHIGHLIGHT 2293 179 | #define SCI_MARKERADD 2043 180 | #define SCI_MARKERDELETE 2044 181 | #define SCI_MARKERDELETEALL 2045 182 | #define SCI_MARKERGET 2046 183 | #define SCI_MARKERNEXT 2047 184 | #define SCI_MARKERPREVIOUS 2048 185 | #define SCI_MARKERDEFINEPIXMAP 2049 186 | #define SCI_MARKERADDSET 2466 187 | #define SCI_MARKERSETALPHA 2476 188 | #define SCI_MARKERGETLAYER 2734 189 | #define SCI_MARKERSETLAYER 2735 190 | #define SC_MAX_MARGIN 4 191 | #define SC_MARGIN_SYMBOL 0 192 | #define SC_MARGIN_NUMBER 1 193 | #define SC_MARGIN_BACK 2 194 | #define SC_MARGIN_FORE 3 195 | #define SC_MARGIN_TEXT 4 196 | #define SC_MARGIN_RTEXT 5 197 | #define SC_MARGIN_COLOUR 6 198 | #define SCI_SETMARGINTYPEN 2240 199 | #define SCI_GETMARGINTYPEN 2241 200 | #define SCI_SETMARGINWIDTHN 2242 201 | #define SCI_GETMARGINWIDTHN 2243 202 | #define SCI_SETMARGINMASKN 2244 203 | #define SCI_GETMARGINMASKN 2245 204 | #define SCI_SETMARGINSENSITIVEN 2246 205 | #define SCI_GETMARGINSENSITIVEN 2247 206 | #define SCI_SETMARGINCURSORN 2248 207 | #define SCI_GETMARGINCURSORN 2249 208 | #define SCI_SETMARGINBACKN 2250 209 | #define SCI_GETMARGINBACKN 2251 210 | #define SCI_SETMARGINS 2252 211 | #define SCI_GETMARGINS 2253 212 | #define STYLE_DEFAULT 32 213 | #define STYLE_LINENUMBER 33 214 | #define STYLE_BRACELIGHT 34 215 | #define STYLE_BRACEBAD 35 216 | #define STYLE_CONTROLCHAR 36 217 | #define STYLE_INDENTGUIDE 37 218 | #define STYLE_CALLTIP 38 219 | #define STYLE_FOLDDISPLAYTEXT 39 220 | #define STYLE_LASTPREDEFINED 39 221 | #define STYLE_MAX 255 222 | #define SC_CHARSET_ANSI 0 223 | #define SC_CHARSET_DEFAULT 1 224 | #define SC_CHARSET_BALTIC 186 225 | #define SC_CHARSET_CHINESEBIG5 136 226 | #define SC_CHARSET_EASTEUROPE 238 227 | #define SC_CHARSET_GB2312 134 228 | #define SC_CHARSET_GREEK 161 229 | #define SC_CHARSET_HANGUL 129 230 | #define SC_CHARSET_MAC 77 231 | #define SC_CHARSET_OEM 255 232 | #define SC_CHARSET_RUSSIAN 204 233 | #define SC_CHARSET_OEM866 866 234 | #define SC_CHARSET_CYRILLIC 1251 235 | #define SC_CHARSET_SHIFTJIS 128 236 | #define SC_CHARSET_SYMBOL 2 237 | #define SC_CHARSET_TURKISH 162 238 | #define SC_CHARSET_JOHAB 130 239 | #define SC_CHARSET_HEBREW 177 240 | #define SC_CHARSET_ARABIC 178 241 | #define SC_CHARSET_VIETNAMESE 163 242 | #define SC_CHARSET_THAI 222 243 | #define SC_CHARSET_8859_15 1000 244 | #define SCI_STYLECLEARALL 2050 245 | #define SCI_STYLESETFORE 2051 246 | #define SCI_STYLESETBACK 2052 247 | #define SCI_STYLESETBOLD 2053 248 | #define SCI_STYLESETITALIC 2054 249 | #define SCI_STYLESETSIZE 2055 250 | #define SCI_STYLESETFONT 2056 251 | #define SCI_STYLESETEOLFILLED 2057 252 | #define SCI_STYLERESETDEFAULT 2058 253 | #define SCI_STYLESETUNDERLINE 2059 254 | #define SC_CASE_MIXED 0 255 | #define SC_CASE_UPPER 1 256 | #define SC_CASE_LOWER 2 257 | #define SC_CASE_CAMEL 3 258 | #define SCI_STYLEGETFORE 2481 259 | #define SCI_STYLEGETBACK 2482 260 | #define SCI_STYLEGETBOLD 2483 261 | #define SCI_STYLEGETITALIC 2484 262 | #define SCI_STYLEGETSIZE 2485 263 | #define SCI_STYLEGETFONT 2486 264 | #define SCI_STYLEGETEOLFILLED 2487 265 | #define SCI_STYLEGETUNDERLINE 2488 266 | #define SCI_STYLEGETCASE 2489 267 | #define SCI_STYLEGETCHARACTERSET 2490 268 | #define SCI_STYLEGETVISIBLE 2491 269 | #define SCI_STYLEGETCHANGEABLE 2492 270 | #define SCI_STYLEGETHOTSPOT 2493 271 | #define SCI_STYLESETCASE 2060 272 | #define SC_FONT_SIZE_MULTIPLIER 100 273 | #define SCI_STYLESETSIZEFRACTIONAL 2061 274 | #define SCI_STYLEGETSIZEFRACTIONAL 2062 275 | #define SC_WEIGHT_NORMAL 400 276 | #define SC_WEIGHT_SEMIBOLD 600 277 | #define SC_WEIGHT_BOLD 700 278 | #define SCI_STYLESETWEIGHT 2063 279 | #define SCI_STYLEGETWEIGHT 2064 280 | #define SCI_STYLESETCHARACTERSET 2066 281 | #define SCI_STYLESETHOTSPOT 2409 282 | #define SCI_STYLESETCHECKMONOSPACED 2254 283 | #define SCI_STYLEGETCHECKMONOSPACED 2255 284 | #define SCI_STYLESETINVISIBLEREPRESENTATION 2256 285 | #define SCI_STYLEGETINVISIBLEREPRESENTATION 2257 286 | #define SC_ELEMENT_LIST 0 287 | #define SC_ELEMENT_LIST_BACK 1 288 | #define SC_ELEMENT_LIST_SELECTED 2 289 | #define SC_ELEMENT_LIST_SELECTED_BACK 3 290 | #define SC_ELEMENT_SELECTION_TEXT 10 291 | #define SC_ELEMENT_SELECTION_BACK 11 292 | #define SC_ELEMENT_SELECTION_ADDITIONAL_TEXT 12 293 | #define SC_ELEMENT_SELECTION_ADDITIONAL_BACK 13 294 | #define SC_ELEMENT_SELECTION_SECONDARY_TEXT 14 295 | #define SC_ELEMENT_SELECTION_SECONDARY_BACK 15 296 | #define SC_ELEMENT_SELECTION_INACTIVE_TEXT 16 297 | #define SC_ELEMENT_SELECTION_INACTIVE_BACK 17 298 | #define SC_ELEMENT_CARET 40 299 | #define SC_ELEMENT_CARET_ADDITIONAL 41 300 | #define SC_ELEMENT_CARET_LINE_BACK 50 301 | #define SC_ELEMENT_WHITE_SPACE 60 302 | #define SC_ELEMENT_WHITE_SPACE_BACK 61 303 | #define SC_ELEMENT_HOT_SPOT_ACTIVE 70 304 | #define SC_ELEMENT_HOT_SPOT_ACTIVE_BACK 71 305 | #define SC_ELEMENT_FOLD_LINE 80 306 | #define SC_ELEMENT_HIDDEN_LINE 81 307 | #define SCI_SETELEMENTCOLOUR 2753 308 | #define SCI_GETELEMENTCOLOUR 2754 309 | #define SCI_RESETELEMENTCOLOUR 2755 310 | #define SCI_GETELEMENTISSET 2756 311 | #define SCI_GETELEMENTALLOWSTRANSLUCENT 2757 312 | #define SCI_GETELEMENTBASECOLOUR 2758 313 | #define SCI_SETSELFORE 2067 314 | #define SCI_SETSELBACK 2068 315 | #define SCI_GETSELALPHA 2477 316 | #define SCI_SETSELALPHA 2478 317 | #define SCI_GETSELEOLFILLED 2479 318 | #define SCI_SETSELEOLFILLED 2480 319 | #define SC_LAYER_BASE 0 320 | #define SC_LAYER_UNDER_TEXT 1 321 | #define SC_LAYER_OVER_TEXT 2 322 | #define SCI_GETSELECTIONLAYER 2762 323 | #define SCI_SETSELECTIONLAYER 2763 324 | #define SCI_GETCARETLINELAYER 2764 325 | #define SCI_SETCARETLINELAYER 2765 326 | #define SCI_GETCARETLINEHIGHLIGHTSUBLINE 2773 327 | #define SCI_SETCARETLINEHIGHLIGHTSUBLINE 2774 328 | #define SCI_SETCARETFORE 2069 329 | #define SCI_ASSIGNCMDKEY 2070 330 | #define SCI_CLEARCMDKEY 2071 331 | #define SCI_CLEARALLCMDKEYS 2072 332 | #define SCI_SETSTYLINGEX 2073 333 | #define SCI_STYLESETVISIBLE 2074 334 | #define SCI_GETCARETPERIOD 2075 335 | #define SCI_SETCARETPERIOD 2076 336 | #define SCI_SETWORDCHARS 2077 337 | #define SCI_GETWORDCHARS 2646 338 | #define SCI_SETCHARACTERCATEGORYOPTIMIZATION 2720 339 | #define SCI_GETCHARACTERCATEGORYOPTIMIZATION 2721 340 | #define SCI_BEGINUNDOACTION 2078 341 | #define SCI_ENDUNDOACTION 2079 342 | #define INDIC_PLAIN 0 343 | #define INDIC_SQUIGGLE 1 344 | #define INDIC_TT 2 345 | #define INDIC_DIAGONAL 3 346 | #define INDIC_STRIKE 4 347 | #define INDIC_HIDDEN 5 348 | #define INDIC_BOX 6 349 | #define INDIC_ROUNDBOX 7 350 | #define INDIC_STRAIGHTBOX 8 351 | #define INDIC_DASH 9 352 | #define INDIC_DOTS 10 353 | #define INDIC_SQUIGGLELOW 11 354 | #define INDIC_DOTBOX 12 355 | #define INDIC_SQUIGGLEPIXMAP 13 356 | #define INDIC_COMPOSITIONTHICK 14 357 | #define INDIC_COMPOSITIONTHIN 15 358 | #define INDIC_FULLBOX 16 359 | #define INDIC_TEXTFORE 17 360 | #define INDIC_POINT 18 361 | #define INDIC_POINTCHARACTER 19 362 | #define INDIC_GRADIENT 20 363 | #define INDIC_GRADIENTCENTRE 21 364 | #define INDIC_POINT_TOP 22 365 | #define INDIC_EXPLORERLINK 23 366 | #define INDIC_CONTAINER 8 367 | #define INDIC_IME 32 368 | #define INDIC_IME_MAX 35 369 | #define INDIC_MAX 35 370 | #define INDICATOR_CONTAINER 8 371 | #define INDICATOR_IME 32 372 | #define INDICATOR_IME_MAX 35 373 | #define INDICATOR_HISTORY_REVERTED_TO_ORIGIN_INSERTION 36 374 | #define INDICATOR_HISTORY_REVERTED_TO_ORIGIN_DELETION 37 375 | #define INDICATOR_HISTORY_SAVED_INSERTION 38 376 | #define INDICATOR_HISTORY_SAVED_DELETION 39 377 | #define INDICATOR_HISTORY_MODIFIED_INSERTION 40 378 | #define INDICATOR_HISTORY_MODIFIED_DELETION 41 379 | #define INDICATOR_HISTORY_REVERTED_TO_MODIFIED_INSERTION 42 380 | #define INDICATOR_HISTORY_REVERTED_TO_MODIFIED_DELETION 43 381 | #define INDICATOR_MAX 43 382 | #define SCI_INDICSETSTYLE 2080 383 | #define SCI_INDICGETSTYLE 2081 384 | #define SCI_INDICSETFORE 2082 385 | #define SCI_INDICGETFORE 2083 386 | #define SCI_INDICSETUNDER 2510 387 | #define SCI_INDICGETUNDER 2511 388 | #define SCI_INDICSETHOVERSTYLE 2680 389 | #define SCI_INDICGETHOVERSTYLE 2681 390 | #define SCI_INDICSETHOVERFORE 2682 391 | #define SCI_INDICGETHOVERFORE 2683 392 | #define SC_INDICVALUEBIT 0x1000000 393 | #define SC_INDICVALUEMASK 0xFFFFFF 394 | #define SC_INDICFLAG_NONE 0 395 | #define SC_INDICFLAG_VALUEFORE 1 396 | #define SCI_INDICSETFLAGS 2684 397 | #define SCI_INDICGETFLAGS 2685 398 | #define SCI_INDICSETSTROKEWIDTH 2751 399 | #define SCI_INDICGETSTROKEWIDTH 2752 400 | #define SCI_SETWHITESPACEFORE 2084 401 | #define SCI_SETWHITESPACEBACK 2085 402 | #define SCI_SETWHITESPACESIZE 2086 403 | #define SCI_GETWHITESPACESIZE 2087 404 | #define SCI_SETLINESTATE 2092 405 | #define SCI_GETLINESTATE 2093 406 | #define SCI_GETMAXLINESTATE 2094 407 | #define SCI_GETCARETLINEVISIBLE 2095 408 | #define SCI_SETCARETLINEVISIBLE 2096 409 | #define SCI_GETCARETLINEBACK 2097 410 | #define SCI_SETCARETLINEBACK 2098 411 | #define SCI_GETCARETLINEFRAME 2704 412 | #define SCI_SETCARETLINEFRAME 2705 413 | #define SCI_STYLESETCHANGEABLE 2099 414 | #define SCI_AUTOCSHOW 2100 415 | #define SCI_AUTOCCANCEL 2101 416 | #define SCI_AUTOCACTIVE 2102 417 | #define SCI_AUTOCPOSSTART 2103 418 | #define SCI_AUTOCCOMPLETE 2104 419 | #define SCI_AUTOCSTOPS 2105 420 | #define SCI_AUTOCSETSEPARATOR 2106 421 | #define SCI_AUTOCGETSEPARATOR 2107 422 | #define SCI_AUTOCSELECT 2108 423 | #define SCI_AUTOCSETCANCELATSTART 2110 424 | #define SCI_AUTOCGETCANCELATSTART 2111 425 | #define SCI_AUTOCSETFILLUPS 2112 426 | #define SCI_AUTOCSETCHOOSESINGLE 2113 427 | #define SCI_AUTOCGETCHOOSESINGLE 2114 428 | #define SCI_AUTOCSETIGNORECASE 2115 429 | #define SCI_AUTOCGETIGNORECASE 2116 430 | #define SCI_USERLISTSHOW 2117 431 | #define SCI_AUTOCSETAUTOHIDE 2118 432 | #define SCI_AUTOCGETAUTOHIDE 2119 433 | #define SC_AUTOCOMPLETE_NORMAL 0 434 | #define SC_AUTOCOMPLETE_FIXED_SIZE 1 435 | #define SCI_AUTOCSETOPTIONS 2638 436 | #define SCI_AUTOCGETOPTIONS 2639 437 | #define SCI_AUTOCSETDROPRESTOFWORD 2270 438 | #define SCI_AUTOCGETDROPRESTOFWORD 2271 439 | #define SCI_REGISTERIMAGE 2405 440 | #define SCI_CLEARREGISTEREDIMAGES 2408 441 | #define SCI_AUTOCGETTYPESEPARATOR 2285 442 | #define SCI_AUTOCSETTYPESEPARATOR 2286 443 | #define SCI_AUTOCSETMAXWIDTH 2208 444 | #define SCI_AUTOCGETMAXWIDTH 2209 445 | #define SCI_AUTOCSETMAXHEIGHT 2210 446 | #define SCI_AUTOCGETMAXHEIGHT 2211 447 | #define SCI_SETINDENT 2122 448 | #define SCI_GETINDENT 2123 449 | #define SCI_SETUSETABS 2124 450 | #define SCI_GETUSETABS 2125 451 | #define SCI_SETLINEINDENTATION 2126 452 | #define SCI_GETLINEINDENTATION 2127 453 | #define SCI_GETLINEINDENTPOSITION 2128 454 | #define SCI_GETCOLUMN 2129 455 | #define SCI_COUNTCHARACTERS 2633 456 | #define SCI_COUNTCODEUNITS 2715 457 | #define SCI_SETHSCROLLBAR 2130 458 | #define SCI_GETHSCROLLBAR 2131 459 | #define SC_IV_NONE 0 460 | #define SC_IV_REAL 1 461 | #define SC_IV_LOOKFORWARD 2 462 | #define SC_IV_LOOKBOTH 3 463 | #define SCI_SETINDENTATIONGUIDES 2132 464 | #define SCI_GETINDENTATIONGUIDES 2133 465 | #define SCI_SETHIGHLIGHTGUIDE 2134 466 | #define SCI_GETHIGHLIGHTGUIDE 2135 467 | #define SCI_GETLINEENDPOSITION 2136 468 | #define SCI_GETCODEPAGE 2137 469 | #define SCI_GETCARETFORE 2138 470 | #define SCI_GETREADONLY 2140 471 | #define SCI_SETCURRENTPOS 2141 472 | #define SCI_SETSELECTIONSTART 2142 473 | #define SCI_GETSELECTIONSTART 2143 474 | #define SCI_SETSELECTIONEND 2144 475 | #define SCI_GETSELECTIONEND 2145 476 | #define SCI_SETEMPTYSELECTION 2556 477 | #define SCI_SETPRINTMAGNIFICATION 2146 478 | #define SCI_GETPRINTMAGNIFICATION 2147 479 | #define SC_PRINT_NORMAL 0 480 | #define SC_PRINT_INVERTLIGHT 1 481 | #define SC_PRINT_BLACKONWHITE 2 482 | #define SC_PRINT_COLOURONWHITE 3 483 | #define SC_PRINT_COLOURONWHITEDEFAULTBG 4 484 | #define SC_PRINT_SCREENCOLOURS 5 485 | #define SCI_SETPRINTCOLOURMODE 2148 486 | #define SCI_GETPRINTCOLOURMODE 2149 487 | #define SCFIND_NONE 0x0 488 | #define SCFIND_WHOLEWORD 0x2 489 | #define SCFIND_MATCHCASE 0x4 490 | #define SCFIND_WORDSTART 0x00100000 491 | #define SCFIND_REGEXP 0x00200000 492 | #define SCFIND_POSIX 0x00400000 493 | #define SCFIND_CXX11REGEX 0x00800000 494 | #define SCI_FINDTEXT 2150 495 | #define SCI_FINDTEXTFULL 2196 496 | #define SCI_FORMATRANGE 2151 497 | #define SCI_FORMATRANGEFULL 2777 498 | #define SC_CHANGE_HISTORY_DISABLED 0 499 | #define SC_CHANGE_HISTORY_ENABLED 1 500 | #define SC_CHANGE_HISTORY_MARKERS 2 501 | #define SC_CHANGE_HISTORY_INDICATORS 4 502 | #define SCI_SETCHANGEHISTORY 2780 503 | #define SCI_GETCHANGEHISTORY 2781 504 | #define SCI_GETFIRSTVISIBLELINE 2152 505 | #define SCI_GETLINE 2153 506 | #define SCI_GETLINECOUNT 2154 507 | #define SCI_ALLOCATELINES 2089 508 | #define SCI_SETMARGINLEFT 2155 509 | #define SCI_GETMARGINLEFT 2156 510 | #define SCI_SETMARGINRIGHT 2157 511 | #define SCI_GETMARGINRIGHT 2158 512 | #define SCI_GETMODIFY 2159 513 | #define SCI_SETSEL 2160 514 | #define SCI_GETSELTEXT 2161 515 | #define SCI_GETTEXTRANGE 2162 516 | #define SCI_GETTEXTRANGEFULL 2039 517 | #define SCI_HIDESELECTION 2163 518 | #define SCI_GETSELECTIONHIDDEN 2088 519 | #define SCI_POINTXFROMPOSITION 2164 520 | #define SCI_POINTYFROMPOSITION 2165 521 | #define SCI_LINEFROMPOSITION 2166 522 | #define SCI_POSITIONFROMLINE 2167 523 | #define SCI_LINESCROLL 2168 524 | #define SCI_SCROLLCARET 2169 525 | #define SCI_SCROLLRANGE 2569 526 | #define SCI_REPLACESEL 2170 527 | #define SCI_SETREADONLY 2171 528 | #define SCI_NULL 2172 529 | #define SCI_CANPASTE 2173 530 | #define SCI_CANUNDO 2174 531 | #define SCI_EMPTYUNDOBUFFER 2175 532 | #define SCI_UNDO 2176 533 | #define SCI_CUT 2177 534 | #define SCI_COPY 2178 535 | #define SCI_PASTE 2179 536 | #define SCI_CLEAR 2180 537 | #define SCI_SETTEXT 2181 538 | #define SCI_GETTEXT 2182 539 | #define SCI_GETTEXTLENGTH 2183 540 | #define SCI_GETDIRECTFUNCTION 2184 541 | #define SCI_GETDIRECTSTATUSFUNCTION 2772 542 | #define SCI_GETDIRECTPOINTER 2185 543 | #define SCI_SETOVERTYPE 2186 544 | #define SCI_GETOVERTYPE 2187 545 | #define SCI_SETCARETWIDTH 2188 546 | #define SCI_GETCARETWIDTH 2189 547 | #define SCI_SETTARGETSTART 2190 548 | #define SCI_GETTARGETSTART 2191 549 | #define SCI_SETTARGETSTARTVIRTUALSPACE 2728 550 | #define SCI_GETTARGETSTARTVIRTUALSPACE 2729 551 | #define SCI_SETTARGETEND 2192 552 | #define SCI_GETTARGETEND 2193 553 | #define SCI_SETTARGETENDVIRTUALSPACE 2730 554 | #define SCI_GETTARGETENDVIRTUALSPACE 2731 555 | #define SCI_SETTARGETRANGE 2686 556 | #define SCI_GETTARGETTEXT 2687 557 | #define SCI_TARGETFROMSELECTION 2287 558 | #define SCI_TARGETWHOLEDOCUMENT 2690 559 | #define SCI_REPLACETARGET 2194 560 | #define SCI_REPLACETARGETRE 2195 561 | #define SCI_REPLACETARGETMINIMAL 2779 562 | #define SCI_SEARCHINTARGET 2197 563 | #define SCI_SETSEARCHFLAGS 2198 564 | #define SCI_GETSEARCHFLAGS 2199 565 | #define SCI_CALLTIPSHOW 2200 566 | #define SCI_CALLTIPCANCEL 2201 567 | #define SCI_CALLTIPACTIVE 2202 568 | #define SCI_CALLTIPPOSSTART 2203 569 | #define SCI_CALLTIPSETPOSSTART 2214 570 | #define SCI_CALLTIPSETHLT 2204 571 | #define SCI_CALLTIPSETBACK 2205 572 | #define SCI_CALLTIPSETFORE 2206 573 | #define SCI_CALLTIPSETFOREHLT 2207 574 | #define SCI_CALLTIPUSESTYLE 2212 575 | #define SCI_CALLTIPSETPOSITION 2213 576 | #define SCI_VISIBLEFROMDOCLINE 2220 577 | #define SCI_DOCLINEFROMVISIBLE 2221 578 | #define SCI_WRAPCOUNT 2235 579 | #define SC_FOLDLEVELNONE 0x0 580 | #define SC_FOLDLEVELBASE 0x400 581 | #define SC_FOLDLEVELWHITEFLAG 0x1000 582 | #define SC_FOLDLEVELHEADERFLAG 0x2000 583 | #define SC_FOLDLEVELNUMBERMASK 0x0FFF 584 | #define SCI_SETFOLDLEVEL 2222 585 | #define SCI_GETFOLDLEVEL 2223 586 | #define SCI_GETLASTCHILD 2224 587 | #define SCI_GETFOLDPARENT 2225 588 | #define SCI_SHOWLINES 2226 589 | #define SCI_HIDELINES 2227 590 | #define SCI_GETLINEVISIBLE 2228 591 | #define SCI_GETALLLINESVISIBLE 2236 592 | #define SCI_SETFOLDEXPANDED 2229 593 | #define SCI_GETFOLDEXPANDED 2230 594 | #define SCI_TOGGLEFOLD 2231 595 | #define SCI_TOGGLEFOLDSHOWTEXT 2700 596 | #define SC_FOLDDISPLAYTEXT_HIDDEN 0 597 | #define SC_FOLDDISPLAYTEXT_STANDARD 1 598 | #define SC_FOLDDISPLAYTEXT_BOXED 2 599 | #define SCI_FOLDDISPLAYTEXTSETSTYLE 2701 600 | #define SCI_FOLDDISPLAYTEXTGETSTYLE 2707 601 | #define SCI_SETDEFAULTFOLDDISPLAYTEXT 2722 602 | #define SCI_GETDEFAULTFOLDDISPLAYTEXT 2723 603 | #define SC_FOLDACTION_CONTRACT 0 604 | #define SC_FOLDACTION_EXPAND 1 605 | #define SC_FOLDACTION_TOGGLE 2 606 | #define SC_FOLDACTION_CONTRACT_EVERY_LEVEL 4 607 | #define SCI_FOLDLINE 2237 608 | #define SCI_FOLDCHILDREN 2238 609 | #define SCI_EXPANDCHILDREN 2239 610 | #define SCI_FOLDALL 2662 611 | #define SCI_ENSUREVISIBLE 2232 612 | #define SC_AUTOMATICFOLD_NONE 0x0000 613 | #define SC_AUTOMATICFOLD_SHOW 0x0001 614 | #define SC_AUTOMATICFOLD_CLICK 0x0002 615 | #define SC_AUTOMATICFOLD_CHANGE 0x0004 616 | #define SCI_SETAUTOMATICFOLD 2663 617 | #define SCI_GETAUTOMATICFOLD 2664 618 | #define SC_FOLDFLAG_NONE 0x0000 619 | #define SC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002 620 | #define SC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004 621 | #define SC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008 622 | #define SC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010 623 | #define SC_FOLDFLAG_LEVELNUMBERS 0x0040 624 | #define SC_FOLDFLAG_LINESTATE 0x0080 625 | #define SCI_SETFOLDFLAGS 2233 626 | #define SCI_ENSUREVISIBLEENFORCEPOLICY 2234 627 | #define SCI_SETTABINDENTS 2260 628 | #define SCI_GETTABINDENTS 2261 629 | #define SCI_SETBACKSPACEUNINDENTS 2262 630 | #define SCI_GETBACKSPACEUNINDENTS 2263 631 | #define SC_TIME_FOREVER 10000000 632 | #define SCI_SETMOUSEDWELLTIME 2264 633 | #define SCI_GETMOUSEDWELLTIME 2265 634 | #define SCI_WORDSTARTPOSITION 2266 635 | #define SCI_WORDENDPOSITION 2267 636 | #define SCI_ISRANGEWORD 2691 637 | #define SC_IDLESTYLING_NONE 0 638 | #define SC_IDLESTYLING_TOVISIBLE 1 639 | #define SC_IDLESTYLING_AFTERVISIBLE 2 640 | #define SC_IDLESTYLING_ALL 3 641 | #define SCI_SETIDLESTYLING 2692 642 | #define SCI_GETIDLESTYLING 2693 643 | #define SC_WRAP_NONE 0 644 | #define SC_WRAP_WORD 1 645 | #define SC_WRAP_CHAR 2 646 | #define SC_WRAP_WHITESPACE 3 647 | #define SCI_SETWRAPMODE 2268 648 | #define SCI_GETWRAPMODE 2269 649 | #define SC_WRAPVISUALFLAG_NONE 0x0000 650 | #define SC_WRAPVISUALFLAG_END 0x0001 651 | #define SC_WRAPVISUALFLAG_START 0x0002 652 | #define SC_WRAPVISUALFLAG_MARGIN 0x0004 653 | #define SCI_SETWRAPVISUALFLAGS 2460 654 | #define SCI_GETWRAPVISUALFLAGS 2461 655 | #define SC_WRAPVISUALFLAGLOC_DEFAULT 0x0000 656 | #define SC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001 657 | #define SC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002 658 | #define SCI_SETWRAPVISUALFLAGSLOCATION 2462 659 | #define SCI_GETWRAPVISUALFLAGSLOCATION 2463 660 | #define SCI_SETWRAPSTARTINDENT 2464 661 | #define SCI_GETWRAPSTARTINDENT 2465 662 | #define SC_WRAPINDENT_FIXED 0 663 | #define SC_WRAPINDENT_SAME 1 664 | #define SC_WRAPINDENT_INDENT 2 665 | #define SC_WRAPINDENT_DEEPINDENT 3 666 | #define SCI_SETWRAPINDENTMODE 2472 667 | #define SCI_GETWRAPINDENTMODE 2473 668 | #define SC_CACHE_NONE 0 669 | #define SC_CACHE_CARET 1 670 | #define SC_CACHE_PAGE 2 671 | #define SC_CACHE_DOCUMENT 3 672 | #define SCI_SETLAYOUTCACHE 2272 673 | #define SCI_GETLAYOUTCACHE 2273 674 | #define SCI_SETSCROLLWIDTH 2274 675 | #define SCI_GETSCROLLWIDTH 2275 676 | #define SCI_SETSCROLLWIDTHTRACKING 2516 677 | #define SCI_GETSCROLLWIDTHTRACKING 2517 678 | #define SCI_TEXTWIDTH 2276 679 | #define SCI_SETENDATLASTLINE 2277 680 | #define SCI_GETENDATLASTLINE 2278 681 | #define SCI_TEXTHEIGHT 2279 682 | #define SCI_SETVSCROLLBAR 2280 683 | #define SCI_GETVSCROLLBAR 2281 684 | #define SCI_APPENDTEXT 2282 685 | #define SC_PHASES_ONE 0 686 | #define SC_PHASES_TWO 1 687 | #define SC_PHASES_MULTIPLE 2 688 | #define SCI_GETPHASESDRAW 2673 689 | #define SCI_SETPHASESDRAW 2674 690 | #define SC_EFF_QUALITY_MASK 0xF 691 | #define SC_EFF_QUALITY_DEFAULT 0 692 | #define SC_EFF_QUALITY_NON_ANTIALIASED 1 693 | #define SC_EFF_QUALITY_ANTIALIASED 2 694 | #define SC_EFF_QUALITY_LCD_OPTIMIZED 3 695 | #define SCI_SETFONTQUALITY 2611 696 | #define SCI_GETFONTQUALITY 2612 697 | #define SCI_SETFIRSTVISIBLELINE 2613 698 | #define SC_MULTIPASTE_ONCE 0 699 | #define SC_MULTIPASTE_EACH 1 700 | #define SCI_SETMULTIPASTE 2614 701 | #define SCI_GETMULTIPASTE 2615 702 | #define SCI_GETTAG 2616 703 | #define SCI_LINESJOIN 2288 704 | #define SCI_LINESSPLIT 2289 705 | #define SCI_SETFOLDMARGINCOLOUR 2290 706 | #define SCI_SETFOLDMARGINHICOLOUR 2291 707 | #define SC_ACCESSIBILITY_DISABLED 0 708 | #define SC_ACCESSIBILITY_ENABLED 1 709 | #define SCI_SETACCESSIBILITY 2702 710 | #define SCI_GETACCESSIBILITY 2703 711 | #define SCI_LINEDOWN 2300 712 | #define SCI_LINEDOWNEXTEND 2301 713 | #define SCI_LINEUP 2302 714 | #define SCI_LINEUPEXTEND 2303 715 | #define SCI_CHARLEFT 2304 716 | #define SCI_CHARLEFTEXTEND 2305 717 | #define SCI_CHARRIGHT 2306 718 | #define SCI_CHARRIGHTEXTEND 2307 719 | #define SCI_WORDLEFT 2308 720 | #define SCI_WORDLEFTEXTEND 2309 721 | #define SCI_WORDRIGHT 2310 722 | #define SCI_WORDRIGHTEXTEND 2311 723 | #define SCI_HOME 2312 724 | #define SCI_HOMEEXTEND 2313 725 | #define SCI_LINEEND 2314 726 | #define SCI_LINEENDEXTEND 2315 727 | #define SCI_DOCUMENTSTART 2316 728 | #define SCI_DOCUMENTSTARTEXTEND 2317 729 | #define SCI_DOCUMENTEND 2318 730 | #define SCI_DOCUMENTENDEXTEND 2319 731 | #define SCI_PAGEUP 2320 732 | #define SCI_PAGEUPEXTEND 2321 733 | #define SCI_PAGEDOWN 2322 734 | #define SCI_PAGEDOWNEXTEND 2323 735 | #define SCI_EDITTOGGLEOVERTYPE 2324 736 | #define SCI_CANCEL 2325 737 | #define SCI_DELETEBACK 2326 738 | #define SCI_TAB 2327 739 | #define SCI_BACKTAB 2328 740 | #define SCI_NEWLINE 2329 741 | #define SCI_FORMFEED 2330 742 | #define SCI_VCHOME 2331 743 | #define SCI_VCHOMEEXTEND 2332 744 | #define SCI_ZOOMIN 2333 745 | #define SCI_ZOOMOUT 2334 746 | #define SCI_DELWORDLEFT 2335 747 | #define SCI_DELWORDRIGHT 2336 748 | #define SCI_DELWORDRIGHTEND 2518 749 | #define SCI_LINECUT 2337 750 | #define SCI_LINEDELETE 2338 751 | #define SCI_LINETRANSPOSE 2339 752 | #define SCI_LINEREVERSE 2354 753 | #define SCI_LINEDUPLICATE 2404 754 | #define SCI_LOWERCASE 2340 755 | #define SCI_UPPERCASE 2341 756 | #define SCI_LINESCROLLDOWN 2342 757 | #define SCI_LINESCROLLUP 2343 758 | #define SCI_DELETEBACKNOTLINE 2344 759 | #define SCI_HOMEDISPLAY 2345 760 | #define SCI_HOMEDISPLAYEXTEND 2346 761 | #define SCI_LINEENDDISPLAY 2347 762 | #define SCI_LINEENDDISPLAYEXTEND 2348 763 | #define SCI_HOMEWRAP 2349 764 | #define SCI_HOMEWRAPEXTEND 2450 765 | #define SCI_LINEENDWRAP 2451 766 | #define SCI_LINEENDWRAPEXTEND 2452 767 | #define SCI_VCHOMEWRAP 2453 768 | #define SCI_VCHOMEWRAPEXTEND 2454 769 | #define SCI_LINECOPY 2455 770 | #define SCI_MOVECARETINSIDEVIEW 2401 771 | #define SCI_LINELENGTH 2350 772 | #define SCI_BRACEHIGHLIGHT 2351 773 | #define SCI_BRACEHIGHLIGHTINDICATOR 2498 774 | #define SCI_BRACEBADLIGHT 2352 775 | #define SCI_BRACEBADLIGHTINDICATOR 2499 776 | #define SCI_BRACEMATCH 2353 777 | #define SCI_BRACEMATCHNEXT 2369 778 | #define SCI_GETVIEWEOL 2355 779 | #define SCI_SETVIEWEOL 2356 780 | #define SCI_GETDOCPOINTER 2357 781 | #define SCI_SETDOCPOINTER 2358 782 | #define SCI_SETMODEVENTMASK 2359 783 | #define EDGE_NONE 0 784 | #define EDGE_LINE 1 785 | #define EDGE_BACKGROUND 2 786 | #define EDGE_MULTILINE 3 787 | #define SCI_GETEDGECOLUMN 2360 788 | #define SCI_SETEDGECOLUMN 2361 789 | #define SCI_GETEDGEMODE 2362 790 | #define SCI_SETEDGEMODE 2363 791 | #define SCI_GETEDGECOLOUR 2364 792 | #define SCI_SETEDGECOLOUR 2365 793 | #define SCI_MULTIEDGEADDLINE 2694 794 | #define SCI_MULTIEDGECLEARALL 2695 795 | #define SCI_GETMULTIEDGECOLUMN 2749 796 | #define SCI_SEARCHANCHOR 2366 797 | #define SCI_SEARCHNEXT 2367 798 | #define SCI_SEARCHPREV 2368 799 | #define SCI_LINESONSCREEN 2370 800 | #define SC_POPUP_NEVER 0 801 | #define SC_POPUP_ALL 1 802 | #define SC_POPUP_TEXT 2 803 | #define SCI_USEPOPUP 2371 804 | #define SCI_SELECTIONISRECTANGLE 2372 805 | #define SCI_SETZOOM 2373 806 | #define SCI_GETZOOM 2374 807 | #define SC_DOCUMENTOPTION_DEFAULT 0 808 | #define SC_DOCUMENTOPTION_STYLES_NONE 0x1 809 | #define SC_DOCUMENTOPTION_TEXT_LARGE 0x100 810 | #define SCI_CREATEDOCUMENT 2375 811 | #define SCI_ADDREFDOCUMENT 2376 812 | #define SCI_RELEASEDOCUMENT 2377 813 | #define SCI_GETDOCUMENTOPTIONS 2379 814 | #define SCI_GETMODEVENTMASK 2378 815 | #define SCI_SETCOMMANDEVENTS 2717 816 | #define SCI_GETCOMMANDEVENTS 2718 817 | #define SCI_SETFOCUS 2380 818 | #define SCI_GETFOCUS 2381 819 | #define SC_STATUS_OK 0 820 | #define SC_STATUS_FAILURE 1 821 | #define SC_STATUS_BADALLOC 2 822 | #define SC_STATUS_WARN_START 1000 823 | #define SC_STATUS_WARN_REGEX 1001 824 | #define SCI_SETSTATUS 2382 825 | #define SCI_GETSTATUS 2383 826 | #define SCI_SETMOUSEDOWNCAPTURES 2384 827 | #define SCI_GETMOUSEDOWNCAPTURES 2385 828 | #define SCI_SETMOUSEWHEELCAPTURES 2696 829 | #define SCI_GETMOUSEWHEELCAPTURES 2697 830 | #define SCI_SETCURSOR 2386 831 | #define SCI_GETCURSOR 2387 832 | #define SCI_SETCONTROLCHARSYMBOL 2388 833 | #define SCI_GETCONTROLCHARSYMBOL 2389 834 | #define SCI_WORDPARTLEFT 2390 835 | #define SCI_WORDPARTLEFTEXTEND 2391 836 | #define SCI_WORDPARTRIGHT 2392 837 | #define SCI_WORDPARTRIGHTEXTEND 2393 838 | #define VISIBLE_SLOP 0x01 839 | #define VISIBLE_STRICT 0x04 840 | #define SCI_SETVISIBLEPOLICY 2394 841 | #define SCI_DELLINELEFT 2395 842 | #define SCI_DELLINERIGHT 2396 843 | #define SCI_SETXOFFSET 2397 844 | #define SCI_GETXOFFSET 2398 845 | #define SCI_CHOOSECARETX 2399 846 | #define SCI_GRABFOCUS 2400 847 | #define CARET_SLOP 0x01 848 | #define CARET_STRICT 0x04 849 | #define CARET_JUMPS 0x10 850 | #define CARET_EVEN 0x08 851 | #define SCI_SETXCARETPOLICY 2402 852 | #define SCI_SETYCARETPOLICY 2403 853 | #define SCI_SETPRINTWRAPMODE 2406 854 | #define SCI_GETPRINTWRAPMODE 2407 855 | #define SCI_SETHOTSPOTACTIVEFORE 2410 856 | #define SCI_GETHOTSPOTACTIVEFORE 2494 857 | #define SCI_SETHOTSPOTACTIVEBACK 2411 858 | #define SCI_GETHOTSPOTACTIVEBACK 2495 859 | #define SCI_SETHOTSPOTACTIVEUNDERLINE 2412 860 | #define SCI_GETHOTSPOTACTIVEUNDERLINE 2496 861 | #define SCI_SETHOTSPOTSINGLELINE 2421 862 | #define SCI_GETHOTSPOTSINGLELINE 2497 863 | #define SCI_PARADOWN 2413 864 | #define SCI_PARADOWNEXTEND 2414 865 | #define SCI_PARAUP 2415 866 | #define SCI_PARAUPEXTEND 2416 867 | #define SCI_POSITIONBEFORE 2417 868 | #define SCI_POSITIONAFTER 2418 869 | #define SCI_POSITIONRELATIVE 2670 870 | #define SCI_POSITIONRELATIVECODEUNITS 2716 871 | #define SCI_COPYRANGE 2419 872 | #define SCI_COPYTEXT 2420 873 | #define SC_SEL_STREAM 0 874 | #define SC_SEL_RECTANGLE 1 875 | #define SC_SEL_LINES 2 876 | #define SC_SEL_THIN 3 877 | #define SCI_SETSELECTIONMODE 2422 878 | #define SCI_GETSELECTIONMODE 2423 879 | #define SCI_GETMOVEEXTENDSSELECTION 2706 880 | #define SCI_GETLINESELSTARTPOSITION 2424 881 | #define SCI_GETLINESELENDPOSITION 2425 882 | #define SCI_LINEDOWNRECTEXTEND 2426 883 | #define SCI_LINEUPRECTEXTEND 2427 884 | #define SCI_CHARLEFTRECTEXTEND 2428 885 | #define SCI_CHARRIGHTRECTEXTEND 2429 886 | #define SCI_HOMERECTEXTEND 2430 887 | #define SCI_VCHOMERECTEXTEND 2431 888 | #define SCI_LINEENDRECTEXTEND 2432 889 | #define SCI_PAGEUPRECTEXTEND 2433 890 | #define SCI_PAGEDOWNRECTEXTEND 2434 891 | #define SCI_STUTTEREDPAGEUP 2435 892 | #define SCI_STUTTEREDPAGEUPEXTEND 2436 893 | #define SCI_STUTTEREDPAGEDOWN 2437 894 | #define SCI_STUTTEREDPAGEDOWNEXTEND 2438 895 | #define SCI_WORDLEFTEND 2439 896 | #define SCI_WORDLEFTENDEXTEND 2440 897 | #define SCI_WORDRIGHTEND 2441 898 | #define SCI_WORDRIGHTENDEXTEND 2442 899 | #define SCI_SETWHITESPACECHARS 2443 900 | #define SCI_GETWHITESPACECHARS 2647 901 | #define SCI_SETPUNCTUATIONCHARS 2648 902 | #define SCI_GETPUNCTUATIONCHARS 2649 903 | #define SCI_SETCHARSDEFAULT 2444 904 | #define SCI_AUTOCGETCURRENT 2445 905 | #define SCI_AUTOCGETCURRENTTEXT 2610 906 | #define SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE 0 907 | #define SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE 1 908 | #define SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR 2634 909 | #define SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR 2635 910 | #define SC_MULTIAUTOC_ONCE 0 911 | #define SC_MULTIAUTOC_EACH 1 912 | #define SCI_AUTOCSETMULTI 2636 913 | #define SCI_AUTOCGETMULTI 2637 914 | #define SC_ORDER_PRESORTED 0 915 | #define SC_ORDER_PERFORMSORT 1 916 | #define SC_ORDER_CUSTOM 2 917 | #define SCI_AUTOCSETORDER 2660 918 | #define SCI_AUTOCGETORDER 2661 919 | #define SCI_ALLOCATE 2446 920 | #define SCI_TARGETASUTF8 2447 921 | #define SCI_SETLENGTHFORENCODE 2448 922 | #define SCI_ENCODEDFROMUTF8 2449 923 | #define SCI_FINDCOLUMN 2456 924 | #define SC_CARETSTICKY_OFF 0 925 | #define SC_CARETSTICKY_ON 1 926 | #define SC_CARETSTICKY_WHITESPACE 2 927 | #define SCI_GETCARETSTICKY 2457 928 | #define SCI_SETCARETSTICKY 2458 929 | #define SCI_TOGGLECARETSTICKY 2459 930 | #define SCI_SETPASTECONVERTENDINGS 2467 931 | #define SCI_GETPASTECONVERTENDINGS 2468 932 | #define SCI_REPLACERECTANGULAR 2771 933 | #define SCI_SELECTIONDUPLICATE 2469 934 | #define SCI_SETCARETLINEBACKALPHA 2470 935 | #define SCI_GETCARETLINEBACKALPHA 2471 936 | #define CARETSTYLE_INVISIBLE 0 937 | #define CARETSTYLE_LINE 1 938 | #define CARETSTYLE_BLOCK 2 939 | #define CARETSTYLE_OVERSTRIKE_BAR 0 940 | #define CARETSTYLE_OVERSTRIKE_BLOCK 0x10 941 | #define CARETSTYLE_CURSES 0x20 942 | #define CARETSTYLE_INS_MASK 0xF 943 | #define CARETSTYLE_BLOCK_AFTER 0x100 944 | #define SCI_SETCARETSTYLE 2512 945 | #define SCI_GETCARETSTYLE 2513 946 | #define SCI_SETINDICATORCURRENT 2500 947 | #define SCI_GETINDICATORCURRENT 2501 948 | #define SCI_SETINDICATORVALUE 2502 949 | #define SCI_GETINDICATORVALUE 2503 950 | #define SCI_INDICATORFILLRANGE 2504 951 | #define SCI_INDICATORCLEARRANGE 2505 952 | #define SCI_INDICATORALLONFOR 2506 953 | #define SCI_INDICATORVALUEAT 2507 954 | #define SCI_INDICATORSTART 2508 955 | #define SCI_INDICATOREND 2509 956 | #define SCI_SETPOSITIONCACHE 2514 957 | #define SCI_GETPOSITIONCACHE 2515 958 | #define SCI_SETLAYOUTTHREADS 2775 959 | #define SCI_GETLAYOUTTHREADS 2776 960 | #define SCI_COPYALLOWLINE 2519 961 | #define SCI_GETCHARACTERPOINTER 2520 962 | #define SCI_GETRANGEPOINTER 2643 963 | #define SCI_GETGAPPOSITION 2644 964 | #define SCI_INDICSETALPHA 2523 965 | #define SCI_INDICGETALPHA 2524 966 | #define SCI_INDICSETOUTLINEALPHA 2558 967 | #define SCI_INDICGETOUTLINEALPHA 2559 968 | #define SCI_SETEXTRAASCENT 2525 969 | #define SCI_GETEXTRAASCENT 2526 970 | #define SCI_SETEXTRADESCENT 2527 971 | #define SCI_GETEXTRADESCENT 2528 972 | #define SCI_MARKERSYMBOLDEFINED 2529 973 | #define SCI_MARGINSETTEXT 2530 974 | #define SCI_MARGINGETTEXT 2531 975 | #define SCI_MARGINSETSTYLE 2532 976 | #define SCI_MARGINGETSTYLE 2533 977 | #define SCI_MARGINSETSTYLES 2534 978 | #define SCI_MARGINGETSTYLES 2535 979 | #define SCI_MARGINTEXTCLEARALL 2536 980 | #define SCI_MARGINSETSTYLEOFFSET 2537 981 | #define SCI_MARGINGETSTYLEOFFSET 2538 982 | #define SC_MARGINOPTION_NONE 0 983 | #define SC_MARGINOPTION_SUBLINESELECT 1 984 | #define SCI_SETMARGINOPTIONS 2539 985 | #define SCI_GETMARGINOPTIONS 2557 986 | #define SCI_ANNOTATIONSETTEXT 2540 987 | #define SCI_ANNOTATIONGETTEXT 2541 988 | #define SCI_ANNOTATIONSETSTYLE 2542 989 | #define SCI_ANNOTATIONGETSTYLE 2543 990 | #define SCI_ANNOTATIONSETSTYLES 2544 991 | #define SCI_ANNOTATIONGETSTYLES 2545 992 | #define SCI_ANNOTATIONGETLINES 2546 993 | #define SCI_ANNOTATIONCLEARALL 2547 994 | #define ANNOTATION_HIDDEN 0 995 | #define ANNOTATION_STANDARD 1 996 | #define ANNOTATION_BOXED 2 997 | #define ANNOTATION_INDENTED 3 998 | #define SCI_ANNOTATIONSETVISIBLE 2548 999 | #define SCI_ANNOTATIONGETVISIBLE 2549 1000 | #define SCI_ANNOTATIONSETSTYLEOFFSET 2550 1001 | #define SCI_ANNOTATIONGETSTYLEOFFSET 2551 1002 | #define SCI_RELEASEALLEXTENDEDSTYLES 2552 1003 | #define SCI_ALLOCATEEXTENDEDSTYLES 2553 1004 | #define UNDO_NONE 0 1005 | #define UNDO_MAY_COALESCE 1 1006 | #define SCI_ADDUNDOACTION 2560 1007 | #define SCI_CHARPOSITIONFROMPOINT 2561 1008 | #define SCI_CHARPOSITIONFROMPOINTCLOSE 2562 1009 | #define SCI_SETMOUSESELECTIONRECTANGULARSWITCH 2668 1010 | #define SCI_GETMOUSESELECTIONRECTANGULARSWITCH 2669 1011 | #define SCI_SETMULTIPLESELECTION 2563 1012 | #define SCI_GETMULTIPLESELECTION 2564 1013 | #define SCI_SETADDITIONALSELECTIONTYPING 2565 1014 | #define SCI_GETADDITIONALSELECTIONTYPING 2566 1015 | #define SCI_SETADDITIONALCARETSBLINK 2567 1016 | #define SCI_GETADDITIONALCARETSBLINK 2568 1017 | #define SCI_SETADDITIONALCARETSVISIBLE 2608 1018 | #define SCI_GETADDITIONALCARETSVISIBLE 2609 1019 | #define SCI_GETSELECTIONS 2570 1020 | #define SCI_GETSELECTIONEMPTY 2650 1021 | #define SCI_CLEARSELECTIONS 2571 1022 | #define SCI_SETSELECTION 2572 1023 | #define SCI_ADDSELECTION 2573 1024 | #define SCI_DROPSELECTIONN 2671 1025 | #define SCI_SETMAINSELECTION 2574 1026 | #define SCI_GETMAINSELECTION 2575 1027 | #define SCI_SETSELECTIONNCARET 2576 1028 | #define SCI_GETSELECTIONNCARET 2577 1029 | #define SCI_SETSELECTIONNANCHOR 2578 1030 | #define SCI_GETSELECTIONNANCHOR 2579 1031 | #define SCI_SETSELECTIONNCARETVIRTUALSPACE 2580 1032 | #define SCI_GETSELECTIONNCARETVIRTUALSPACE 2581 1033 | #define SCI_SETSELECTIONNANCHORVIRTUALSPACE 2582 1034 | #define SCI_GETSELECTIONNANCHORVIRTUALSPACE 2583 1035 | #define SCI_SETSELECTIONNSTART 2584 1036 | #define SCI_GETSELECTIONNSTART 2585 1037 | #define SCI_GETSELECTIONNSTARTVIRTUALSPACE 2726 1038 | #define SCI_SETSELECTIONNEND 2586 1039 | #define SCI_GETSELECTIONNENDVIRTUALSPACE 2727 1040 | #define SCI_GETSELECTIONNEND 2587 1041 | #define SCI_SETRECTANGULARSELECTIONCARET 2588 1042 | #define SCI_GETRECTANGULARSELECTIONCARET 2589 1043 | #define SCI_SETRECTANGULARSELECTIONANCHOR 2590 1044 | #define SCI_GETRECTANGULARSELECTIONANCHOR 2591 1045 | #define SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE 2592 1046 | #define SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE 2593 1047 | #define SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE 2594 1048 | #define SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE 2595 1049 | #define SCVS_NONE 0 1050 | #define SCVS_RECTANGULARSELECTION 1 1051 | #define SCVS_USERACCESSIBLE 2 1052 | #define SCVS_NOWRAPLINESTART 4 1053 | #define SCI_SETVIRTUALSPACEOPTIONS 2596 1054 | #define SCI_GETVIRTUALSPACEOPTIONS 2597 1055 | #define SCI_SETRECTANGULARSELECTIONMODIFIER 2598 1056 | #define SCI_GETRECTANGULARSELECTIONMODIFIER 2599 1057 | #define SCI_SETADDITIONALSELFORE 2600 1058 | #define SCI_SETADDITIONALSELBACK 2601 1059 | #define SCI_SETADDITIONALSELALPHA 2602 1060 | #define SCI_GETADDITIONALSELALPHA 2603 1061 | #define SCI_SETADDITIONALCARETFORE 2604 1062 | #define SCI_GETADDITIONALCARETFORE 2605 1063 | #define SCI_ROTATESELECTION 2606 1064 | #define SCI_SWAPMAINANCHORCARET 2607 1065 | #define SCI_MULTIPLESELECTADDNEXT 2688 1066 | #define SCI_MULTIPLESELECTADDEACH 2689 1067 | #define SCI_CHANGELEXERSTATE 2617 1068 | #define SCI_CONTRACTEDFOLDNEXT 2618 1069 | #define SCI_VERTICALCENTRECARET 2619 1070 | #define SCI_MOVESELECTEDLINESUP 2620 1071 | #define SCI_MOVESELECTEDLINESDOWN 2621 1072 | #define SCI_SETIDENTIFIER 2622 1073 | #define SCI_GETIDENTIFIER 2623 1074 | #define SCI_RGBAIMAGESETWIDTH 2624 1075 | #define SCI_RGBAIMAGESETHEIGHT 2625 1076 | #define SCI_RGBAIMAGESETSCALE 2651 1077 | #define SCI_MARKERDEFINERGBAIMAGE 2626 1078 | #define SCI_REGISTERRGBAIMAGE 2627 1079 | #define SCI_SCROLLTOSTART 2628 1080 | #define SCI_SCROLLTOEND 2629 1081 | #define SC_TECHNOLOGY_DEFAULT 0 1082 | #define SC_TECHNOLOGY_DIRECTWRITE 1 1083 | #define SC_TECHNOLOGY_DIRECTWRITERETAIN 2 1084 | #define SC_TECHNOLOGY_DIRECTWRITEDC 3 1085 | #define SCI_SETTECHNOLOGY 2630 1086 | #define SCI_GETTECHNOLOGY 2631 1087 | #define SCI_CREATELOADER 2632 1088 | #define SCI_FINDINDICATORSHOW 2640 1089 | #define SCI_FINDINDICATORFLASH 2641 1090 | #define SCI_FINDINDICATORHIDE 2642 1091 | #define SCI_VCHOMEDISPLAY 2652 1092 | #define SCI_VCHOMEDISPLAYEXTEND 2653 1093 | #define SCI_GETCARETLINEVISIBLEALWAYS 2654 1094 | #define SCI_SETCARETLINEVISIBLEALWAYS 2655 1095 | #define SC_LINE_END_TYPE_DEFAULT 0 1096 | #define SC_LINE_END_TYPE_UNICODE 1 1097 | #define SCI_SETLINEENDTYPESALLOWED 2656 1098 | #define SCI_GETLINEENDTYPESALLOWED 2657 1099 | #define SCI_GETLINEENDTYPESACTIVE 2658 1100 | #define SCI_SETREPRESENTATION 2665 1101 | #define SCI_GETREPRESENTATION 2666 1102 | #define SCI_CLEARREPRESENTATION 2667 1103 | #define SCI_CLEARALLREPRESENTATIONS 2770 1104 | #define SC_REPRESENTATION_PLAIN 0 1105 | #define SC_REPRESENTATION_BLOB 1 1106 | #define SC_REPRESENTATION_COLOUR 0x10 1107 | #define SCI_SETREPRESENTATIONAPPEARANCE 2766 1108 | #define SCI_GETREPRESENTATIONAPPEARANCE 2767 1109 | #define SCI_SETREPRESENTATIONCOLOUR 2768 1110 | #define SCI_GETREPRESENTATIONCOLOUR 2769 1111 | #define SCI_EOLANNOTATIONSETTEXT 2740 1112 | #define SCI_EOLANNOTATIONGETTEXT 2741 1113 | #define SCI_EOLANNOTATIONSETSTYLE 2742 1114 | #define SCI_EOLANNOTATIONGETSTYLE 2743 1115 | #define SCI_EOLANNOTATIONCLEARALL 2744 1116 | #define EOLANNOTATION_HIDDEN 0x0 1117 | #define EOLANNOTATION_STANDARD 0x1 1118 | #define EOLANNOTATION_BOXED 0x2 1119 | #define EOLANNOTATION_STADIUM 0x100 1120 | #define EOLANNOTATION_FLAT_CIRCLE 0x101 1121 | #define EOLANNOTATION_ANGLE_CIRCLE 0x102 1122 | #define EOLANNOTATION_CIRCLE_FLAT 0x110 1123 | #define EOLANNOTATION_FLATS 0x111 1124 | #define EOLANNOTATION_ANGLE_FLAT 0x112 1125 | #define EOLANNOTATION_CIRCLE_ANGLE 0x120 1126 | #define EOLANNOTATION_FLAT_ANGLE 0x121 1127 | #define EOLANNOTATION_ANGLES 0x122 1128 | #define SCI_EOLANNOTATIONSETVISIBLE 2745 1129 | #define SCI_EOLANNOTATIONGETVISIBLE 2746 1130 | #define SCI_EOLANNOTATIONSETSTYLEOFFSET 2747 1131 | #define SCI_EOLANNOTATIONGETSTYLEOFFSET 2748 1132 | #define SC_SUPPORTS_LINE_DRAWS_FINAL 0 1133 | #define SC_SUPPORTS_PIXEL_DIVISIONS 1 1134 | #define SC_SUPPORTS_FRACTIONAL_STROKE_WIDTH 2 1135 | #define SC_SUPPORTS_TRANSLUCENT_STROKE 3 1136 | #define SC_SUPPORTS_PIXEL_MODIFICATION 4 1137 | #define SC_SUPPORTS_THREAD_SAFE_MEASURE_WIDTHS 5 1138 | #define SCI_SUPPORTSFEATURE 2750 1139 | #define SC_LINECHARACTERINDEX_NONE 0 1140 | #define SC_LINECHARACTERINDEX_UTF32 1 1141 | #define SC_LINECHARACTERINDEX_UTF16 2 1142 | #define SCI_GETLINECHARACTERINDEX 2710 1143 | #define SCI_ALLOCATELINECHARACTERINDEX 2711 1144 | #define SCI_RELEASELINECHARACTERINDEX 2712 1145 | #define SCI_LINEFROMINDEXPOSITION 2713 1146 | #define SCI_INDEXPOSITIONFROMLINE 2714 1147 | #define SCI_STARTRECORD 3001 1148 | #define SCI_STOPRECORD 3002 1149 | #define SCI_GETLEXER 4002 1150 | #define SCI_COLOURISE 4003 1151 | #define SCI_SETPROPERTY 4004 1152 | #define KEYWORDSET_MAX 30 1153 | #define SCI_SETKEYWORDS 4005 1154 | #define SCI_GETPROPERTY 4008 1155 | #define SCI_GETPROPERTYEXPANDED 4009 1156 | #define SCI_GETPROPERTYINT 4010 1157 | #define SCI_GETLEXERLANGUAGE 4012 1158 | #define SCI_PRIVATELEXERCALL 4013 1159 | #define SCI_PROPERTYNAMES 4014 1160 | #define SC_TYPE_BOOLEAN 0 1161 | #define SC_TYPE_INTEGER 1 1162 | #define SC_TYPE_STRING 2 1163 | #define SCI_PROPERTYTYPE 4015 1164 | #define SCI_DESCRIBEPROPERTY 4016 1165 | #define SCI_DESCRIBEKEYWORDSETS 4017 1166 | #define SCI_GETLINEENDTYPESSUPPORTED 4018 1167 | #define SCI_ALLOCATESUBSTYLES 4020 1168 | #define SCI_GETSUBSTYLESSTART 4021 1169 | #define SCI_GETSUBSTYLESLENGTH 4022 1170 | #define SCI_GETSTYLEFROMSUBSTYLE 4027 1171 | #define SCI_GETPRIMARYSTYLEFROMSTYLE 4028 1172 | #define SCI_FREESUBSTYLES 4023 1173 | #define SCI_SETIDENTIFIERS 4024 1174 | #define SCI_DISTANCETOSECONDARYSTYLES 4025 1175 | #define SCI_GETSUBSTYLEBASES 4026 1176 | #define SCI_GETNAMEDSTYLES 4029 1177 | #define SCI_NAMEOFSTYLE 4030 1178 | #define SCI_TAGSOFSTYLE 4031 1179 | #define SCI_DESCRIPTIONOFSTYLE 4032 1180 | #define SCI_SETILEXER 4033 1181 | #define SC_MOD_NONE 0x0 1182 | #define SC_MOD_INSERTTEXT 0x1 1183 | #define SC_MOD_DELETETEXT 0x2 1184 | #define SC_MOD_CHANGESTYLE 0x4 1185 | #define SC_MOD_CHANGEFOLD 0x8 1186 | #define SC_PERFORMED_USER 0x10 1187 | #define SC_PERFORMED_UNDO 0x20 1188 | #define SC_PERFORMED_REDO 0x40 1189 | #define SC_MULTISTEPUNDOREDO 0x80 1190 | #define SC_LASTSTEPINUNDOREDO 0x100 1191 | #define SC_MOD_CHANGEMARKER 0x200 1192 | #define SC_MOD_BEFOREINSERT 0x400 1193 | #define SC_MOD_BEFOREDELETE 0x800 1194 | #define SC_MULTILINEUNDOREDO 0x1000 1195 | #define SC_STARTACTION 0x2000 1196 | #define SC_MOD_CHANGEINDICATOR 0x4000 1197 | #define SC_MOD_CHANGELINESTATE 0x8000 1198 | #define SC_MOD_CHANGEMARGIN 0x10000 1199 | #define SC_MOD_CHANGEANNOTATION 0x20000 1200 | #define SC_MOD_CONTAINER 0x40000 1201 | #define SC_MOD_LEXERSTATE 0x80000 1202 | #define SC_MOD_INSERTCHECK 0x100000 1203 | #define SC_MOD_CHANGETABSTOPS 0x200000 1204 | #define SC_MOD_CHANGEEOLANNOTATION 0x400000 1205 | #define SC_MODEVENTMASKALL 0x7FFFFF 1206 | #define SC_UPDATE_NONE 0x0 1207 | #define SC_UPDATE_CONTENT 0x1 1208 | #define SC_UPDATE_SELECTION 0x2 1209 | #define SC_UPDATE_V_SCROLL 0x4 1210 | #define SC_UPDATE_H_SCROLL 0x8 1211 | #define SCEN_CHANGE 768 1212 | #define SCEN_SETFOCUS 512 1213 | #define SCEN_KILLFOCUS 256 1214 | #define SCK_DOWN 300 1215 | #define SCK_UP 301 1216 | #define SCK_LEFT 302 1217 | #define SCK_RIGHT 303 1218 | #define SCK_HOME 304 1219 | #define SCK_END 305 1220 | #define SCK_PRIOR 306 1221 | #define SCK_NEXT 307 1222 | #define SCK_DELETE 308 1223 | #define SCK_INSERT 309 1224 | #define SCK_ESCAPE 7 1225 | #define SCK_BACK 8 1226 | #define SCK_TAB 9 1227 | #define SCK_RETURN 13 1228 | #define SCK_ADD 310 1229 | #define SCK_SUBTRACT 311 1230 | #define SCK_DIVIDE 312 1231 | #define SCK_WIN 313 1232 | #define SCK_RWIN 314 1233 | #define SCK_MENU 315 1234 | #define SCMOD_NORM 0 1235 | #define SCMOD_SHIFT 1 1236 | #define SCMOD_CTRL 2 1237 | #define SCMOD_ALT 4 1238 | #define SCMOD_SUPER 8 1239 | #define SCMOD_META 16 1240 | #define SC_AC_FILLUP 1 1241 | #define SC_AC_DOUBLECLICK 2 1242 | #define SC_AC_TAB 3 1243 | #define SC_AC_NEWLINE 4 1244 | #define SC_AC_COMMAND 5 1245 | #define SC_AC_SINGLE_CHOICE 6 1246 | #define SC_CHARACTERSOURCE_DIRECT_INPUT 0 1247 | #define SC_CHARACTERSOURCE_TENTATIVE_INPUT 1 1248 | #define SC_CHARACTERSOURCE_IME_RESULT 2 1249 | #define SCN_STYLENEEDED 2000 1250 | #define SCN_CHARADDED 2001 1251 | #define SCN_SAVEPOINTREACHED 2002 1252 | #define SCN_SAVEPOINTLEFT 2003 1253 | #define SCN_MODIFYATTEMPTRO 2004 1254 | #define SCN_KEY 2005 1255 | #define SCN_DOUBLECLICK 2006 1256 | #define SCN_UPDATEUI 2007 1257 | #define SCN_MODIFIED 2008 1258 | #define SCN_MACRORECORD 2009 1259 | #define SCN_MARGINCLICK 2010 1260 | #define SCN_NEEDSHOWN 2011 1261 | #define SCN_PAINTED 2013 1262 | #define SCN_USERLISTSELECTION 2014 1263 | #define SCN_URIDROPPED 2015 1264 | #define SCN_DWELLSTART 2016 1265 | #define SCN_DWELLEND 2017 1266 | #define SCN_ZOOM 2018 1267 | #define SCN_HOTSPOTCLICK 2019 1268 | #define SCN_HOTSPOTDOUBLECLICK 2020 1269 | #define SCN_CALLTIPCLICK 2021 1270 | #define SCN_AUTOCSELECTION 2022 1271 | #define SCN_INDICATORCLICK 2023 1272 | #define SCN_INDICATORRELEASE 2024 1273 | #define SCN_AUTOCCANCELLED 2025 1274 | #define SCN_AUTOCCHARDELETED 2026 1275 | #define SCN_HOTSPOTRELEASECLICK 2027 1276 | #define SCN_FOCUSIN 2028 1277 | #define SCN_FOCUSOUT 2029 1278 | #define SCN_AUTOCCOMPLETED 2030 1279 | #define SCN_MARGINRIGHTCLICK 2031 1280 | #define SCN_AUTOCSELECTIONCHANGE 2032 1281 | #ifndef SCI_DISABLE_PROVISIONAL 1282 | #define SC_BIDIRECTIONAL_DISABLED 0 1283 | #define SC_BIDIRECTIONAL_L2R 1 1284 | #define SC_BIDIRECTIONAL_R2L 2 1285 | #define SCI_GETBIDIRECTIONAL 2708 1286 | #define SCI_SETBIDIRECTIONAL 2709 1287 | #endif 1288 | 1289 | #define SC_SEARCHRESULT_LINEBUFFERMAXLENGTH 2048 1290 | #define SCI_GETBOOSTREGEXERRMSG 5000 1291 | #define SCN_FOLDINGSTATECHANGED 2081 1292 | /* --Autogenerated -- end of section automatically generated from Scintilla.iface */ 1293 | 1294 | #endif 1295 | 1296 | /* These structures are defined to be exactly the same shape as the Win32 1297 | * CHARRANGE, TEXTRANGE, FINDTEXTEX, FORMATRANGE, and NMHDR structs. 1298 | * So older code that treats Scintilla as a RichEdit will work. */ 1299 | 1300 | struct Sci_CharacterRange { 1301 | Sci_PositionCR cpMin; 1302 | Sci_PositionCR cpMax; 1303 | }; 1304 | 1305 | struct Sci_CharacterRangeFull { 1306 | Sci_Position cpMin; 1307 | Sci_Position cpMax; 1308 | }; 1309 | 1310 | struct Sci_TextRange { 1311 | struct Sci_CharacterRange chrg; 1312 | char *lpstrText; 1313 | }; 1314 | 1315 | struct Sci_TextRangeFull { 1316 | struct Sci_CharacterRangeFull chrg; 1317 | char *lpstrText; 1318 | }; 1319 | 1320 | struct Sci_TextToFind { 1321 | struct Sci_CharacterRange chrg; 1322 | const char *lpstrText; 1323 | struct Sci_CharacterRange chrgText; 1324 | }; 1325 | 1326 | struct Sci_TextToFindFull { 1327 | struct Sci_CharacterRangeFull chrg; 1328 | const char *lpstrText; 1329 | struct Sci_CharacterRangeFull chrgText; 1330 | }; 1331 | 1332 | typedef void *Sci_SurfaceID; 1333 | 1334 | struct Sci_Rectangle { 1335 | int left; 1336 | int top; 1337 | int right; 1338 | int bottom; 1339 | }; 1340 | 1341 | /* This structure is used in printing and requires some of the graphics types 1342 | * from Platform.h. Not needed by most client code. */ 1343 | 1344 | struct Sci_RangeToFormat { 1345 | Sci_SurfaceID hdc; 1346 | Sci_SurfaceID hdcTarget; 1347 | struct Sci_Rectangle rc; 1348 | struct Sci_Rectangle rcPage; 1349 | struct Sci_CharacterRange chrg; 1350 | }; 1351 | 1352 | struct Sci_RangeToFormatFull { 1353 | Sci_SurfaceID hdc; 1354 | Sci_SurfaceID hdcTarget; 1355 | struct Sci_Rectangle rc; 1356 | struct Sci_Rectangle rcPage; 1357 | struct Sci_CharacterRangeFull chrg; 1358 | }; 1359 | 1360 | #ifndef __cplusplus 1361 | /* For the GTK+ platform, g-ir-scanner needs to have these typedefs. This 1362 | * is not required in C++ code and actually seems to break ScintillaEditPy */ 1363 | typedef struct Sci_NotifyHeader Sci_NotifyHeader; 1364 | typedef struct SCNotification SCNotification; 1365 | #endif 1366 | 1367 | struct Sci_NotifyHeader { 1368 | /* Compatible with Windows NMHDR. 1369 | * hwndFrom is really an environment specific window handle or pointer 1370 | * but most clients of Scintilla.h do not have this type visible. */ 1371 | void *hwndFrom; 1372 | uptr_t idFrom; 1373 | unsigned int code; 1374 | }; 1375 | 1376 | struct SCNotification { 1377 | Sci_NotifyHeader nmhdr; 1378 | Sci_Position position; 1379 | /* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, */ 1380 | /* SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, */ 1381 | /* SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, */ 1382 | /* SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */ 1383 | /* SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */ 1384 | 1385 | int ch; 1386 | /* SCN_CHARADDED, SCN_KEY, SCN_AUTOCCOMPLETED, SCN_AUTOCSELECTION, */ 1387 | /* SCN_USERLISTSELECTION */ 1388 | int modifiers; 1389 | /* SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, */ 1390 | /* SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */ 1391 | 1392 | int modificationType; /* SCN_MODIFIED */ 1393 | const char *text; 1394 | /* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION, SCN_URIDROPPED */ 1395 | 1396 | Sci_Position length; /* SCN_MODIFIED */ 1397 | Sci_Position linesAdded; /* SCN_MODIFIED */ 1398 | int message; /* SCN_MACRORECORD */ 1399 | uptr_t wParam; /* SCN_MACRORECORD */ 1400 | sptr_t lParam; /* SCN_MACRORECORD */ 1401 | Sci_Position line; /* SCN_MODIFIED */ 1402 | int foldLevelNow; /* SCN_MODIFIED */ 1403 | int foldLevelPrev; /* SCN_MODIFIED */ 1404 | int margin; /* SCN_MARGINCLICK */ 1405 | int listType; /* SCN_USERLISTSELECTION */ 1406 | int x; /* SCN_DWELLSTART, SCN_DWELLEND */ 1407 | int y; /* SCN_DWELLSTART, SCN_DWELLEND */ 1408 | int token; /* SCN_MODIFIED with SC_MOD_CONTAINER */ 1409 | Sci_Position annotationLinesAdded; /* SCN_MODIFIED with SC_MOD_CHANGEANNOTATION */ 1410 | int updated; /* SCN_UPDATEUI */ 1411 | int listCompletionMethod; 1412 | /* SCN_AUTOCSELECTION, SCN_AUTOCCOMPLETED, SCN_USERLISTSELECTION, */ 1413 | int characterSource; /* SCN_CHARADDED */ 1414 | }; 1415 | 1416 | #include 1417 | struct SearchResultMarkingLine { // each line could have several segments if user want to see only 1 found line which contains several results 1418 | std::vector> _segmentPostions; // a vector of pair of start & end of occurrence for colourizing 1419 | }; 1420 | 1421 | struct SearchResultMarkings { 1422 | intptr_t _length; 1423 | SearchResultMarkingLine *_markings; 1424 | }; 1425 | #ifdef INCLUDE_DEPRECATED_FEATURES 1426 | 1427 | #define SCI_SETKEYSUNICODE 2521 1428 | #define SCI_GETKEYSUNICODE 2522 1429 | 1430 | #define SCI_GETTWOPHASEDRAW 2283 1431 | #define SCI_SETTWOPHASEDRAW 2284 1432 | 1433 | #define CharacterRange Sci_CharacterRange 1434 | #define TextRange Sci_TextRange 1435 | #define TextToFind Sci_TextToFind 1436 | #define RangeToFormat Sci_RangeToFormat 1437 | #define NotifyHeader Sci_NotifyHeader 1438 | 1439 | #define SCI_SETSTYLEBITS 2090 1440 | #define SCI_GETSTYLEBITS 2091 1441 | #define SCI_GETSTYLEBITSNEEDED 4011 1442 | 1443 | #define INDIC0_MASK 0x20 1444 | #define INDIC1_MASK 0x40 1445 | #define INDIC2_MASK 0x80 1446 | #define INDICS_MASK 0xE0 1447 | 1448 | #endif 1449 | 1450 | #endif 1451 | -------------------------------------------------------------------------------- /SpeechPlugin.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Speech Plugin for Notepad++ 3 | Copyright (C)2008 Jim Xochellis 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 | */ 19 | 20 | 21 | #include "PluginInterface.h" 22 | #include 23 | 24 | #include 25 | #include 26 | 27 | #include 28 | #include 29 | #include 30 | 31 | const TCHAR PLUGIN_NAME[] = __TEXT("Speech"); 32 | const int nbFunc = 6; 33 | 34 | NppData nppData; 35 | bool gCanSpeek = false; 36 | FuncItem funcItem[nbFunc]; 37 | 38 | void initMenu(void); 39 | void Cleanup(); 40 | 41 | void SpeakDocument(); 42 | void SpeakSelection(); 43 | void StopSpeech(); 44 | void PauseSpeech(); 45 | void ResumeSpeech(); 46 | 47 | //--------------------------------------------------------- 48 | 49 | BOOL APIENTRY DllMain( HANDLE /*hModule*/, 50 | DWORD reasonForCall, 51 | LPVOID /*lpReserved*/ ) 52 | { 53 | switch (reasonForCall) 54 | { 55 | case DLL_PROCESS_ATTACH: 56 | { 57 | funcItem[0]._pFunc = SpeakSelection; 58 | funcItem[1]._pFunc = SpeakDocument; 59 | funcItem[2]._pFunc = NULL; 60 | funcItem[3]._pFunc = StopSpeech; 61 | funcItem[4]._pFunc = PauseSpeech; 62 | funcItem[5]._pFunc = ResumeSpeech; 63 | 64 | lstrcpy(funcItem[0]._itemName, __TEXT("Speak &Selection")); 65 | lstrcpy(funcItem[1]._itemName, __TEXT("Speak &Document")); 66 | lstrcpy(funcItem[2]._itemName, __TEXT("-SEPARATOR-")); 67 | lstrcpy(funcItem[3]._itemName, __TEXT("S&top Speech")); 68 | lstrcpy(funcItem[4]._itemName, __TEXT("&Pause Speech")); 69 | lstrcpy(funcItem[5]._itemName, __TEXT("&Resume Speech")); 70 | 71 | funcItem[0]._init2Check = false; 72 | funcItem[1]._init2Check = false; 73 | funcItem[2]._init2Check = false; 74 | funcItem[3]._init2Check = false; 75 | funcItem[4]._init2Check = false; 76 | funcItem[5]._init2Check = false; 77 | 78 | funcItem[0]._pShKey = NULL; 79 | funcItem[1]._pShKey = NULL; 80 | funcItem[2]._pShKey = NULL; 81 | funcItem[3]._pShKey = NULL; 82 | funcItem[4]._pShKey = NULL; 83 | funcItem[5]._pShKey = NULL; 84 | } 85 | break; 86 | 87 | case DLL_PROCESS_DETACH: 88 | break; 89 | 90 | case DLL_THREAD_ATTACH: 91 | break; 92 | 93 | case DLL_THREAD_DETACH: 94 | break; 95 | } 96 | 97 | return TRUE; 98 | } 99 | 100 | extern "C" __declspec(dllexport) void setInfo(NppData notpadPlusData) 101 | { 102 | nppData = notpadPlusData; 103 | gCanSpeek = SUCCEEDED(CoInitializeEx(NULL, COINIT_APARTMENTTHREADED)); 104 | } 105 | 106 | extern "C" __declspec(dllexport) const TCHAR * getName() 107 | { 108 | return PLUGIN_NAME; 109 | } 110 | 111 | extern "C" __declspec(dllexport) FuncItem * getFuncsArray(int *nbF) 112 | { 113 | *nbF = nbFunc; 114 | return funcItem; 115 | } 116 | 117 | HWND getCurrentHScintilla(int which) 118 | { 119 | return (which == 0)?nppData._scintillaMainHandle:nppData._scintillaSecondHandle; 120 | }; 121 | 122 | extern "C" __declspec(dllexport) void beNotified(SCNotification * notifyCode) 123 | { 124 | switch (notifyCode->nmhdr.code) 125 | { 126 | case NPPN_SHUTDOWN: 127 | { 128 | Cleanup(); 129 | } 130 | break; 131 | 132 | default: 133 | return; 134 | } 135 | } 136 | 137 | // Here you can process the Npp Messages 138 | // I will make the messages accessible little by little, according to the need of plugin development. 139 | // Please let me know if you need to access to some messages : 140 | // http://sourceforge.net/forum/forum.php?forum_id=482781 141 | // 142 | extern "C" __declspec(dllexport) LRESULT messageProc(UINT Message, WPARAM /*wParam*/, LPARAM /*lParam*/) 143 | { 144 | if (Message == WM_CREATE) 145 | { 146 | initMenu(); 147 | } 148 | 149 | return TRUE; 150 | } 151 | 152 | #ifdef UNICODE 153 | extern "C" __declspec(dllexport) BOOL isUnicode() 154 | { 155 | return TRUE; 156 | } 157 | #endif 158 | 159 | void initMenu(void) 160 | { 161 | HMENU hMenu = ::GetMenu(nppData._nppHandle); 162 | 163 | if (hMenu != NULL) 164 | ::ModifyMenu(hMenu, funcItem[3]._cmdID, MF_BYCOMMAND | MF_SEPARATOR, 0, 0); 165 | } 166 | 167 | //====================================================================== 168 | 169 | struct VoiceStruct 170 | { 171 | VoiceStruct() 172 | { 173 | mVoice = NULL; 174 | mIsPaused= false; 175 | } 176 | 177 | ISpVoice *Voice() { return mVoice; } 178 | 179 | void Init(ISpVoice *pVoice) 180 | { 181 | this->Stop(); 182 | 183 | mVoice = pVoice; 184 | mIsPaused= false; 185 | } 186 | 187 | void Stop() 188 | { 189 | if (mVoice != NULL) 190 | { 191 | mVoice->Release(); 192 | mVoice = NULL; 193 | mIsPaused= false; 194 | } 195 | } 196 | 197 | void Pause() 198 | { 199 | if ( (mVoice != NULL) && ! mIsPaused ) 200 | { 201 | mVoice->Pause(); 202 | mIsPaused= true; 203 | } 204 | } 205 | 206 | void Resume() 207 | { 208 | if ( (mVoice != NULL) && mIsPaused ) 209 | { 210 | mVoice->Resume(); 211 | mIsPaused= false; 212 | } 213 | } 214 | 215 | protected: 216 | ISpVoice *mVoice; 217 | bool mIsPaused; 218 | }; 219 | 220 | VoiceStruct gVoice; 221 | 222 | void SpeekText(std::wstring txt); 223 | HWND GetCurrentEditHandle(); 224 | 225 | //--------------------------------------------------------- 226 | 227 | void SpeakDocument() 228 | { 229 | HWND editHandle = GetCurrentEditHandle(); 230 | 231 | assert(editHandle != NULL); 232 | 233 | if (editHandle != NULL) 234 | { 235 | DWORD txtLen = (long)SendMessage(editHandle, SCI_GETTEXTLENGTH, 0, 0); 236 | 237 | if ( txtLen > 0 ) 238 | { 239 | std::string buf(txtLen++, 0); 240 | 241 | SendMessage(editHandle, SCI_GETTEXT, buf.size(), (LPARAM)&buf[0]); 242 | 243 | std::wstring_convert> converter; 244 | std::wstring wbuf = converter.from_bytes(buf); 245 | 246 | SpeekText(wbuf); 247 | } 248 | } 249 | } 250 | 251 | void SpeakSelection() 252 | { 253 | HWND editHandle = GetCurrentEditHandle(); 254 | 255 | assert(editHandle != NULL); 256 | 257 | if (editHandle != NULL) 258 | { 259 | struct Sci_TextRange tr{}; 260 | 261 | tr.chrg.cpMin = (Sci_PositionCR)SendMessage(editHandle, SCI_GETSELECTIONSTART, 0, 0); 262 | tr.chrg.cpMax = (Sci_PositionCR)SendMessage(editHandle, SCI_GETSELECTIONEND, 0, 0); 263 | 264 | if( tr.chrg.cpMax > 0 && (tr.chrg.cpMax > tr.chrg.cpMin)) 265 | { 266 | std::string buf((tr.chrg.cpMax - (tr.chrg.cpMin))+1, 0); 267 | 268 | tr.lpstrText = &buf[0]; 269 | SendMessage(editHandle, SCI_GETTEXTRANGE, 0, (LPARAM)&tr); 270 | 271 | std::wstring_convert> converter; 272 | std::wstring wbuf = converter.from_bytes(buf); 273 | 274 | SpeekText(wbuf); 275 | } 276 | else 277 | { 278 | MessageBox(nppData._nppHandle, __TEXT("Please select some text first"), __TEXT("No selection"), 0); 279 | } 280 | } 281 | } 282 | 283 | void StopSpeech() 284 | { 285 | gVoice.Stop(); 286 | } 287 | 288 | void PauseSpeech() 289 | { 290 | gVoice.Pause(); 291 | } 292 | 293 | void ResumeSpeech() 294 | { 295 | gVoice.Resume(); 296 | } 297 | 298 | //--------------------------------------------------------- 299 | 300 | void SpeekText(std::wstring txt) 301 | { 302 | if ( ! txt.empty() ) 303 | { 304 | if ( gCanSpeek ) 305 | { 306 | ISpVoice *pVoice = NULL; 307 | 308 | HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice); 309 | 310 | if ( SUCCEEDED(hr) ) 311 | { 312 | gVoice.Init(pVoice); 313 | hr = gVoice.Voice()->Speak(txt.c_str(), SPF_ASYNC|SPF_PURGEBEFORESPEAK, NULL); 314 | } 315 | } 316 | } 317 | } 318 | 319 | HWND GetCurrentEditHandle() 320 | { 321 | int currentEdit = 0; 322 | 323 | SendMessage(nppData._nppHandle, NPPM_GETCURRENTSCINTILLA, 0, (LPARAM)¤tEdit); 324 | 325 | return (currentEdit == 0) ? nppData._scintillaMainHandle : nppData._scintillaSecondHandle; 326 | } 327 | 328 | void Cleanup() 329 | { 330 | if ( gCanSpeek ) 331 | { 332 | //Stopping speech here leaves ghost threads! 333 | //StopSpeech(); 334 | 335 | CoUninitialize(); 336 | gCanSpeek = false; 337 | } 338 | } 339 | -------------------------------------------------------------------------------- /SpeechPlugin.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "afxres.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (U.S.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | #pragma code_page(1252) 22 | #endif //_WIN32 23 | 24 | ///////////////////////////////////////////////////////////////////////////// 25 | // 26 | // Version 27 | // 28 | 29 | VS_VERSION_INFO VERSIONINFO 30 | FILEVERSION 0,6,0,0 31 | PRODUCTVERSION 0,6,0,0 32 | FILEFLAGSMASK 0x17L 33 | #ifdef _DEBUG 34 | FILEFLAGS 0x1L 35 | #else 36 | FILEFLAGS 0x0L 37 | #endif 38 | FILEOS 0x4L 39 | FILETYPE 0x2L 40 | FILESUBTYPE 0x0L 41 | BEGIN 42 | BLOCK "StringFileInfo" 43 | BEGIN 44 | BLOCK "040904b0" 45 | BEGIN 46 | VALUE "CompanyName", "Jim Xochellis" 47 | VALUE "FileDescription", "Speech plugin for Notepad++" 48 | VALUE "FileVersion", "0, 6, 0, 0" 49 | VALUE "InternalName", "SpeechPlugin.dll" 50 | VALUE "LegalCopyright", "Copyright (C) 2024" 51 | VALUE "OriginalFilename", "SpeechPlugin.dll" 52 | VALUE "ProductName", "Speech plugin for Notepad++" 53 | VALUE "ProductVersion", "0, 6, 0, 0" 54 | END 55 | END 56 | BLOCK "VarFileInfo" 57 | BEGIN 58 | VALUE "Translation", 0x409, 1200 59 | END 60 | END 61 | 62 | #endif // English (U.S.) resources 63 | ///////////////////////////////////////////////////////////////////////////// 64 | 65 | 66 | ///////////////////////////////////////////////////////////////////////////// 67 | // Greek resources 68 | 69 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ELL) 70 | #ifdef _WIN32 71 | LANGUAGE LANG_GREEK, SUBLANG_DEFAULT 72 | #pragma code_page(1253) 73 | #endif //_WIN32 74 | 75 | #ifdef APSTUDIO_INVOKED 76 | ///////////////////////////////////////////////////////////////////////////// 77 | // 78 | // TEXTINCLUDE 79 | // 80 | 81 | 1 TEXTINCLUDE 82 | BEGIN 83 | "resource.h\0" 84 | END 85 | 86 | 2 TEXTINCLUDE 87 | BEGIN 88 | "#include ""afxres.h""\r\n" 89 | "\0" 90 | END 91 | 92 | 3 TEXTINCLUDE 93 | BEGIN 94 | "\r\n" 95 | "\0" 96 | END 97 | 98 | #endif // APSTUDIO_INVOKED 99 | 100 | #endif // Greek resources 101 | ///////////////////////////////////////////////////////////////////////////// 102 | 103 | 104 | 105 | #ifndef APSTUDIO_INVOKED 106 | ///////////////////////////////////////////////////////////////////////////// 107 | // 108 | // Generated from the TEXTINCLUDE 3 resource. 109 | // 110 | 111 | 112 | ///////////////////////////////////////////////////////////////////////////// 113 | #endif // not APSTUDIO_INVOKED 114 | 115 | -------------------------------------------------------------------------------- /SpeechPlugin.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | ARM64 7 | 8 | 9 | Debug 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | ARM64 19 | 20 | 21 | Release 22 | Win32 23 | 24 | 25 | Release 26 | x64 27 | 28 | 29 | 30 | {1590D7CD-7D3A-4AB7-A355-EE02F7FB987D} 31 | SpeechPlugin 32 | Win32Proj 33 | 10.0 34 | 35 | 36 | 37 | DynamicLibrary 38 | v143 39 | Unicode 40 | 41 | 42 | DynamicLibrary 43 | v143 44 | Unicode 45 | 46 | 47 | DynamicLibrary 48 | v143 49 | Unicode 50 | 51 | 52 | DynamicLibrary 53 | v143 54 | Unicode 55 | 56 | 57 | DynamicLibrary 58 | v143 59 | Unicode 60 | 61 | 62 | DynamicLibrary 63 | v143 64 | Unicode 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | <_ProjectFileVersion>15.0.28307.799 90 | 91 | 92 | $(SolutionDir)$(Platform)\$(Configuration)\ 93 | true 94 | 95 | 96 | true 97 | 98 | 99 | true 100 | 101 | 102 | $(SolutionDir)$(Platform)\$(Configuration)\ 103 | false 104 | 105 | 106 | false 107 | 108 | 109 | false 110 | 111 | 112 | 113 | Disabled 114 | .;C:\Program Files\Microsoft Speech SDK 5.1\Include\;%(AdditionalIncludeDirectories) 115 | WIN32;_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;_DEBUG;_WINDOWS;_USRDLL;NPPSPEECHPLUGIN_EXPORTS;_WIN32_DCOM;%(PreprocessorDefinitions) 116 | false 117 | EnableFastChecks 118 | MultiThreadedDebug 119 | 120 | Level4 121 | ProgramDatabase 122 | Guard 123 | true 124 | true 125 | stdcpp17 126 | stdc17 127 | 128 | 129 | shlwapi.lib;sapi.lib;ole32.lib;%(AdditionalDependencies) 130 | $(OutDir)SpeechPlugin.dll 131 | C:\Program Files\Microsoft Speech SDK 5.1\Lib\i386;%(AdditionalLibraryDirectories) 132 | true 133 | $(OutDir)SpeechPlugin.pdb 134 | Windows 135 | $(OutDir)SpeechPlugin.lib 136 | MachineX86 137 | true 138 | 139 | 140 | 141 | 142 | Disabled 143 | .;C:\Program Files\Microsoft Speech SDK 5.1\Include\;%(AdditionalIncludeDirectories) 144 | WIN32;_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;_DEBUG;_WINDOWS;_USRDLL;NPPSPEECHPLUGIN_EXPORTS;_WIN32_DCOM;%(PreprocessorDefinitions) 145 | EnableFastChecks 146 | MultiThreadedDebug 147 | 148 | 149 | Level4 150 | ProgramDatabase 151 | Guard 152 | true 153 | true 154 | stdcpp17 155 | stdc17 156 | 157 | 158 | shlwapi.lib;sapi.lib;ole32.lib;%(AdditionalDependencies) 159 | $(OutDir)SpeechPlugin.dll 160 | C:\Program Files\Microsoft Speech SDK 5.1\Lib\i386;%(AdditionalLibraryDirectories) 161 | true 162 | $(OutDir)SpeechPlugin.pdb 163 | Windows 164 | $(OutDir)SpeechPlugin.lib 165 | true 166 | 167 | 168 | 169 | 170 | Disabled 171 | .;C:\Program Files\Microsoft Speech SDK 5.1\Include\;%(AdditionalIncludeDirectories) 172 | WIN32;_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;_DEBUG;_WINDOWS;_USRDLL;NPPSPEECHPLUGIN_EXPORTS;_WIN32_DCOM;%(PreprocessorDefinitions) 173 | EnableFastChecks 174 | MultiThreadedDebug 175 | 176 | 177 | Level4 178 | ProgramDatabase 179 | Guard 180 | true 181 | true 182 | stdcpp17 183 | stdc17 184 | 185 | 186 | shlwapi.lib;sapi.lib;ole32.lib;%(AdditionalDependencies) 187 | $(OutDir)SpeechPlugin.dll 188 | C:\Program Files\Microsoft Speech SDK 5.1\Lib\i386;%(AdditionalLibraryDirectories) 189 | true 190 | $(OutDir)SpeechPlugin.pdb 191 | Windows 192 | $(OutDir)SpeechPlugin.lib 193 | false 194 | 195 | 196 | 197 | 198 | .;C:\Program Files\Microsoft Speech SDK 5.1\Include\;%(AdditionalIncludeDirectories) 199 | WIN32;_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;NDEBUG;_WINDOWS;_USRDLL;NPPSPEECHPLUGIN_EXPORTS;_WIN32_DCOM;%(PreprocessorDefinitions) 200 | MultiThreaded 201 | 202 | 203 | Level3 204 | ProgramDatabase 205 | Guard 206 | true 207 | true 208 | stdcpp17 209 | stdc17 210 | 211 | 212 | shlwapi.lib;sapi.lib;ole32.lib;%(AdditionalDependencies) 213 | $(OutDir)SpeechPlugin.dll 214 | C:\Program Files\Microsoft Speech SDK 5.1\Lib\i386;%(AdditionalLibraryDirectories) 215 | true 216 | Windows 217 | true 218 | true 219 | $(OutDir)SpeechPlugin.lib 220 | MachineX86 221 | true 222 | 223 | 224 | 225 | 226 | .;C:\Program Files\Microsoft Speech SDK 5.1\Include\;%(AdditionalIncludeDirectories) 227 | WIN32;_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;NDEBUG;_WINDOWS;_USRDLL;NPPSPEECHPLUGIN_EXPORTS;_WIN32_DCOM;%(PreprocessorDefinitions) 228 | MultiThreaded 229 | 230 | 231 | 232 | 233 | Level3 234 | ProgramDatabase 235 | Guard 236 | true 237 | true 238 | stdcpp17 239 | stdc17 240 | 241 | 242 | shlwapi.lib;sapi.lib;ole32.lib;%(AdditionalDependencies) 243 | $(OutDir)SpeechPlugin.dll 244 | C:\Program Files\Microsoft Speech SDK 5.1\Lib\i386;%(AdditionalLibraryDirectories) 245 | true 246 | Windows 247 | true 248 | true 249 | $(OutDir)SpeechPlugin.lib 250 | true 251 | 252 | 253 | 254 | 255 | .;C:\Program Files\Microsoft Speech SDK 5.1\Include\;%(AdditionalIncludeDirectories) 256 | WIN32;_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;NDEBUG;_WINDOWS;_USRDLL;NPPSPEECHPLUGIN_EXPORTS;_WIN32_DCOM;%(PreprocessorDefinitions) 257 | MultiThreaded 258 | 259 | 260 | 261 | 262 | Level3 263 | ProgramDatabase 264 | Guard 265 | true 266 | true 267 | stdcpp17 268 | stdc17 269 | 270 | 271 | shlwapi.lib;sapi.lib;ole32.lib;%(AdditionalDependencies) 272 | $(OutDir)SpeechPlugin.dll 273 | C:\Program Files\Microsoft Speech SDK 5.1\Lib\i386;%(AdditionalLibraryDirectories) 274 | true 275 | Windows 276 | true 277 | true 278 | $(OutDir)SpeechPlugin.lib 279 | false 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | -------------------------------------------------------------------------------- /change.log: -------------------------------------------------------------------------------- 1 | 2 | Change-log for SpeechPlugin.dll 3 | 4 | ------------------------------------------------------------------------------------ 5 | 29/10/08 v0.2.1.0 : 6 | ------------------------------------------------------------------------------------ 7 | Made compatible with Notepad++ 5.1 - Unicode release 8 | 9 | ------------------------------------------------------------------------------------ 10 | 10/01/08 v0.2.0.1 : 11 | ------------------------------------------------------------------------------------ 12 | Pause speech 13 | Resume speech 14 | 15 | ------------------------------------------------------------------------------------ 16 | 09/01/08 v0.1.0.0 : 17 | ------------------------------------------------------------------------------------ 18 | Speak selection 19 | Speak document 20 | Stop speech 21 | -------------------------------------------------------------------------------- /resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by SpeechPlugin.rc 4 | // 5 | 6 | // Next default values for new objects 7 | // 8 | #ifdef APSTUDIO_INVOKED 9 | #ifndef APSTUDIO_READONLY_SYMBOLS 10 | #define _APS_NEXT_RESOURCE_VALUE 101 11 | #define _APS_NEXT_COMMAND_VALUE 40001 12 | #define _APS_NEXT_CONTROL_VALUE 1001 13 | #define _APS_NEXT_SYMED_VALUE 101 14 | #endif 15 | #endif 16 | --------------------------------------------------------------------------------