├── .gitignore
├── CONTRIBUTING.md
├── LICENSE.md
├── Office365APIEditor.sln
├── Office365APIEditor
├── AccessTokenUtil
│ ├── AccessTokenUtil.cs
│ ├── V1NativeAppUtil.cs
│ ├── V1WebAppUtil.cs
│ ├── V2NativeAppUtil.cs
│ └── V2WebAppUtil.cs
├── App.config
├── ClientInformation.cs
├── External
│ ├── DynamicJson.cs
│ ├── ScintillaNET FindReplaceDialog
│ │ ├── CharacterRange.cs
│ │ ├── FindAllResults
│ │ │ ├── FindAllResultsPanel.Designer.cs
│ │ │ ├── FindAllResultsPanel.cs
│ │ │ └── FindAllResultsPanel.resx
│ │ ├── FindReplace
│ │ │ ├── FindOption.cs
│ │ │ ├── FindReplace.cs
│ │ │ ├── FindReplaceDialog.Designer.cs
│ │ │ ├── FindReplaceDialog.cs
│ │ │ ├── FindReplaceDialog.resx
│ │ │ ├── IncrementalSearcher.Designer.cs
│ │ │ ├── IncrementalSearcher.cs
│ │ │ ├── IncrementalSearcher.resx
│ │ │ └── ToolStripIncrementalSearcher.cs
│ │ ├── GoTo
│ │ │ ├── GoTo.cs
│ │ │ ├── GoToDialog.Designer.cs
│ │ │ ├── GoToDialog.cs
│ │ │ └── GoToDialog.resx
│ │ └── Resources
│ │ │ ├── Clock.ico
│ │ │ ├── Clock.png
│ │ │ ├── DeleteHS.png
│ │ │ ├── GoToNextMessage.png
│ │ │ ├── GoToPreviousMessage.png
│ │ │ └── LineColorHS.png
│ └── ScintillaNET
│ │ ├── Annotation.cs
│ │ ├── AutoCSelectionEventArgs.cs
│ │ ├── AutomaticFold.cs
│ │ ├── BeforeModificationEventArgs.cs
│ │ ├── CaretStyle.cs
│ │ ├── ChangeAnnotationEventArgs.cs
│ │ ├── CharAddedEventArgs.cs
│ │ ├── Command.cs
│ │ ├── CopyFormat.cs
│ │ ├── Document.cs
│ │ ├── DoubleClickEventArgs.cs
│ │ ├── DwellEventArgs.cs
│ │ ├── EdgeMode.cs
│ │ ├── Eol.cs
│ │ ├── FlagsEnumConverter.cs
│ │ ├── FoldAction.cs
│ │ ├── FoldDisplayText.cs
│ │ ├── FoldFlags.cs
│ │ ├── FoldLevelFlags.cs
│ │ ├── FontQuality.cs
│ │ ├── GapBuffer.cs
│ │ ├── Helpers.cs
│ │ ├── HotspotClickEventArgs.cs
│ │ ├── ILoader.cs
│ │ ├── IdleStyling.cs
│ │ ├── IndentView.cs
│ │ ├── Indicator.cs
│ │ ├── IndicatorClickEventArgs.cs
│ │ ├── IndicatorCollection.cs
│ │ ├── IndicatorFlags.cs
│ │ ├── IndicatorReleaseEventArgs.cs
│ │ ├── IndicatorStyle.cs
│ │ ├── InsertCheckEventArgs.cs
│ │ ├── Lexer.cs
│ │ ├── Line.cs
│ │ ├── LineCollection.cs
│ │ ├── LineEndType.cs
│ │ ├── ListCompletionMethod.cs
│ │ ├── Loader.cs
│ │ ├── Margin.cs
│ │ ├── MarginClickEventArgs.cs
│ │ ├── MarginCollection.cs
│ │ ├── MarginCursor.cs
│ │ ├── MarginOptions.cs
│ │ ├── MarginType.cs
│ │ ├── Marker.cs
│ │ ├── MarkerCollection.cs
│ │ ├── MarkerHandle.cs
│ │ ├── MarkerSymbol.cs
│ │ ├── ModificationEventArgs.cs
│ │ ├── ModificationSource.cs
│ │ ├── MultiPaste.cs
│ │ ├── NativeMemoryStream.cs
│ │ ├── NativeMethods.cs
│ │ ├── NeedShownEventArgs.cs
│ │ ├── Order.cs
│ │ ├── Phases.cs
│ │ ├── PopupMode.cs
│ │ ├── ProjectionEqualityComparer.cs
│ │ ├── PropertyType.cs
│ │ ├── SCNotificationEventArgs.cs
│ │ ├── Scintilla.cs
│ │ ├── ScintillaReader.cs
│ │ ├── SearchFlags.cs
│ │ ├── Selection.cs
│ │ ├── SelectionCollection.cs
│ │ ├── Status.cs
│ │ ├── Style.cs
│ │ ├── StyleCase.cs
│ │ ├── StyleCollection.cs
│ │ ├── StyleNeededEventArgs.cs
│ │ ├── TabDrawMode.cs
│ │ ├── Technology.cs
│ │ ├── Tuple.cs
│ │ ├── UpdateChange.cs
│ │ ├── UpdateUIEventArgs.cs
│ │ ├── VirtualSpace.cs
│ │ ├── WhitespaceMode.cs
│ │ ├── WrapIndentMode.cs
│ │ ├── WrapMode.cs
│ │ ├── WrapVisualFlagLocation.cs
│ │ ├── WrapVisualFlags.cs
│ │ ├── x64
│ │ ├── License.txt
│ │ ├── SciLexer.dll
│ │ ├── SciLexer.dll.gz
│ │ ├── SciLexer.exp
│ │ ├── SciLexer.lib
│ │ └── version.txt
│ │ └── x86
│ │ ├── License.txt
│ │ ├── SciLexer.dll
│ │ ├── SciLexer.dll.gz
│ │ ├── SciLexer.exp
│ │ ├── SciLexer.lib
│ │ └── version.txt
├── GlobalSuppressions.cs
├── Icon7.ico
├── Licenses
│ └── 3rd party notice.txt
├── Office365APIEditor.csproj
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ ├── Settings.settings
│ └── app.manifest
├── Resources
│ └── DefaultIcon.ico
├── RunHistory.cs
├── RunInformation.cs
├── SampleRequest
│ ├── MicrosoftGraphBeta.json
│ ├── MicrosoftGraphV1.0.json
│ ├── Office365ManagementAPI.json
│ ├── README.md
│ └── SampleRequest.cs
├── Settings.cs
├── Settings
│ ├── AccessTokenWizardAppContainer.cs
│ ├── AccessTokenWizardAppContainerConverter.cs
│ ├── AccessTokenWizardAppSetting.cs
│ ├── AccessTokenWizardAppSettingCollection.cs
│ └── AppSettingType.cs
├── StagingMSI
│ └── Setup.msi
├── TokenResponse.cs
├── UI
│ ├── AccessTokenWizard.Designer.cs
│ ├── AccessTokenWizard.cs
│ ├── AccessTokenWizard.resx
│ ├── AccessTokenWizard
│ │ ├── AccessTokenWizardForm.Designer.cs
│ │ ├── AccessTokenWizardForm.cs
│ │ ├── AccessTokenWizardForm.resx
│ │ ├── BuiltInAppOrBasicAuthSelectionPage.Designer.cs
│ │ ├── BuiltInAppOrBasicAuthSelectionPage.cs
│ │ ├── BuiltInAppOrBasicAuthSelectionPage.resx
│ │ ├── BuiltInAppSettingPage.Designer.cs
│ │ ├── BuiltInAppSettingPage.cs
│ │ ├── BuiltInAppSettingPage.resx
│ │ ├── IAccessTokenWizardPage.cs
│ │ ├── PreAcquiredAccessTokenSettingPage.Designer.cs
│ │ ├── PreAcquiredAccessTokenSettingPage.cs
│ │ ├── PreAcquiredAccessTokenSettingPage.resx
│ │ ├── SavedAppSelectorForm.Designer.cs
│ │ ├── SavedAppSelectorForm.cs
│ │ ├── SavedAppSelectorForm.resx
│ │ ├── SharePointOnlineAppOnlySettingPage.Designer.cs
│ │ ├── SharePointOnlineAppOnlySettingPage.cs
│ │ ├── SharePointOnlineAppOnlySettingPage.resx
│ │ ├── V1EndpointAdminConsentSettingPage.Designer.cs
│ │ ├── V1EndpointAdminConsentSettingPage.cs
│ │ ├── V1EndpointAdminConsentSettingPage.resx
│ │ ├── V1EndpointAppOnlyByCertSettingPage.Designer.cs
│ │ ├── V1EndpointAppOnlyByCertSettingPage.cs
│ │ ├── V1EndpointAppOnlyByCertSettingPage.resx
│ │ ├── V1EndpointAppOnlyByKeySettingPage.Designer.cs
│ │ ├── V1EndpointAppOnlyByKeySettingPage.cs
│ │ ├── V1EndpointAppOnlyByKeySettingPage.resx
│ │ ├── V1EndpointAppSelectionPage.Designer.cs
│ │ ├── V1EndpointAppSelectionPage.cs
│ │ ├── V1EndpointAppSelectionPage.resx
│ │ ├── V1EndpointNativeAppSettingPage.Designer.cs
│ │ ├── V1EndpointNativeAppSettingPage.cs
│ │ ├── V1EndpointNativeAppSettingPage.resx
│ │ ├── V1EndpointWebAppSettingPage.Designer.cs
│ │ ├── V1EndpointWebAppSettingPage.cs
│ │ ├── V1EndpointWebAppSettingPage.resx
│ │ ├── V2EndpointAdminConsentSettingPage.Designer.cs
│ │ ├── V2EndpointAdminConsentSettingPage.cs
│ │ ├── V2EndpointAdminConsentSettingPage.resx
│ │ ├── V2EndpointAppOnlyByCertSettingPage.Designer.cs
│ │ ├── V2EndpointAppOnlyByCertSettingPage.cs
│ │ ├── V2EndpointAppOnlyByCertSettingPage.resx
│ │ ├── V2EndpointAppOnlyByKeySettingPage.Designer.cs
│ │ ├── V2EndpointAppOnlyByKeySettingPage.cs
│ │ ├── V2EndpointAppOnlyByKeySettingPage.resx
│ │ ├── V2EndpointAppSelectionPage.Designer.cs
│ │ ├── V2EndpointAppSelectionPage.cs
│ │ ├── V2EndpointAppSelectionPage.resx
│ │ ├── V2EndpointNativeAppSettingPage.Designer.cs
│ │ ├── V2EndpointNativeAppSettingPage.cs
│ │ ├── V2EndpointNativeAppSettingPage.resx
│ │ ├── V2EndpointWebAppSettingPage.Designer.cs
│ │ ├── V2EndpointWebAppSettingPage.cs
│ │ ├── V2EndpointWebAppSettingPage.resx
│ │ ├── WelcomePage.Designer.cs
│ │ ├── WelcomePage.cs
│ │ └── WelcomePage.resx
│ ├── AcquireViewerTokenForm.Designer.cs
│ ├── AcquireViewerTokenForm.cs
│ ├── AcquireViewerTokenForm.resx
│ ├── AttachmentViewerForm.Designer.cs
│ ├── AttachmentViewerForm.cs
│ ├── AttachmentViewerForm.resx
│ ├── CalendarViewForm.Designer.cs
│ ├── CalendarViewForm.cs
│ ├── CalendarViewForm.resx
│ ├── CheckUpdateForm.Designer.cs
│ ├── CheckUpdateForm.cs
│ ├── CheckUpdateForm.resx
│ ├── CreateEventForm.Designer.cs
│ ├── CreateEventForm.cs
│ ├── CreateEventForm.resx
│ ├── DetailedTokenViewer.Designer.cs
│ ├── DetailedTokenViewer.cs
│ ├── DetailedTokenViewer.resx
│ ├── ErrorForm.Designer.cs
│ ├── ErrorForm.cs
│ ├── ErrorForm.resx
│ ├── FocusedInbox
│ │ ├── FocusedInboxOverrideForm.Designer.cs
│ │ ├── FocusedInboxOverrideForm.cs
│ │ ├── FocusedInboxOverrideForm.resx
│ │ ├── NewFocusedInboxOverrideForm.Designer.cs
│ │ ├── NewFocusedInboxOverrideForm.cs
│ │ └── NewFocusedInboxOverrideForm.resx
│ ├── FolderViewerForm.Designer.cs
│ ├── FolderViewerForm.cs
│ ├── FolderViewerForm.resx
│ ├── GetCodeForm.Designer.cs
│ ├── GetCodeForm.cs
│ ├── GetCodeForm.resx
│ ├── MailboxViewerForm.Designer.cs
│ ├── MailboxViewerForm.cs
│ ├── MailboxViewerForm.resx
│ ├── NewAttachmentForm.Designer.cs
│ ├── NewAttachmentForm.cs
│ ├── NewAttachmentForm.resx
│ ├── PropertyViewerForm.Designer.cs
│ ├── PropertyViewerForm.cs
│ ├── PropertyViewerForm.resx
│ ├── RequestForm.Designer.cs
│ ├── RequestForm.cs
│ ├── RequestForm.resx
│ ├── RequestFormOptionForm.Designer.cs
│ ├── RequestFormOptionForm.cs
│ ├── RequestFormOptionForm.resx
│ ├── ScopeEditorForm.Designer.cs
│ ├── ScopeEditorForm.cs
│ ├── ScopeEditorForm.resx
│ ├── SendMailForm.Designer.cs
│ ├── SendMailForm.cs
│ ├── SendMailForm.resx
│ ├── TokenViewer.Designer.cs
│ ├── TokenViewer.cs
│ ├── TokenViewer.resx
│ ├── VersionInformationForm.Designer.cs
│ ├── VersionInformationForm.cs
│ └── VersionInformationForm.resx
├── Util.cs
├── ViewerHelper
│ ├── Data
│ │ ├── AttachmentAPI
│ │ │ ├── AttachmentBase.cs
│ │ │ ├── AttachmentType.cs
│ │ │ └── FileAttachment.cs
│ │ ├── Attendee.cs
│ │ ├── CalendarAPI
│ │ │ ├── Calendar.cs
│ │ │ ├── CalendarGroup.cs
│ │ │ ├── Event.cs
│ │ │ ├── Location.cs
│ │ │ ├── NewEvent.cs
│ │ │ └── PatternedRecurrence.cs
│ │ ├── ContactsAPI
│ │ │ ├── Contact.cs
│ │ │ └── ContactFolder.cs
│ │ ├── DateTimeAndTimeZone.cs
│ │ ├── EmailAddress.cs
│ │ ├── ItemBody.cs
│ │ ├── MailAPI
│ │ │ ├── FocusedInboxOverride.cs
│ │ │ ├── MailFolder.cs
│ │ │ ├── Message.cs
│ │ │ └── NewEmailMessage.cs
│ │ ├── MicrosoftGraphBaseObject.cs
│ │ ├── PagedResponse.cs
│ │ ├── Recipient.cs
│ │ ├── ResponseStatus.cs
│ │ └── ToDoAPI
│ │ │ ├── ToDoTask.cs
│ │ │ └── ToDoTaskList.cs
│ ├── Global.cs
│ ├── Partial
│ │ ├── AttachmentRelated.cs
│ │ ├── CalendarRelated.cs
│ │ ├── ContactRelated.cs
│ │ ├── MailRelated.cs
│ │ └── ToDoRelated.cs
│ └── ViewerRequestHelper.cs
├── icon6.ico
├── image.ico
└── packages.config
├── PublishSite
├── Controllers
│ └── HomeController.cs
├── PreBuild.ps1
├── Preview
│ ├── index.html
│ └── script.js
├── Program.cs
├── Properties
│ ├── ServiceDependencies
│ │ └── Office365APIEditor - Web Deploy
│ │ │ └── profile.arm.json
│ └── launchSettings.json
├── PublishSite.csproj
├── Startup.cs
└── Views
│ └── Home
│ └── Index.cshtml
├── README.md
├── SECURITY.md
├── Setup
└── Setup.vdproj
├── azure-pipelines.yml
└── tutorials
├── Acquire_new_access_token_for_Editor_Mode.md
├── How_to_register_a_V1_Native_application.md
├── How_to_register_a_V1_Web_application.md
├── How_to_register_a_V1_Web_application_for_App_Only_Token.md
├── How_to_register_a_V1_Web_application_for_App_Only_Token_Key_Auth.md
├── How_to_register_a_V2_Native_application.md
├── How_to_register_a_V2_Web_application.md
├── How_to_register_a_V2_Web_application_for_App_Only_Token_Cert_Auth.md
├── How_to_register_a_V2_Web_application_for_App_Only_Token_Key_Auth.md
├── How_to_register_a_Web_application_for_SharePoint_Online_App-Only_Token.md
└── Start_new_Mailbox_Viewer_Session.md
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | We're not ready to accept contributions at this time, but if you have any feedback, please post to the Issues list. Thanks!
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Office365APIEditor.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.572
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Office365APIEditor", "Office365APIEditor\Office365APIEditor.csproj", "{4E1EBFF7-7113-4B41-8B42-BCC7B12A467D}"
7 | EndProject
8 | Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "Setup", "Setup\Setup.vdproj", "{55B2F04A-B5B1-4DD3-9149-D10750198019}"
9 | EndProject
10 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PublishSite", "PublishSite\PublishSite.csproj", "{7D59CBD1-778D-4EBF-8A9D-B7C55CEA32FD}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Release|Any CPU = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {4E1EBFF7-7113-4B41-8B42-BCC7B12A467D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {4E1EBFF7-7113-4B41-8B42-BCC7B12A467D}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {4E1EBFF7-7113-4B41-8B42-BCC7B12A467D}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {4E1EBFF7-7113-4B41-8B42-BCC7B12A467D}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {55B2F04A-B5B1-4DD3-9149-D10750198019}.Debug|Any CPU.ActiveCfg = Debug
23 | {55B2F04A-B5B1-4DD3-9149-D10750198019}.Release|Any CPU.ActiveCfg = Release
24 | {7D59CBD1-778D-4EBF-8A9D-B7C55CEA32FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25 | {7D59CBD1-778D-4EBF-8A9D-B7C55CEA32FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
26 | {7D59CBD1-778D-4EBF-8A9D-B7C55CEA32FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
27 | {7D59CBD1-778D-4EBF-8A9D-B7C55CEA32FD}.Release|Any CPU.Build.0 = Release|Any CPU
28 | EndGlobalSection
29 | GlobalSection(SolutionProperties) = preSolution
30 | HideSolutionNode = FALSE
31 | EndGlobalSection
32 | GlobalSection(ExtensibilityGlobals) = postSolution
33 | SolutionGuid = {93F59BA9-575B-4D3E-8A90-8A0CDF398573}
34 | EndGlobalSection
35 | EndGlobal
36 |
--------------------------------------------------------------------------------
/Office365APIEditor/ClientInformation.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft. All rights reserved.
2 | // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
3 |
4 | namespace Office365APIEditor
5 | {
6 | public class ClientInformation
7 | {
8 | public TokenResponse Token { get; private set; }
9 | public AuthEndpoints AuthType { get; private set; }
10 | public Resources Resource { get; private set; }
11 | public string ClientID { get; private set; }
12 | public string ClientSecret { get; private set; }
13 | public string Scopes { get; private set; }
14 | public string RedirectUri { get; private set; }
15 | public string TenantName { get; private set; }
16 |
17 | public ClientInformation(TokenResponse token, AuthEndpoints authType, Resources resource, string clientID, string clientSecret, string scopes, string redirectUri, string tenantName = "common")
18 | {
19 | Token = token;
20 | AuthType = authType;
21 | Resource = resource;
22 | ClientID = clientID;
23 | ClientSecret = clientSecret;
24 | Scopes = scopes;
25 | RedirectUri = redirectUri;
26 | TenantName = tenantName;
27 | }
28 |
29 | public string ResourceUri
30 | {
31 | get
32 | {
33 | return Util.ConvertResourceEnumToUri(Resource);
34 | }
35 | }
36 |
37 | public void ReplaceToken(TokenResponse newToken)
38 | {
39 | if (newToken.access_token == null && newToken.id_token != null)
40 | {
41 | // Using OpenID Connect
42 | newToken.access_token = newToken.id_token;
43 | }
44 |
45 | Token = newToken;
46 | }
47 | }
48 |
49 | public enum AuthEndpoints
50 | {
51 | Basic,
52 | OAuthV1,
53 | OAuthV2,
54 | PreAcquired
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET FindReplaceDialog/CharacterRange.cs:
--------------------------------------------------------------------------------
1 | // Copyright(c) 2017 Steve Towner
2 | // Licensed under the MIT license.
3 | // https://github.com/Stumpii/ScintillaNET-FindReplaceDialog/blob/master/LICENSE
4 |
5 | #region Using Directives
6 |
7 | using System;
8 | using System.Runtime.InteropServices;
9 |
10 | #endregion Using Directives
11 |
12 |
13 | namespace ScintillaNET_FindReplaceDialog
14 | {
15 | ///
16 | /// Specifies a range of characters. If the cpMin and cpMax members are equal, the range is empty.
17 | /// The range includes everything if cpMin is 0 and cpMax is –1.
18 | ///
19 | [StructLayout(LayoutKind.Sequential)]
20 | public struct CharacterRange
21 | {
22 | ///
23 | /// Character position index immediately preceding the first character in the range.
24 | ///
25 | public int cpMin;
26 | ///
27 | /// Character position immediately following the last character in the range.
28 | ///
29 | public int cpMax;
30 |
31 | ///
32 | /// Specifies a range of characters. If the cpMin and cpMax members are equal, the range is empty.
33 | /// The range includes everything if cpMin is 0 and cpMax is –1.
34 | ///
35 | /// The minimum, or start position.
36 | /// The maximum, or end position.
37 | public CharacterRange(int Min, int Max)
38 | {
39 | this.cpMin = Min;
40 | this.cpMax = Max;
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET FindReplaceDialog/FindAllResults/FindAllResultsPanel.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace ScintillaNET_FindReplaceDialog.FindAllResults
2 | {
3 | partial class FindAllResultsPanel
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Component Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.FindResultsScintilla = new ScintillaNET.Scintilla();
32 | this.SuspendLayout();
33 | //
34 | // FindResultsScintilla
35 | //
36 | this.FindResultsScintilla.Dock = System.Windows.Forms.DockStyle.Fill;
37 | this.FindResultsScintilla.Location = new System.Drawing.Point(0, 0);
38 | this.FindResultsScintilla.Name = "FindResultsScintilla";
39 | this.FindResultsScintilla.ScrollWidth = 5001;
40 | this.FindResultsScintilla.Size = new System.Drawing.Size(556, 220);
41 | this.FindResultsScintilla.TabIndex = 4;
42 | this.FindResultsScintilla.Text = "FindResultsScintilla";
43 | this.FindResultsScintilla.UseTabs = false;
44 | this.FindResultsScintilla.KeyUp += new System.Windows.Forms.KeyEventHandler(this.FindResultsScintilla_KeyUp);
45 | this.FindResultsScintilla.MouseClick += new System.Windows.Forms.MouseEventHandler(this.FindResultsScintilla_MouseClick);
46 | this.FindResultsScintilla.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.FindResultsScintilla_MouseDoubleClick);
47 | //
48 | // FindAllResultsPanel
49 | //
50 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
51 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
52 | this.Controls.Add(this.FindResultsScintilla);
53 | this.Name = "FindAllResultsPanel";
54 | this.Size = new System.Drawing.Size(556, 220);
55 | this.ResumeLayout(false);
56 |
57 | }
58 |
59 | #endregion
60 |
61 | private ScintillaNET.Scintilla FindResultsScintilla;
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET FindReplaceDialog/FindReplace/FindOption.cs:
--------------------------------------------------------------------------------
1 | // Copyright(c) 2017 Steve Towner
2 | // Licensed under the MIT license.
3 | // https://github.com/Stumpii/ScintillaNET-FindReplaceDialog/blob/master/LICENSE
4 |
5 | #region Using Directives
6 |
7 | using System;
8 |
9 | #endregion Using Directives
10 |
11 |
12 | namespace ScintillaNET_FindReplaceDialog
13 | {
14 | ///
15 | /// Controls find behavior for non-regular expression searches
16 | ///
17 | public enum FindOption
18 | {
19 | ///
20 | /// Find must match the whole word
21 | ///
22 | WholeWord = 2,
23 |
24 | ///
25 | /// Find must match the case of the expression
26 | ///
27 | MatchCase = 4,
28 |
29 | ///
30 | /// Only match the _start of a word
31 | ///
32 | WordStart = 0x00100000,
33 |
34 | ///
35 | /// Not used in ScintillaNET
36 | ///
37 | RegularExpression = 0x00200000,
38 |
39 | ///
40 | /// Not used in ScintillaNET
41 | ///
42 | Posix = 0x00400000,
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET FindReplaceDialog/FindReplace/ToolStripIncrementalSearcher.cs:
--------------------------------------------------------------------------------
1 | // Copyright(c) 2017 Steve Towner
2 | // Licensed under the MIT license.
3 | // https://github.com/Stumpii/ScintillaNET-FindReplaceDialog/blob/master/LICENSE
4 |
5 | #region Using Directives
6 |
7 | using ScintillaNET;
8 | using ScintillaNET_FindReplaceDialog;
9 | using System;
10 | using System.Windows.Forms;
11 |
12 | #endregion Using Directives
13 |
14 |
15 | namespace ScintillaNET_FindReplaceDialog
16 | {
17 | public class ToolStripIncrementalSearcher : ToolStripControlHost
18 | {
19 | #region Properties
20 |
21 | public Scintilla Scintilla
22 | {
23 | get { return Searcher.Scintilla; }
24 | set { Searcher.Scintilla = value; }
25 | }
26 |
27 |
28 | public IncrementalSearcher Searcher
29 | {
30 | get { return Control as IncrementalSearcher; }
31 | }
32 |
33 | #endregion Properties
34 |
35 |
36 | #region Constructors
37 |
38 | public ToolStripIncrementalSearcher() : base(new IncrementalSearcher(true))
39 | {
40 | }
41 |
42 | #endregion Constructors
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET FindReplaceDialog/GoTo/GoTo.cs:
--------------------------------------------------------------------------------
1 | // Copyright(c) 2017 Steve Towner
2 | // Licensed under the MIT license.
3 | // https://github.com/Stumpii/ScintillaNET-FindReplaceDialog/blob/master/LICENSE
4 |
5 | #region Using Directives
6 |
7 | using ScintillaNET;
8 | using System;
9 | using System.Windows.Forms;
10 |
11 | #endregion Using Directives
12 |
13 | namespace ScintillaNET_FindReplaceDialog
14 | {
15 | public class GoTo
16 | {
17 | private Scintilla _scintilla;
18 | private GoToDialog _window;
19 |
20 | #region Methods
21 |
22 | public void Line(int number)
23 | {
24 | _scintilla.Lines[number].Goto();
25 | }
26 |
27 | public void Position(int pos)
28 | {
29 | _scintilla.GotoPosition(pos);
30 | }
31 |
32 | public void ShowGoToDialog()
33 | {
34 | //GoToDialog gd = new GoToDialog();
35 | GoToDialog gd = _window;
36 |
37 | gd.CurrentLineNumber = _scintilla.CurrentLine;
38 | gd.MaximumLineNumber = _scintilla.Lines.Count;
39 | gd.Scintilla = _scintilla;
40 |
41 | if (!_window.Visible)
42 | _window.Show(_scintilla.FindForm());
43 |
44 | //_window.ShowDialog(_scintilla.FindForm());
45 | //_window.Show(_scintilla.FindForm());
46 |
47 | //if (gd.ShowDialog() == DialogResult.OK)
48 | //Line(gd.GotoLineNumber);
49 |
50 | //gd.ShowDialog();
51 | //gd.Show();
52 |
53 | _scintilla.Focus();
54 | }
55 |
56 | #endregion Methods
57 |
58 | #region Constructors
59 |
60 | protected virtual GoToDialog CreateWindowInstance()
61 | {
62 | return new GoToDialog();
63 | }
64 |
65 | public GoTo(Scintilla scintilla)
66 | {
67 | _scintilla = scintilla;
68 | _window = CreateWindowInstance();
69 | _window.Scintilla = scintilla;
70 | }
71 |
72 | #endregion Constructors
73 | }
74 | }
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/Clock.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Office365APIEditor/41f588ea6cc2e5a50ea9462f8aa85a059766c8a2/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/Clock.ico
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/Clock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Office365APIEditor/41f588ea6cc2e5a50ea9462f8aa85a059766c8a2/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/Clock.png
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/DeleteHS.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Office365APIEditor/41f588ea6cc2e5a50ea9462f8aa85a059766c8a2/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/DeleteHS.png
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/GoToNextMessage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Office365APIEditor/41f588ea6cc2e5a50ea9462f8aa85a059766c8a2/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/GoToNextMessage.png
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/GoToPreviousMessage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Office365APIEditor/41f588ea6cc2e5a50ea9462f8aa85a059766c8a2/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/GoToPreviousMessage.png
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/LineColorHS.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Office365APIEditor/41f588ea6cc2e5a50ea9462f8aa85a059766c8a2/Office365APIEditor/External/ScintillaNET FindReplaceDialog/Resources/LineColorHS.png
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/Annotation.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Visibility and location of annotations in a control
15 | ///
16 | public enum Annotation
17 | {
18 | ///
19 | /// Annotations are not displayed. This is the default.
20 | ///
21 | Hidden = NativeMethods.ANNOTATION_HIDDEN,
22 |
23 | ///
24 | /// Annotations are drawn left justified with no adornment.
25 | ///
26 | Standard = NativeMethods.ANNOTATION_STANDARD,
27 |
28 | ///
29 | /// Annotations are indented to match the text and are surrounded by a box.
30 | ///
31 | Boxed = NativeMethods.ANNOTATION_BOXED,
32 |
33 | ///
34 | /// Annotations are indented to match the text.
35 | ///
36 | Indented = NativeMethods.ANNOTATION_INDENTED
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/AutomaticFold.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Configuration options for automatic code folding.
15 | ///
16 | /// This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
17 | [Flags]
18 | public enum AutomaticFold
19 | {
20 | ///
21 | /// Automatic folding is disabled. This is the default.
22 | ///
23 | None = 0,
24 |
25 | ///
26 | /// Automatically show lines as needed. The event is not raised when this value is used.
27 | ///
28 | Show = NativeMethods.SC_AUTOMATICFOLD_SHOW,
29 |
30 | ///
31 | /// Handle clicks in fold margin automatically. The event is not raised for folding margins when this value is used.
32 | ///
33 | Click = NativeMethods.SC_AUTOMATICFOLD_CLICK,
34 |
35 | ///
36 | /// Show lines as needed when the fold structure is changed.
37 | ///
38 | Change = NativeMethods.SC_AUTOMATICFOLD_CHANGE
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/CaretStyle.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// The caret visual style.
15 | ///
16 | public enum CaretStyle
17 | {
18 | ///
19 | /// The caret is not displayed.
20 | ///
21 | Invisible = NativeMethods.CARETSTYLE_INVISIBLE,
22 |
23 | ///
24 | /// The caret is drawn as a vertical line.
25 | ///
26 | Line = NativeMethods.CARETSTYLE_LINE,
27 |
28 | ///
29 | /// The caret is drawn as a block.
30 | ///
31 | Block = NativeMethods.CARETSTYLE_BLOCK
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/ChangeAnnotationEventArgs.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Provides data for the event.
15 | ///
16 | public class ChangeAnnotationEventArgs : EventArgs
17 | {
18 | ///
19 | /// Gets the line index where the annotation changed.
20 | ///
21 | /// The zero-based line index where the annotation change occurred.
22 | public int Line { get; private set; }
23 |
24 | ///
25 | /// Initializes a new instance of the class.
26 | ///
27 | /// The zero-based line index of the annotation that changed.
28 | public ChangeAnnotationEventArgs(int line)
29 | {
30 | Line = line;
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/CharAddedEventArgs.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Provides data for the event.
15 | ///
16 | public class CharAddedEventArgs : EventArgs
17 | {
18 | ///
19 | /// Gets the text character added to a control.
20 | ///
21 | /// The character added.
22 | public int Char { get; private set; }
23 |
24 | ///
25 | /// Initializes a new instance of the class.
26 | ///
27 | /// The character added.
28 | public CharAddedEventArgs(int ch)
29 | {
30 | Char = ch;
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/CopyFormat.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Specifies the clipboard formats to copy.
15 | ///
16 | [Flags]
17 | public enum CopyFormat
18 | {
19 | ///
20 | /// Copies text to the clipboard in Unicode format.
21 | ///
22 | Text = 1 << 0,
23 |
24 | ///
25 | /// Copies text to the clipboard in Rich Text Format (RTF).
26 | ///
27 | Rtf = 1 << 1,
28 |
29 | ///
30 | /// Copies text to the clipboard in HyperText Markup Language (HTML) format.
31 | ///
32 | Html = 1 << 2
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/Document.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// A document.
15 | ///
16 | ///
17 | /// This is an opaque type, meaning it can be used by a control but
18 | /// otherwise has no public members of its own.
19 | ///
20 | public struct Document
21 | {
22 | internal IntPtr Value;
23 |
24 | ///
25 | /// A read-only field that represents an uninitialized document.
26 | ///
27 | public static readonly Document Empty;
28 |
29 | ///
30 | /// Returns a value indicating whether this instance is equal to a specified object.
31 | ///
32 | /// An object to compare with this instance or null.
33 | /// true if is an instance of and equals the value of this instance; otherwise, false.
34 | public override bool Equals(object obj)
35 | {
36 | return (obj is IntPtr) && Value == ((Document)obj).Value;
37 | }
38 |
39 | ///
40 | /// Returns the hash code for this instance.
41 | ///
42 | /// A 32-bit signed integer hash code.
43 | public override int GetHashCode()
44 | {
45 | return Value.GetHashCode();
46 | }
47 |
48 | ///
49 | /// Determines whether two specified instances of are equal.
50 | ///
51 | /// The first document to compare.
52 | /// The second document to compare.
53 | /// true if equals ; otherwise, false.
54 | public static bool operator ==(Document a, Document b)
55 | {
56 | return a.Value == b.Value;
57 | }
58 |
59 | ///
60 | /// Determines whether two specified instances of are not equal.
61 | ///
62 | /// The first document to compare.
63 | /// The second document to compare.
64 | /// true if does not equal ; otherwise, false.
65 | public static bool operator !=(Document a, Document b)
66 | {
67 | return a.Value != b.Value;
68 | }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/DoubleClickEventArgs.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 | using System.Windows.Forms;
11 |
12 | namespace ScintillaNET
13 | {
14 | ///
15 | /// Provides data for the event.
16 | ///
17 | public class DoubleClickEventArgs : EventArgs
18 | {
19 | private readonly Scintilla scintilla;
20 | private readonly int bytePosition;
21 | private int? position;
22 |
23 | ///
24 | /// Gets the line double clicked.
25 | ///
26 | /// The zero-based index of the double clicked line.
27 | public int Line { get; private set; }
28 |
29 | ///
30 | /// Gets the modifier keys (SHIFT, CTRL, ALT) held down when double clicked.
31 | ///
32 | /// A bitwise combination of the Keys enumeration indicating the modifier keys.
33 | public Keys Modifiers { get; private set; }
34 |
35 | ///
36 | /// Gets the zero-based document position of the text double clicked.
37 | ///
38 | ///
39 | /// The zero-based character position within the document of the double clicked text;
40 | /// otherwise, -1 if not a document position.
41 | ///
42 | public int Position
43 | {
44 | get
45 | {
46 | if (position == null)
47 | position = scintilla.Lines.ByteToCharPosition(bytePosition);
48 |
49 | return (int)position;
50 | }
51 | }
52 |
53 | ///
54 | /// Initializes a new instance of the class.
55 | ///
56 | /// The control that generated this event.
57 | /// The modifier keys that where held down at the time of the double click.
58 | /// The zero-based byte position of the double clicked text.
59 | /// The zero-based line index of the double clicked text.
60 | public DoubleClickEventArgs(Scintilla scintilla, Keys modifiers, int bytePosition, int line)
61 | {
62 | this.scintilla = scintilla;
63 | this.bytePosition = bytePosition;
64 | Modifiers = modifiers;
65 | Line = line;
66 |
67 | if (bytePosition == -1)
68 | position = -1;
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/DwellEventArgs.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Provides data for the and events.
15 | ///
16 | public class DwellEventArgs : EventArgs
17 | {
18 | private readonly Scintilla scintilla;
19 | private readonly int bytePosition;
20 | private int? position;
21 |
22 | ///
23 | /// Gets the zero-based document position where the mouse pointer was lingering.
24 | ///
25 | /// The nearest zero-based document position to where the mouse pointer was lingering.
26 | public int Position
27 | {
28 | get
29 | {
30 | if (position == null)
31 | position = scintilla.Lines.ByteToCharPosition(bytePosition);
32 |
33 | return (int)position;
34 | }
35 | }
36 |
37 | ///
38 | /// Gets the x-coordinate of the mouse pointer.
39 | ///
40 | /// The x-coordinate of the mouse pointer relative to the control.
41 | public int X { get; private set; }
42 |
43 | ///
44 | /// Gets the y-coordinate of the mouse pointer.
45 | ///
46 | /// The y-coordinate of the mouse pointer relative to the control.
47 | public int Y { get; private set; }
48 |
49 | ///
50 | /// Initializes a new instance of the class.
51 | ///
52 | /// The control that generated this event.
53 | /// The zero-based byte position within the document where the mouse pointer was lingering.
54 | /// The x-coordinate of the mouse pointer relative to the control.
55 | /// The y-coordinate of the mouse pointer relative to the control.
56 | public DwellEventArgs(Scintilla scintilla, int bytePosition, int x, int y)
57 | {
58 | this.scintilla = scintilla;
59 | this.bytePosition = bytePosition;
60 | X = x;
61 | Y = y;
62 |
63 | // The position is not over text
64 | if (bytePosition < 0)
65 | position = bytePosition;
66 | }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/EdgeMode.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// The long line edge display mode.
15 | ///
16 | public enum EdgeMode
17 | {
18 | ///
19 | /// Long lines are not indicated. This is the default.
20 | ///
21 | None = NativeMethods.EDGE_NONE,
22 |
23 | ///
24 | /// Long lines are indicated with a vertical line.
25 | ///
26 | Line = NativeMethods.EDGE_LINE,
27 |
28 | ///
29 | /// Long lines are indicated with a background color.
30 | ///
31 | Background = NativeMethods.EDGE_BACKGROUND,
32 |
33 | ///
34 | /// Similar to except allows for multiple vertical lines to be visible using the method.
35 | ///
36 | /// and are completely independant of this mode.
37 | MultiLine = NativeMethods.EDGE_MULTILINE
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/Eol.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// End-of-line format.
15 | ///
16 | public enum Eol
17 | {
18 | ///
19 | /// Carriage Return, Line Feed pair "\r\n" (0x0D0A).
20 | ///
21 | CrLf = NativeMethods.SC_EOL_CRLF,
22 |
23 | ///
24 | /// Carriage Return '\r' (0x0D).
25 | ///
26 | Cr = NativeMethods.SC_EOL_CR,
27 |
28 | ///
29 | /// Line Feed '\n' (0x0A).
30 | ///
31 | Lf = NativeMethods.SC_EOL_LF
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/FoldAction.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Fold actions.
15 | ///
16 | public enum FoldAction
17 | {
18 | ///
19 | /// Contract the fold.
20 | ///
21 | Contract = NativeMethods.SC_FOLDACTION_CONTRACT,
22 |
23 | ///
24 | /// Expand the fold.
25 | ///
26 | Expand = NativeMethods.SC_FOLDACTION_EXPAND,
27 |
28 | ///
29 | /// Toggle between contracted and expanded.
30 | ///
31 | Toggle = NativeMethods.SC_FOLDACTION_TOGGLE
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/FoldDisplayText.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Display options for fold text tags.
15 | ///
16 | public enum FoldDisplayText
17 | {
18 | ///
19 | /// Do not display the text tags. This is the default.
20 | ///
21 | Hidden = NativeMethods.SC_FOLDDISPLAYTEXT_HIDDEN,
22 |
23 | ///
24 | /// Display the text tags.
25 | ///
26 | Standard = NativeMethods.SC_FOLDDISPLAYTEXT_STANDARD,
27 |
28 | ///
29 | /// Display the text tags with a box drawn around them.
30 | ///
31 | Boxed = NativeMethods.SC_FOLDDISPLAYTEXT_BOXED
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/FoldFlags.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Additional display options for folds.
15 | ///
16 | [Flags]
17 | public enum FoldFlags
18 | {
19 | ///
20 | /// A line is drawn above if expanded.
21 | ///
22 | LineBeforeExpanded = NativeMethods.SC_FOLDFLAG_LINEBEFORE_EXPANDED,
23 |
24 | ///
25 | /// A line is drawn above if not expanded.
26 | ///
27 | LineBeforeContracted = NativeMethods.SC_FOLDFLAG_LINEBEFORE_CONTRACTED,
28 |
29 | ///
30 | /// A line is drawn below if expanded.
31 | ///
32 | LineAfterExpanded = NativeMethods.SC_FOLDFLAG_LINEAFTER_EXPANDED,
33 |
34 | ///
35 | /// A line is drawn below if not expanded.
36 | ///
37 | LineAfterContracted = NativeMethods.SC_FOLDFLAG_LINEAFTER_CONTRACTED,
38 |
39 | ///
40 | /// Displays the hexadecimal fold levels in the margin to aid with debugging.
41 | /// This feature may change in the future.
42 | ///
43 | LevelNumbers = NativeMethods.SC_FOLDFLAG_LEVELNUMBERS,
44 |
45 | ///
46 | /// Displays the hexadecimal line state in the margin to aid with debugging. This flag
47 | /// cannot be used at the same time as the flag.
48 | ///
49 | LineState = NativeMethods.SC_FOLDFLAG_LINESTATE
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/FoldLevelFlags.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Flags for additional line fold level behavior.
15 | ///
16 | [Flags]
17 | public enum FoldLevelFlags
18 | {
19 | ///
20 | /// Indicates that the line is blank and should be treated slightly different than its level may indicate;
21 | /// otherwise, blank lines should generally not be fold points.
22 | ///
23 | White = NativeMethods.SC_FOLDLEVELWHITEFLAG,
24 |
25 | ///
26 | /// Indicates that the line is a header (fold point).
27 | ///
28 | Header = NativeMethods.SC_FOLDLEVELHEADERFLAG
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/FontQuality.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// The font quality (antialiasing method) used to render text.
15 | ///
16 | public enum FontQuality
17 | {
18 | ///
19 | /// Specifies that the character quality of the font does not matter; so the lowest quality can be used.
20 | /// This is the default.
21 | ///
22 | Default = NativeMethods.SC_EFF_QUALITY_DEFAULT,
23 |
24 | ///
25 | /// Specifies that anti-aliasing should not be used when rendering text.
26 | ///
27 | NonAntiAliased = NativeMethods.SC_EFF_QUALITY_NON_ANTIALIASED,
28 |
29 | ///
30 | /// Specifies that anti-aliasing should be used when rendering text, if the font supports it.
31 | ///
32 | AntiAliased = NativeMethods.SC_EFF_QUALITY_ANTIALIASED,
33 |
34 | ///
35 | /// Specifies that ClearType anti-aliasing should be used when rendering text, if the font supports it.
36 | ///
37 | LcdOptimized = NativeMethods.SC_EFF_QUALITY_LCD_OPTIMIZED
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/HotspotClickEventArgs.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 | using System.Windows.Forms;
11 |
12 | namespace ScintillaNET
13 | {
14 | ///
15 | /// Provides data for the , ,
16 | /// and events.
17 | ///
18 | public class HotspotClickEventArgs : EventArgs
19 | {
20 | private readonly Scintilla scintilla;
21 | private readonly int bytePosition;
22 | private int? position;
23 |
24 | ///
25 | /// Gets the modifier keys (SHIFT, CTRL, ALT) held down when clicked.
26 | ///
27 | /// A bitwise combination of the Keys enumeration indicating the modifier keys.
28 | /// Only the state of the CTRL key is reported in the event.
29 | public Keys Modifiers { get; private set; }
30 |
31 | ///
32 | /// Gets the zero-based document position of the text clicked.
33 | ///
34 | /// The zero-based character position within the document of the clicked text.
35 | public int Position
36 | {
37 | get
38 | {
39 | if (position == null)
40 | position = scintilla.Lines.ByteToCharPosition(bytePosition);
41 |
42 | return (int)position;
43 | }
44 | }
45 |
46 | ///
47 | /// Initializes a new instance of the class.
48 | ///
49 | /// The control that generated this event.
50 | /// The modifier keys that where held down at the time of the click.
51 | /// The zero-based byte position of the clicked text.
52 | public HotspotClickEventArgs(Scintilla scintilla, Keys modifiers, int bytePosition)
53 | {
54 | this.scintilla = scintilla;
55 | this.bytePosition = bytePosition;
56 | Modifiers = modifiers;
57 | }
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/ILoader.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Provides methods for loading and creating a on a background (non-UI) thread.
15 | ///
16 | ///
17 | /// Internally an maintains a instance with a reference count of 1.
18 | /// You are responsible for ensuring the reference count eventually reaches 0 or memory leaks will occur.
19 | ///
20 | public interface ILoader
21 | {
22 | ///
23 | /// Adds the data specified to the internal document.
24 | ///
25 | /// The character buffer to copy to the new document.
26 | /// The number of characters in to copy.
27 | ///
28 | /// true if the data was added successfully; otherwise, false.
29 | /// A return value of false should be followed by a call to .
30 | ///
31 | bool AddData(char[] data, int length);
32 |
33 | ///
34 | /// Returns the internal document.
35 | ///
36 | /// A containing the added text. The document has a reference count of 1.
37 | Document ConvertToDocument();
38 |
39 | ///
40 | /// Called to release the internal document when an error occurs using or to abandon loading.
41 | ///
42 | ///
43 | /// The internal document reference count.
44 | /// A return value of 0 indicates that the document has been destroyed and all associated memory released.
45 | ///
46 | int Release();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/IdleStyling.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Possible strategies for styling text using application idle time.
15 | ///
16 | ///
17 | public enum IdleStyling
18 | {
19 | ///
20 | /// Syntax styling is performed for all the currently visible text before displaying it.
21 | /// This is the default.
22 | ///
23 | None = NativeMethods.SC_IDLESTYLING_NONE,
24 |
25 | ///
26 | /// A small amount of styling is performed before display and then further styling is performed incrementally in the background as an idle-time task.
27 | /// This can improve initial display/scroll performance, but may result in the text initially appearing uncolored and then, some time later, it is colored.
28 | ///
29 | ToVisible = NativeMethods.SC_IDLESTYLING_TOVISIBLE,
30 |
31 | ///
32 | /// Text after the currently visible portion may be styled as an idle-time task.
33 | /// This will not improve initial display/scroll performance, but may improve subsequent display/scroll performance.
34 | ///
35 | AfterVisible = NativeMethods.SC_IDLESTYLING_AFTERVISIBLE,
36 |
37 | ///
38 | /// Text before and after the current visible text.
39 | /// This is a combination of and .
40 | ///
41 | All = NativeMethods.SC_IDLESTYLING_ALL
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/IndentView.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Options for displaying indentation guides in a control.
15 | ///
16 | /// Indentation guides can be styled using the style.
17 | public enum IndentView
18 | {
19 | ///
20 | /// No indentation guides are shown. This is the default.
21 | ///
22 | None = NativeMethods.SC_IV_NONE,
23 |
24 | ///
25 | /// Indentation guides are shown inside real indentation whitespace.
26 | ///
27 | Real = NativeMethods.SC_IV_REAL,
28 |
29 | ///
30 | /// Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line.
31 | /// If the previous non-empty line was a fold header then indentation guides are shown for one more level of indent than that line.
32 | /// This setting is good for Python.
33 | ///
34 | LookForward = NativeMethods.SC_IV_LOOKFORWARD,
35 |
36 | ///
37 | /// Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line or previous non-empty line whichever is the greater.
38 | /// This setting is good for most languages.
39 | ///
40 | LookBoth = NativeMethods.SC_IV_LOOKBOTH
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/IndicatorClickEventArgs.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 | using System.Windows.Forms;
11 |
12 | namespace ScintillaNET
13 | {
14 | ///
15 | /// Provides data for the event.
16 | ///
17 | public class IndicatorClickEventArgs : IndicatorReleaseEventArgs
18 | {
19 | ///
20 | /// Gets the modifier keys (SHIFT, CTRL, ALT) held down when clicked.
21 | ///
22 | /// A bitwise combination of the Keys enumeration indicating the modifier keys.
23 | public Keys Modifiers { get; private set; }
24 |
25 | ///
26 | /// Initializes a new instance of the class.
27 | ///
28 | /// The control that generated this event.
29 | /// The modifier keys that where held down at the time of the click.
30 | /// The zero-based byte position of the clicked text.
31 | public IndicatorClickEventArgs(Scintilla scintilla, Keys modifiers, int bytePosition) : base(scintilla, bytePosition)
32 | {
33 | Modifiers = modifiers;
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/IndicatorCollection.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections;
8 | using System.Collections.Generic;
9 | using System.ComponentModel;
10 | using System.Linq;
11 | using System.Text;
12 |
13 | namespace ScintillaNET
14 | {
15 | ///
16 | /// An immutable collection of indicators in a control.
17 | ///
18 | public class IndicatorCollection : IEnumerable
19 | {
20 | private readonly Scintilla scintilla;
21 |
22 | ///
23 | /// Provides an enumerator that iterates through the collection.
24 | ///
25 | /// An object that contains all objects within the .
26 | public IEnumerator GetEnumerator()
27 | {
28 | int count = Count;
29 | for (int i = 0; i < count; i++)
30 | yield return this[i];
31 |
32 | yield break;
33 | }
34 |
35 | IEnumerator IEnumerable.GetEnumerator()
36 | {
37 | return this.GetEnumerator();
38 | }
39 |
40 | ///
41 | /// Gets the number of indicators.
42 | ///
43 | /// The number of indicators in the .
44 | [Browsable(false)]
45 | [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
46 | public int Count
47 | {
48 | get
49 | {
50 | return (NativeMethods.INDIC_MAX + 1);
51 | }
52 | }
53 |
54 | ///
55 | /// Gets an object at the specified index.
56 | ///
57 | /// The indicator index.
58 | /// An object representing the indicator at the specified .
59 | ///
60 | /// Indicators 0 through 7 are used by lexers.
61 | /// Indicators 32 through 35 are used for IME.
62 | ///
63 | [Browsable(false)]
64 | [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
65 | public Indicator this[int index]
66 | {
67 | get
68 | {
69 | index = Helpers.Clamp(index, 0, Count - 1);
70 | return new Indicator(scintilla, index);
71 | }
72 | }
73 |
74 | ///
75 | /// Initializes a new instance of the class.
76 | ///
77 | /// The control that created this collection.
78 | public IndicatorCollection(Scintilla scintilla)
79 | {
80 | this.scintilla = scintilla;
81 | }
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/IndicatorFlags.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Flags associated with a .
15 | ///
16 | /// This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
17 | [Flags]
18 | public enum IndicatorFlags
19 | {
20 | ///
21 | /// No flags. This is the default.
22 | ///
23 | None = 0,
24 |
25 | ///
26 | /// When set, will treat an indicator value as a RGB color that has been OR'd with
27 | /// and will use that instead of the value specified in the property. This allows
28 | /// an indicator to display more than one color.
29 | ///
30 | ValueFore = NativeMethods.SC_INDICFLAG_VALUEFORE
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/IndicatorReleaseEventArgs.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 | using System.Windows.Forms;
11 |
12 | namespace ScintillaNET
13 | {
14 | ///
15 | /// Provides data for the event.
16 | ///
17 | public class IndicatorReleaseEventArgs : EventArgs
18 | {
19 | private readonly Scintilla scintilla;
20 | private readonly int bytePosition;
21 | private int? position;
22 |
23 | ///
24 | /// Gets the zero-based document position of the text clicked.
25 | ///
26 | /// The zero-based character position within the document of the clicked text.
27 | public int Position
28 | {
29 | get
30 | {
31 | if (position == null)
32 | position = scintilla.Lines.ByteToCharPosition(bytePosition);
33 |
34 | return (int)position;
35 | }
36 | }
37 |
38 | ///
39 | /// Initializes a new instance of the class.
40 | ///
41 | /// The control that generated this event.
42 | /// The zero-based byte position of the clicked text.
43 | public IndicatorReleaseEventArgs(Scintilla scintilla, int bytePosition)
44 | {
45 | this.scintilla = scintilla;
46 | this.bytePosition = bytePosition;
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/LineEndType.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Line endings types supported by lexers and allowed by a control.
15 | ///
16 | ///
17 | ///
18 | ///
19 | [Flags]
20 | public enum LineEndType
21 | {
22 | ///
23 | /// ASCII line endings. Carriage Return, Line Feed pair "\r\n" (0x0D0A); Carriage Return '\r' (0x0D); Line Feed '\n' (0x0A).
24 | ///
25 | Default = NativeMethods.SC_LINE_END_TYPE_DEFAULT,
26 |
27 | ///
28 | /// Unicode line endings. Next Line (0x0085); Line Separator (0x2028); Paragraph Separator (0x2029).
29 | ///
30 | Unicode = NativeMethods.SC_LINE_END_TYPE_UNICODE
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/ListCompletionMethod.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Indicates how an autocompletion occurred.
15 | ///
16 | public enum ListCompletionMethod
17 | {
18 | ///
19 | /// A fillup character (see ) triggered the completion.
20 | /// The character used is indicated by the property.
21 | ///
22 | FillUp = NativeMethods.SC_AC_FILLUP,
23 |
24 | ///
25 | /// A double-click triggered the completion.
26 | ///
27 | DoubleClick = NativeMethods.SC_AC_DOUBLECLICK,
28 |
29 | ///
30 | /// A tab key or the command triggered the completion.
31 | ///
32 | Tab = NativeMethods.SC_AC_TAB,
33 |
34 | ///
35 | /// A new line or command triggered the completion.
36 | ///
37 | NewLine = NativeMethods.SC_AC_NEWLINE,
38 |
39 | ///
40 | /// The method triggered the completion.
41 | ///
42 | Command = NativeMethods.SC_AC_COMMAND
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/MarginClickEventArgs.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 | using System.Windows.Forms;
11 |
12 | namespace ScintillaNET
13 | {
14 | ///
15 | /// Provides data for the event.
16 | ///
17 | public class MarginClickEventArgs : EventArgs
18 | {
19 | private readonly Scintilla scintilla;
20 | private readonly int bytePosition;
21 | private int? position;
22 |
23 | ///
24 | /// Gets the margin clicked.
25 | ///
26 | /// The zero-based index of the clicked margin.
27 | public int Margin { get; private set; }
28 |
29 | ///
30 | /// Gets the modifier keys (SHIFT, CTRL, ALT) held down when the margin was clicked.
31 | ///
32 | /// A bitwise combination of the Keys enumeration indicating the modifier keys.
33 | public Keys Modifiers { get; private set; }
34 |
35 | ///
36 | /// Gets the zero-based document position where the line ajacent to the clicked margin starts.
37 | ///
38 | /// The zero-based character position within the document of the start of the line adjacent to the margin clicked.
39 | public int Position
40 | {
41 | get
42 | {
43 | if (position == null)
44 | position = scintilla.Lines.ByteToCharPosition(bytePosition);
45 |
46 | return (int)position;
47 | }
48 | }
49 |
50 | ///
51 | /// Initializes a new instance of the class.
52 | ///
53 | /// The control that generated this event.
54 | /// The modifier keys that where held down at the time of the margin click.
55 | /// The zero-based byte position within the document where the line adjacent to the clicked margin starts.
56 | /// The zero-based index of the clicked margin.
57 | public MarginClickEventArgs(Scintilla scintilla, Keys modifiers, int bytePosition, int margin)
58 | {
59 | this.scintilla = scintilla;
60 | this.bytePosition = bytePosition;
61 | Modifiers = modifiers;
62 | Margin = margin;
63 | }
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/MarginCursor.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// The display of a cursor when over a margin.
15 | ///
16 | public enum MarginCursor
17 | {
18 | ///
19 | /// A normal arrow.
20 | ///
21 | Arrow = NativeMethods.SC_CURSORARROW,
22 |
23 | ///
24 | /// A reversed arrow.
25 | ///
26 | ReverseArrow = NativeMethods.SC_CURSORREVERSEARROW
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/MarginOptions.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Flags used to define margin options.
15 | ///
16 | /// This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
17 | [Flags]
18 | public enum MarginOptions
19 | {
20 | ///
21 | /// No options. This is the default.
22 | ///
23 | None = NativeMethods.SC_MARGINOPTION_NONE,
24 |
25 | ///
26 | /// Lines selected by clicking on the margin will select only the subline of wrapped text.
27 | ///
28 | SublineSelect = NativeMethods.SC_MARGINOPTION_SUBLINESELECT
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/MarginType.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// The behavior and appearance of a margin.
15 | ///
16 | public enum MarginType
17 | {
18 | ///
19 | /// Margin can display symbols.
20 | ///
21 | Symbol = NativeMethods.SC_MARGIN_SYMBOL,
22 |
23 | ///
24 | /// Margin displays line numbers.
25 | ///
26 | Number = NativeMethods.SC_MARGIN_NUMBER,
27 |
28 | ///
29 | /// Margin can display symbols and has a background color equivalent to background color.
30 | ///
31 | BackColor = NativeMethods.SC_MARGIN_BACK,
32 |
33 | ///
34 | /// Margin can display symbols and has a background color equivalent to foreground color.
35 | ///
36 | ForeColor = NativeMethods.SC_MARGIN_FORE,
37 |
38 | ///
39 | /// Margin can display application defined text.
40 | ///
41 | Text = NativeMethods.SC_MARGIN_TEXT,
42 |
43 | ///
44 | /// Margin can display application defined text right-justified.
45 | ///
46 | RightText = NativeMethods.SC_MARGIN_RTEXT,
47 |
48 | ///
49 | /// Margin can display symbols and has a background color specified using the property.
50 | ///
51 | Color = NativeMethods.SC_MARGIN_COLOUR
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/MarkerCollection.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections;
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Text;
11 |
12 | namespace ScintillaNET
13 | {
14 | ///
15 | /// An immutable collection of markers in a control.
16 | ///
17 | public class MarkerCollection : IEnumerable
18 | {
19 | private readonly Scintilla scintilla;
20 |
21 | ///
22 | /// Provides an enumerator that iterates through the collection.
23 | ///
24 | /// An object for enumerating all objects within the .
25 | public IEnumerator GetEnumerator()
26 | {
27 | int count = Count;
28 | for (int i = 0; i < count; i++)
29 | yield return this[i];
30 |
31 | yield break;
32 | }
33 |
34 | IEnumerator IEnumerable.GetEnumerator()
35 | {
36 | return this.GetEnumerator();
37 | }
38 |
39 | ///
40 | /// Gets the number of markers in the .
41 | ///
42 | /// This property always returns 32.
43 | public int Count
44 | {
45 | get
46 | {
47 | return (NativeMethods.MARKER_MAX + 1);
48 | }
49 | }
50 |
51 | ///
52 | /// Gets a object at the specified index.
53 | ///
54 | /// The marker index.
55 | /// An object representing the marker at the specified .
56 | /// Markers 25 through 31 are used by Scintilla for folding.
57 | public Marker this[int index]
58 | {
59 | get
60 | {
61 | index = Helpers.Clamp(index, 0, Count - 1);
62 | return new Marker(scintilla, index);
63 | }
64 | }
65 |
66 | ///
67 | /// Initializes a new instance of the class.
68 | ///
69 | /// The control that created this collection.
70 | public MarkerCollection(Scintilla scintilla)
71 | {
72 | this.scintilla = scintilla;
73 | }
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/MarkerHandle.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// A handle.
15 | ///
16 | ///
17 | /// This is an opaque type, meaning it can be used by a control but
18 | /// otherwise has no public members of its own.
19 | ///
20 | public struct MarkerHandle
21 | {
22 | internal IntPtr Value;
23 |
24 | ///
25 | /// A read-only field that represents an uninitialized handle.
26 | ///
27 | public static readonly MarkerHandle Zero;
28 |
29 | ///
30 | /// Returns a value indicating whether this instance is equal to a specified object.
31 | ///
32 | /// An object to compare with this instance or null.
33 | /// true if is an instance of and equals the value of this instance; otherwise, false.
34 | public override bool Equals(object obj)
35 | {
36 | return (obj is IntPtr) && Value == ((MarkerHandle)obj).Value;
37 | }
38 |
39 | ///
40 | /// Returns the hash code for this instance.
41 | ///
42 | /// A 32-bit signed integer hash code.
43 | public override int GetHashCode()
44 | {
45 | return Value.GetHashCode();
46 | }
47 |
48 | ///
49 | /// Determines whether two specified instances of are equal.
50 | ///
51 | /// The first handle to compare.
52 | /// The second handle to compare.
53 | /// true if equals ; otherwise, false.
54 | public static bool operator ==(MarkerHandle a, MarkerHandle b)
55 | {
56 | return a.Value == b.Value;
57 | }
58 |
59 | ///
60 | /// Determines whether two specified instances of are not equal.
61 | ///
62 | /// The first handle to compare.
63 | /// The second handle to compare.
64 | /// true if does not equal ; otherwise, false.
65 | public static bool operator !=(MarkerHandle a, MarkerHandle b)
66 | {
67 | return a.Value != b.Value;
68 | }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/ModificationEventArgs.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Provides data for the and events.
15 | ///
16 | public class ModificationEventArgs : BeforeModificationEventArgs
17 | {
18 | private readonly Scintilla scintilla;
19 | private readonly int bytePosition;
20 | private readonly int byteLength;
21 | private readonly IntPtr textPtr;
22 |
23 | ///
24 | /// Gets the number of lines added or removed.
25 | ///
26 | /// The number of lines added to the document when text is inserted, or the number of lines removed from the document when text is deleted.
27 | /// When lines are deleted the return value will be negative.
28 | public int LinesAdded { get; private set; }
29 |
30 | ///
31 | /// Gets the text that was inserted or deleted.
32 | ///
33 | /// The text inserted or deleted from the document.
34 | public override unsafe string Text
35 | {
36 | get
37 | {
38 | if (CachedText == null)
39 | CachedText = Helpers.GetString(textPtr, byteLength, scintilla.Encoding);
40 |
41 | return CachedText;
42 | }
43 | }
44 |
45 | ///
46 | /// Initializes a new instance of the class.
47 | ///
48 | /// The control that generated this event.
49 | /// The source of the modification.
50 | /// The zero-based byte position within the document where text was modified.
51 | /// The length in bytes of the inserted or deleted text.
52 | /// >A pointer to the text inserted or deleted.
53 | /// The number of lines added or removed (delta).
54 | public ModificationEventArgs(Scintilla scintilla, ModificationSource source, int bytePosition, int byteLength, IntPtr text, int linesAdded) : base(scintilla, source, bytePosition, byteLength, text)
55 | {
56 | this.scintilla = scintilla;
57 | this.bytePosition = bytePosition;
58 | this.byteLength = byteLength;
59 | this.textPtr = text;
60 |
61 | LinesAdded = linesAdded;
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/ModificationSource.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// The source of a modification
15 | ///
16 | public enum ModificationSource
17 | {
18 | ///
19 | /// Modification is the result of a user operation.
20 | ///
21 | User = NativeMethods.SC_PERFORMED_USER,
22 |
23 | ///
24 | /// Modification is the result of an undo operation.
25 | ///
26 | Undo = NativeMethods.SC_PERFORMED_UNDO,
27 |
28 | ///
29 | /// Modification is the result of a redo operation.
30 | ///
31 | Redo = NativeMethods.SC_PERFORMED_REDO
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/MultiPaste.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Specifies the behavior of pasting into multiple selections.
15 | ///
16 | public enum MultiPaste
17 | {
18 | ///
19 | /// Pasting into multiple selections only pastes to the main selection. This is the default.
20 | ///
21 | Once = NativeMethods.SC_MULTIPASTE_ONCE,
22 |
23 | ///
24 | /// Pasting into multiple selections pastes into each selection.
25 | ///
26 | Each = NativeMethods.SC_MULTIPASTE_EACH
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/NeedShownEventArgs.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Provides data for the event.
15 | ///
16 | public class NeedShownEventArgs : EventArgs
17 | {
18 | private readonly Scintilla scintilla;
19 | private readonly int bytePosition;
20 | private readonly int byteLength;
21 | private int? position;
22 | private int? length;
23 |
24 | ///
25 | /// Gets the length of the text that needs to be shown.
26 | ///
27 | /// The length of text starting at that needs to be shown.
28 | public int Length
29 | {
30 | get
31 | {
32 | if (length == null)
33 | {
34 | var endBytePosition = (bytePosition + byteLength);
35 | var endPosition = scintilla.Lines.ByteToCharPosition(endBytePosition);
36 | length = (endPosition - Position);
37 | }
38 |
39 | return (int)length;
40 | }
41 | }
42 |
43 | ///
44 | /// Gets the zero-based document position where text needs to be shown.
45 | ///
46 | /// The zero-based document position where the range of text to be shown starts.
47 | public int Position
48 | {
49 | get
50 | {
51 | if (position == null)
52 | position = scintilla.Lines.ByteToCharPosition(bytePosition);
53 |
54 | return (int)position;
55 | }
56 | }
57 |
58 | ///
59 | /// Initializes a new instance of the class.
60 | ///
61 | /// The control that generated this event.
62 | /// The zero-based byte position within the document where text needs to be shown.
63 | /// The length in bytes of the text that needs to be shown.
64 | public NeedShownEventArgs(Scintilla scintilla, int bytePosition, int byteLength)
65 | {
66 | this.scintilla = scintilla;
67 | this.bytePosition = bytePosition;
68 | this.byteLength = byteLength;
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/Order.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// The sorting order for autocompletion lists.
15 | ///
16 | public enum Order
17 | {
18 | ///
19 | /// Requires that an autocompletion lists be sorted in alphabetical order. This is the default.
20 | ///
21 | Presorted = NativeMethods.SC_ORDER_PRESORTED,
22 |
23 | ///
24 | /// Instructs a control to perform an alphabetical sort of autocompletion lists.
25 | ///
26 | PerformSort = NativeMethods.SC_ORDER_PERFORMSORT,
27 |
28 | ///
29 | /// User-defined order.
30 | ///
31 | Custom = NativeMethods.SC_ORDER_CUSTOM
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/Phases.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// The number of phases used when drawing.
15 | ///
16 | public enum Phases
17 | {
18 | ///
19 | /// Drawing is done in a single phase. This is the fastest but provides no support for kerning.
20 | ///
21 | One = NativeMethods.SC_PHASES_ONE,
22 |
23 | ///
24 | /// Drawing is done in two phases; the background first and then the text. This is the default.
25 | ///
26 | Two = NativeMethods.SC_PHASES_TWO,
27 |
28 | ///
29 | /// Drawing is done in multiple phases; once for each feature. This is the slowest but allows
30 | /// extreme ascenders and descenders to overflow into adjacent lines.
31 | ///
32 | Multiple = NativeMethods.SC_PHASES_MULTIPLE
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/PopupMode.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Behavior of the standard edit control context menu.
15 | ///
16 | ///
17 | public enum PopupMode
18 | {
19 | ///
20 | /// Never show the default editing menu.
21 | ///
22 | Never = NativeMethods.SC_POPUP_NEVER,
23 |
24 | ///
25 | /// Show default editing menu if clicking on the control.
26 | ///
27 | All = NativeMethods.SC_POPUP_ALL,
28 |
29 | ///
30 | /// Show default editing menu only if clicking on text area.
31 | ///
32 | /// To receive the event, this value must be used.
33 | ///
34 | Text = NativeMethods.SC_POPUP_TEXT
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/PropertyType.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Lexer property types.
15 | ///
16 | public enum PropertyType
17 | {
18 | ///
19 | /// A Boolean property. This is the default.
20 | ///
21 | Boolean = NativeMethods.SC_TYPE_BOOLEAN,
22 |
23 | ///
24 | /// An integer property.
25 | ///
26 | Integer = NativeMethods.SC_TYPE_INTEGER,
27 |
28 | ///
29 | /// A string property.
30 | ///
31 | String = NativeMethods.SC_TYPE_STRING
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/SCNotificationEventArgs.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | // For internal use only
14 | internal sealed class SCNotificationEventArgs : EventArgs
15 | {
16 | public NativeMethods.SCNotification SCNotification { get; private set; }
17 |
18 | public SCNotificationEventArgs(NativeMethods.SCNotification scn)
19 | {
20 | this.SCNotification = scn;
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/SearchFlags.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.ComponentModel;
9 | using System.Linq;
10 | using System.Text;
11 |
12 | namespace ScintillaNET
13 | {
14 | ///
15 | /// Specifies the how patterns are matched when performing a search in a control.
16 | ///
17 | /// This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
18 | [Flags]
19 | public enum SearchFlags
20 | {
21 | ///
22 | /// Matches every instance of the search string.
23 | ///
24 | None = 0,
25 |
26 | ///
27 | /// A match only occurs with text that matches the case of the search string.
28 | ///
29 | MatchCase = NativeMethods.SCFIND_MATCHCASE,
30 |
31 | ///
32 | /// A match only occurs if the characters before and after are not word characters.
33 | ///
34 | WholeWord = NativeMethods.SCFIND_WHOLEWORD,
35 |
36 | ///
37 | /// A match only occurs if the character before is not a word character.
38 | ///
39 | WordStart = NativeMethods.SCFIND_WORDSTART,
40 |
41 | ///
42 | /// The search string should be interpreted as a regular expression.
43 | /// Regular expressions will only match ranges within a single line, never matching over multiple lines.
44 | ///
45 | Regex = NativeMethods.SCFIND_REGEXP,
46 |
47 | ///
48 | /// Treat regular expression in a more POSIX compatible manner by interpreting bare '(' and ')' for tagged sections rather than "\(" and "\)".
49 | ///
50 | Posix = NativeMethods.SCFIND_POSIX,
51 |
52 | ///
53 | /// The search string should be interpreted as a regular expression and use the C++11 <regex> standard library engine.
54 | /// The property can queried to determine if the regular expression is invalid.
55 | /// The ECMAScript flag is set on the regex object and documents will exhibit Unicode-compliant behaviour.
56 | /// Regular expressions will only match ranges within a single line, never matching over multiple lines.
57 | ///
58 | Cxx11Regex = NativeMethods.SCFIND_CXX11REGEX
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/SelectionCollection.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections;
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Text;
11 |
12 | namespace ScintillaNET
13 | {
14 | ///
15 | /// A multiple selection collection.
16 | ///
17 | public class SelectionCollection : IEnumerable
18 | {
19 | private readonly Scintilla scintilla;
20 |
21 | ///
22 | /// Provides an enumerator that iterates through the collection.
23 | ///
24 | /// An object that contains all objects within the .
25 | public IEnumerator GetEnumerator()
26 | {
27 | int count = Count;
28 | for (int i = 0; i < count; i++)
29 | yield return this[i];
30 |
31 | yield break;
32 | }
33 |
34 | IEnumerator IEnumerable.GetEnumerator()
35 | {
36 | return this.GetEnumerator();
37 | }
38 |
39 | ///
40 | /// Gets the number of active selections.
41 | ///
42 | /// The number of selections in the .
43 | public int Count
44 | {
45 | get
46 | {
47 | return scintilla.DirectMessage(NativeMethods.SCI_GETSELECTIONS).ToInt32();
48 | }
49 | }
50 |
51 | ///
52 | /// Gets a value indicating whether all selection ranges are empty.
53 | ///
54 | /// true if all selection ranges are empty; otherwise, false.
55 | public bool IsEmpty
56 | {
57 | get
58 | {
59 | return scintilla.DirectMessage(NativeMethods.SCI_GETSELECTIONEMPTY) != IntPtr.Zero;
60 | }
61 | }
62 |
63 | ///
64 | /// Gets the at the specified zero-based index.
65 | ///
66 | /// The zero-based index of the to get.
67 | /// The at the specified index.
68 | public Selection this[int index]
69 | {
70 | get
71 | {
72 | index = Helpers.Clamp(index, 0, Count - 1);
73 | return new Selection(scintilla, index);
74 | }
75 | }
76 |
77 | ///
78 | /// Initializes a new instance of the class.
79 | ///
80 | ///
81 | public SelectionCollection(Scintilla scintilla)
82 | {
83 | this.scintilla = scintilla;
84 | }
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/Status.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// Possible status codes returned by the property.
15 | ///
16 | public enum Status
17 | {
18 | ///
19 | /// No failures.
20 | ///
21 | Ok = NativeMethods.SC_STATUS_OK,
22 |
23 | ///
24 | /// Generic failure.
25 | ///
26 | Failure = NativeMethods.SC_STATUS_FAILURE,
27 |
28 | ///
29 | /// Memory is exhausted.
30 | ///
31 | BadAlloc = NativeMethods.SC_STATUS_BADALLOC,
32 |
33 | ///
34 | /// Regular expression is invalid.
35 | ///
36 | WarnRegex = NativeMethods.SC_STATUS_WARN_REGEX
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/StyleCase.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections.Generic;
8 | using System.Linq;
9 | using System.Text;
10 |
11 | namespace ScintillaNET
12 | {
13 | ///
14 | /// The possible casing styles of a style.
15 | ///
16 | public enum StyleCase
17 | {
18 | ///
19 | /// Display the text normally.
20 | ///
21 | Mixed = NativeMethods.SC_CASE_MIXED,
22 |
23 | ///
24 | /// Display the text in upper case.
25 | ///
26 | Upper = NativeMethods.SC_CASE_UPPER,
27 |
28 | ///
29 | /// Display the text in lower case.
30 | ///
31 | Lower = NativeMethods.SC_CASE_LOWER,
32 |
33 | ///
34 | /// Display the text in camel case.
35 | ///
36 | Camel = NativeMethods.SC_CASE_CAMEL
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Office365APIEditor/External/ScintillaNET/StyleCollection.cs:
--------------------------------------------------------------------------------
1 | // ScintillaNET
2 | // Copyright(c) 2017 Jacob Slusser
3 | // Licensed under the MIT license.
4 | // https://github.com/jacobslusser/ScintillaNET/blob/master/LICENSE
5 |
6 | using System;
7 | using System.Collections;
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Text;
11 |
12 | namespace ScintillaNET
13 | {
14 | ///
15 | /// An immutable collection of style definitions in a control.
16 | ///
17 | public class StyleCollection : IEnumerable