home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Software / TemaCD / sharpdevelop / 087cSetup.exe / AddIns / SharpDevelopDefaultTextEditor.xml < prev    next >
Encoding:
Text File  |  2002-03-20  |  20.1 KB  |  321 lines

  1. <AddIn name        = "Default Text Editor"
  2.        author      = "Mike Krueger"
  3.        copyright   = "GPL"
  4.        url         = "http://www.icsharpcode.net"
  5.        description = "NCvs texteditor module"
  6.        version     = "1.0.0">
  7.     
  8.     <Runtime>
  9.         <Import assembly="SharpDevelop.DefaultTexteditor.dll"/>
  10.     </Runtime>
  11.     
  12.     <Extension path = "/SharpDevelop/Views/ProjectBrowser/ContextMenu">
  13.         <!-- AddIn to the Project Add Menu -->
  14.         <Conditional ownerstate="ProjectSelected">
  15.                 <MenuItem id = "ExportToHtml"
  16.                           insertafter = "GenerateDocumentation"
  17.                           insertbefore = "Separator5"
  18.                           label = "${res:ProjectComponent.ContextMenu.HtmlExport}" 
  19.                           class = "SharpDevelop.DefaultEditor.Commands.ExportProjectToHtml"/>
  20.         </Conditional>
  21.     </Extension>
  22.     
  23.     <Extension path = "/AddIns/DefaultTextEditor/Formater">
  24.         <Class id ="DefaultFormater" class = "SharpDevelop.DefaultEditor.Text.DefaultFormatingStrategy"/>
  25.     </Extension>
  26.     <Extension path = "/SharpDevelop/Workbench/MainMenu/Project">
  27.         <!-- AddIn to the Project Add Menu -->
  28.         <Conditional openproject="*">
  29.                 <MenuItem id = "ExportToHtml"
  30.                           insertafter = "GenerateDocumentation"
  31.                           insertbefore = "Separator2"
  32.                           label = "${res:ProjectComponent.ContextMenu.HtmlExport}" 
  33.                           class = "SharpDevelop.DefaultEditor.Commands.ExportProjectToHtml"/>
  34.         </Conditional>
  35.     </Extension>
  36.     
  37.     <Extension path = "/SharpDevelop/Workbench/DisplayBindings">
  38.         <Class id    = "Text"
  39.                insertafter = "Browser"
  40.                class = "SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBinding" />
  41.     </Extension>
  42.     
  43.     <Extension path = "/SharpDevelop/WindowContent/DefaultTextEditor/ContextMenu">
  44.                 <MenuItem id = "Cut" 
  45.                           label = "${res:XML.TextAreaContextMenu.Cut}" 
  46.                           icon = "Icons.16x16.CutIcon" 
  47.                           shortcut = "Ctrl+X"
  48.                           class = "SharpDevelop.Base.Commands.Cut"/>
  49.                 <MenuItem id = "Copy" 
  50.                           label = "${res:XML.TextAreaContextMenu.Copy}" 
  51.                           icon = "Icons.16x16.CopyIcon" 
  52.                           shortcut = "Ctrl+C"
  53.                           class = "SharpDevelop.Base.Commands.Copy"/>
  54.                 <MenuItem id = "Paste" 
  55.                           label = "${res:XML.TextAreaContextMenu.Paste}" 
  56.                           icon = "Icons.16x16.PasteIcon"  
  57.                           shortcut = "Ctrl+V" 
  58.                           class = "SharpDevelop.Base.Commands.Paste"/>
  59.                 <MenuItem id = "Delete"
  60.                           label = "${res:XML.MainMenu.EditMenu.Delete}" 
  61.                           icon = "Icons.16x16.DeleteIcon" 
  62.                           class = "SharpDevelop.Base.Commands.Delete"/>
  63.         <MenuItem id = "Separator1" label = "-" />
  64.                 <MenuItem id = "Save"
  65.                           label = "${res:XML.MainMenu.FileMenu.Save}" 
  66.                           icon = "Icons.16x16.SaveIcon" 
  67.                           shortcut = "CtrlS"
  68.                           class = "SharpDevelop.Base.Commands.SaveFile"/>
  69.                 <MenuItem id = "SaveAs"
  70.                           label = "${res:XML.MainMenu.FileMenu.SaveAs}" 
  71.                           class = "SharpDevelop.Base.Commands.SaveFileAs"/>
  72.                 <MenuItem id = "File"
  73.                           label = "${res:XML.MainMenu.FileMenu.Close}" 
  74.                           class ="SharpDevelop.Base.Commands.CloseFile"/>
  75.         <MenuItem id = "Separator2" label = "-" />
  76.                 <MenuItem id = "Indent"
  77.                           label = "${res:XML.TextAreaContextMenu.Indent}" 
  78.                           shortcut = "CtrlI"
  79.                           class = "SharpDevelop.DefaultEditor.Commands.IndentSelection" />
  80.                 <MenuItem id = "FileMode" label = "${res:XML.TextAreaContextMenu.FileMode}">
  81.             <MenuItem id = "HighlightBuilder" label = "boguslabel" class = "SharpDevelop.DefaultEditor.Commands.HighlightingTypeBuilder" />
  82.                 </MenuItem>
  83.         <MenuItem id = "Separator3" label = "-" />
  84.                 <MenuItem id = "Options"
  85.                           label = "${res:XML.TextAreaContextMenu.BufferOptions}" 
  86.                           icon = "Icons.16x16.PropertiesIcon"
  87.                           class ="SharpDevelop.DefaultEditor.Commands.ShowBufferOptions"/>
  88.     </Extension>
  89.     
  90.     <Extension path = "/SharpDevelop/Workbench/MainMenu">
  91.             <MenuItem id = "Search" insertafter ="View" insertbefore ="Tools" label = "${res:XML.MainMenu.SearchMenu}">
  92.                     <Conditional action="Disable">
  93.                         <Or>
  94.                             <Condition activewindow="SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBinding"/>
  95.                             <Condition openproject="*"/>
  96.                         </Or>
  97.                         
  98.                         <MenuItem id = "Find"
  99.                                   label = "${res:XML.MainMenu.SearchMenu.Find}" 
  100.                                   icon = "Icons.16x16.FindIcon" 
  101.                                   description = "${res:XML.MainMenu.SearchMenu.Find.Description}" 
  102.                                   shortcut = "CtrlF" 
  103.                                   class = "SharpDevelop.DefaultEditor.Commands.Find"/>
  104.                         <MenuItem id = "FindNext"
  105.                                   label = "${res:XML.MainMenu.SearchMenu.FindNext}" 
  106.                                   icon = "Icons.16x16.FindNextIcon" 
  107.                                   description = "${res:XML.MainMenu.SearchMenu.FindNext.Description}" 
  108.                                   shortcut = "F3"
  109.                                   class = "SharpDevelop.DefaultEditor.Commands.FindNext"/>
  110.                         <MenuItem id = "Replace"
  111.                                   label = "${res:XML.MainMenu.SearchMenu.Replace}" 
  112.                                   icon = "Icons.16x16.ReplaceIcon" 
  113.                                   description = "${res:XML.MainMenu.SearchMenu.Replace.Description}" 
  114.                                   shortcut = "CtrlR"
  115.                                   class = "SharpDevelop.DefaultEditor.Commands.Replace"/>
  116.                 </Conditional>
  117.                     <MenuItem id = "Separator1" label = "-" />
  118.                     <Conditional activewindow="SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBinding" action="Disable">
  119.                     
  120.                         <MenuItem id = "ToggleBookmark"
  121.                                   label = "${res:XML.MainMenu.SearchMenu.ToggleBookmark}" 
  122.                                   description = "${res:XML.MainMenu.SearchMenu.ToggleBookmark.Description}" 
  123.                                   shortcut = "CtrlF2"
  124.                                   class = "SharpDevelop.DefaultEditor.Commands.ToggleBookmark"/>
  125.                         <MenuItem id = "PrevBookmark"
  126.                                   label = "${res:XML.MainMenu.SearchMenu.PrevBookmark}" 
  127.                                   description = "${res:XML.MainMenu.SearchMenu.PrevBookmark.Description}" 
  128.                                   shortcut = "AltF2"
  129.                                   class = "SharpDevelop.DefaultEditor.Commands.PrevBookmark"/>
  130.                         <MenuItem id = "NextBookmark"
  131.                                   label = "${res:XML.MainMenu.SearchMenu.NextBookmark}" 
  132.                                   description = "${res:XML.MainMenu.SearchMenu.NextBookmark.Description}" 
  133.                                   shortcut = "F2" 
  134.                                   class = "SharpDevelop.DefaultEditor.Commands.NextBookmark"/>
  135.                         <MenuItem id = "ClearBookmarks"
  136.                                   label = "${res:XML.MainMenu.SearchMenu.ClrBookmark}" 
  137.                                   description = "${res:XML.MainMenu.SearchMenu.ClrBookmark.Description}"
  138.                                   class = "SharpDevelop.DefaultEditor.Commands.ClearBookmarks"/>
  139.                         <MenuItem id = "Separator2" label = "-" />
  140.                         <MenuItem id = "GotoLineNr"
  141.                                   label = "${res:XML.MainMenu.SearchMenu.GotoLineNr}" 
  142.                                   description = "${res:XML.MainMenu.SearchMenu.GotoLineNr.Description}" 
  143.                                   shortcut = "CtrlG"
  144.                                   class = "SharpDevelop.DefaultEditor.Commands.GotoLineNumber"/>
  145.                         <MenuItem id = "Separator3" label = "-" />
  146.                         <MenuItem id = "GotoBrace"
  147.                                   label = "${res:XML.MainMenu.SearchMenu.GotoBrace}" 
  148.                                   description = "${res:XML.MainMenu.SearchMenu.GotoBrace.Description}" 
  149.                                   shortcut = "CtrlB"
  150.                                   class = "SharpDevelop.DefaultEditor.Commands.GotoMatchingBrace"/>
  151.             </Conditional>
  152.             </MenuItem> 
  153.     </Extension>
  154.     
  155.     <Extension path = "/SharpDevelop/Workbench/MainMenu/Edit">
  156.                 <MenuItem insertafter = "Delete" insertbefore = "SelectAll" id = "Separator2" label = "-" />
  157.                 <MenuItem insertafter = "Separator2" insertbefore = "Separator3" id = "Format" label = "${res:XML.MainMenu.EditMenu.FormatMenu}">
  158.                     <Conditional activewindow="SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBinding" action="Disable">
  159.                         
  160.                         <MenuItem id = "RemoveLeadingWs" 
  161.                                   label = "${res:XML.MainMenu.EditMenu.FormatMenu.RlWs}" 
  162.                                   description = "${res:XML.MainMenu.EditMenu.FormatMenu.RlWs.Description}" 
  163.                                   class ="SharpDevelop.DefaultEditor.Commands.RemoveLeadingWS"/>
  164.                         <MenuItem id = "RemoveTrailingWs"
  165.                                   label = "${res:XML.MainMenu.EditMenu.FormatMenu.RtWs}" 
  166.                                   description = "${res:XML.MainMenu.EditMenu.FormatMenu.RtWs.Description}"
  167.                                   class ="SharpDevelop.DefaultEditor.Commands.RemoveTrailingWS"/>
  168.                         <MenuItem id = "Seperator1" label = "-" />
  169.                         <MenuItem id = "UpperCase"  
  170.                                   label = "${res:XML.MainMenu.EditMenu.FormatMenu.UpperCase}" 
  171.                                   icon = "Icons.16x16.LowerToUpperCase" 
  172.                                   description = "${res:XML.MainMenu.EditMenu.FormatMenu.UpperCase.Description}" 
  173.                                   class ="SharpDevelop.DefaultEditor.Commands.ToUpperCase"/>
  174.                         <MenuItem id = "LowerCase" 
  175.                                   label = "${res:XML.MainMenu.EditMenu.FormatMenu.LowerCase}" 
  176.                                   icon = "Icons.16x16.UpperToLowerCase" 
  177.                                   description = "${res:XML.MainMenu.EditMenu.FormatMenu.LowerCase.Description}"
  178.                                   class ="SharpDevelop.DefaultEditor.Commands.ToLowerCase"/>
  179.                         <MenuItem id = "Capitalize"
  180.                                   label = "${res:XML.MainMenu.EditMenu.FormatMenu.Capitalize}" 
  181.                                   description = "${res:XML.MainMenu.EditMenu.FormatMenu.Capitalize.Description}" 
  182.                                   class ="SharpDevelop.DefaultEditor.Commands.CapitalizeAction"/>
  183.                         <MenuItem id = "InvertCase"
  184.                                   label = "${res:XML.MainMenu.EditMenu.FormatMenu.InvertCase}" 
  185.                                   description = "${res:XML.MainMenu.EditMenu.FormatMenu.InvertCase.Description}" 
  186.                                   class ="SharpDevelop.DefaultEditor.Commands.InvertCaseAction"/>
  187.                         <MenuItem id = "Separator2" label = "-" />
  188.                         <MenuItem id = "Tabs2Spaces" 
  189.                                   label = "${res:XML.MainMenu.EditMenu.FormatMenu.Tab2Space}" 
  190.                                   description = "${res:XML.MainMenu.EditMenu.FormatMenu.Tab2Space.Description}" 
  191.                                   class ="SharpDevelop.DefaultEditor.Commands.ConvertTabsToSpaces"/>
  192.                         <MenuItem id = "Spaces2Tabs"
  193.                                   label = "${res:XML.MainMenu.EditMenu.FormatMenu.Space2Tab}"
  194.                                   description = "${res:XML.MainMenu.EditMenu.FormatMenu.Space2Tab.Description}"
  195.                                   class ="SharpDevelop.DefaultEditor.Commands.ConvertSpacesToTabs"/>
  196.                         <MenuItem id = "LeadingTabs2Spaces"
  197.                                   label = "${res:XML.MainMenu.EditMenu.FormatMenu.LdTab2Space}"
  198.                                   description = "${res:XML.MainMenu.EditMenu.FormatMenu.LdTab2Space.Description}" 
  199.                                   class ="SharpDevelop.DefaultEditor.Commands.ConvertLeadingTabsToSpaces"/>
  200.                         <MenuItem id = "LeadingSpaces2Tabs"
  201.                                   label = "${res:XML.MainMenu.EditMenu.FormatMenu.LdSpace2Tab}"   
  202.                                   description = "${res:XML.MainMenu.EditMenu.FormatMenu.LdSpace2Tab.Description}" 
  203.                                   class ="SharpDevelop.DefaultEditor.Commands.ConvertLeadingSpacesToTabs"/>
  204.                 </Conditional>
  205.                 </MenuItem>
  206.                 <MenuItem insertafter = "Separator2" insertbefore = "SelectAll" id = "Separator3" label = "-" />
  207.     </Extension>
  208.  
  209.     <Extension path = "/SharpDevelop/WindowContent/DefaultTextEditor/OptionsDialog">
  210.         <DialogPanel id = "General"
  211.                      label = "${res:Dialog.Options.IDEOptions.TextEditor.General.PanelName}"
  212.                      class = "SharpDevelop.DefaultEditor.Gui.OptionPanels.GeneralTextEditorPanel"/>
  213.         <DialogPanel id = "Markers"
  214.                      label = "${res:Dialog.Options.IDEOptions.TextEditor.Markers.PanelName}"
  215.                      class = "SharpDevelop.DefaultEditor.Gui.OptionPanels.MarkersTextEditorPanel"/>
  216.         <DialogPanel id = "Behavior"
  217.                      label = "${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.PanelName}"
  218.                      class = "SharpDevelop.DefaultEditor.Gui.OptionPanels.BehaviorTextEditorPanel"/>
  219.     </Extension>
  220.     
  221.     <Extension path = "/SharpDevelop/Dialogs/OptionsDialog">
  222.         <DialogPanel id    = "TextEditorOptions"
  223.                      insertafter = "CodingOptions"
  224.                      insertbefore = "ToolsOptions"
  225.                      label = "${res:Dialog.Options.IDEOptions.TextEditorOptionsText}">
  226.             <DialogPanel id = "General"
  227.                          label = "${res:Dialog.Options.IDEOptions.TextEditor.General.PanelName}"
  228.                          class = "SharpDevelop.DefaultEditor.Gui.OptionPanels.GeneralTextEditorPanel"/>
  229.             <DialogPanel id = "Markers"
  230.                          label = "${res:Dialog.Options.IDEOptions.TextEditor.Markers.PanelName}"
  231.                          class = "SharpDevelop.DefaultEditor.Gui.OptionPanels.MarkersTextEditorPanel"/>
  232.             <DialogPanel id = "Behavior"
  233.                          label = "${res:Dialog.Options.IDEOptions.TextEditor.Behaviour.PanelName}"
  234.                          class = "SharpDevelop.DefaultEditor.Gui.OptionPanels.BehaviorTextEditorPanel"/>
  235.         </DialogPanel>
  236.     </Extension>
  237.     
  238.     <Extension path = "/SharpDevelop/Workbench/MainMenu/Tools">
  239.                 <Conditional activewindow="SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBinding" action="Disable">
  240.                 <MenuItem id = "InsertColor" 
  241.                           insertafter = "Separator1" insertbefore = "Options"
  242.                       label = "${res:XML.MainMenu.ToolMenu.InsColor}" 
  243.                       description = "${res:XML.MainMenu.ToolMenu.InsColor.Description}" 
  244.                       class = "SharpDevelop.DefaultEditor.Commands.ShowColorDialog"/> 
  245.         </Conditional>
  246.     </Extension>
  247.         
  248.     <Extension path = "/AddIns/DefaultTextEditor/EditActions">
  249.         <!-- Caret -->
  250.         <EditAction id = "Right" class = "SharpDevelop.DefaultEditor.Actions.CaretRight" keys = "Right"/>
  251.         <EditAction id = "Left" class = "SharpDevelop.DefaultEditor.Actions.CaretLeft"  keys = "Left"/>
  252.         <EditAction id = "Up" class = "SharpDevelop.DefaultEditor.Actions.CaretUp"    keys = "Up"/>
  253.         <EditAction id = "Down" class = "SharpDevelop.DefaultEditor.Actions.CaretDown"  keys = "Down"/>
  254.         
  255.         <EditAction id = "WordLeft" class = "SharpDevelop.DefaultEditor.Actions.WordLeft"   keys = "Left|Control"/>
  256.         <EditAction id = "WordRight" class = "SharpDevelop.DefaultEditor.Actions.WordRight"  keys = "Right|Control"/>
  257.         
  258.         <EditAction id = "LineUp" class = "SharpDevelop.DefaultEditor.Actions.ScrollLineUp"   keys = "Up|Control"/>
  259.         <EditAction id = "LineDown" class = "SharpDevelop.DefaultEditor.Actions.ScrollLineDown" keys = "Down|Control"/>
  260.         
  261.         <!-- Selection -->
  262.         <EditAction id = "SelectAll" class = "SharpDevelop.DefaultEditor.Actions.SelectWholeDocument" keys = "Control|A"/>
  263.         <EditAction id = "ClearSelections" class = "SharpDevelop.DefaultEditor.Actions.ClearAllSelections"  keys = "Escape"/>
  264.         
  265.         <EditAction id = "ShRight" class = "SharpDevelop.DefaultEditor.Actions.ShiftCaretRight" keys = "Right|Shift"/>
  266.         <EditAction id = "ShLeft" class = "SharpDevelop.DefaultEditor.Actions.ShiftCaretLeft"  keys = "Left|Shift"/>
  267.         <EditAction id = "ShUp" class = "SharpDevelop.DefaultEditor.Actions.ShiftCaretUp"    keys = "Up|Shift"/>
  268.         <EditAction id = "ShDown" class = "SharpDevelop.DefaultEditor.Actions.ShiftCaretDown"  keys = "Down|Shift"/>
  269.         
  270.         <EditAction id = "ShWordLeft" class = "SharpDevelop.DefaultEditor.Actions.ShiftWordLeft"   keys = "Left|Control|Shift"/>
  271.         <EditAction id = "ShWordRight" class = "SharpDevelop.DefaultEditor.Actions.ShiftWordRight"  keys = "Right|Control|Shift"/>
  272.         
  273.         <EditAction id = "ShHome" class = "SharpDevelop.DefaultEditor.Actions.ShiftHome" keys = "Home|Shift"/>
  274.         <EditAction id = "ShEnd" class = "SharpDevelop.DefaultEditor.Actions.ShiftEnd"  keys = "End|Shift"/>
  275.         
  276.         <EditAction id = "ShGotoStart" class = "SharpDevelop.DefaultEditor.Actions.ShiftMoveToStart" keys = "Home|Control|Shift"/>
  277.         <EditAction id = "ShGotoEnd"  class = "SharpDevelop.DefaultEditor.Actions.ShiftMoveToEnd"   keys = "End|Control|Shift"/>
  278.         
  279.         <EditAction id = "ShPgUp" class = "SharpDevelop.DefaultEditor.Actions.ShiftMovePageUp"    keys = "PageUp|Shift"/>
  280.         <EditAction id = "ShPgDn" class = "SharpDevelop.DefaultEditor.Actions.ShiftMovePageDown"  keys = "PageDown|Shift"/>
  281.         
  282.         <!-- Home & End -->
  283.         <EditAction id = "Home" class = "SharpDevelop.DefaultEditor.Actions.Home" keys = "Home"/>
  284.         <EditAction id = "End" class = "SharpDevelop.DefaultEditor.Actions.End"  keys = "End"/>
  285.         
  286.         <EditAction id = "GotoStart" class = "SharpDevelop.DefaultEditor.Actions.MoveToStart" keys = "Home|Control"/>
  287.         <EditAction id = "GotoEnd" class = "SharpDevelop.DefaultEditor.Actions.MoveToEnd"   keys = "End|Control"/>
  288.         
  289.         <!-- Tab -->
  290.         <EditAction id = "Tab" class = "SharpDevelop.DefaultEditor.Actions.Tab"        keys = "Tab"/>
  291.         <EditAction id = "ShTab" class = "SharpDevelop.DefaultEditor.Actions.ShiftTab"   keys = "Tab|Shift"/>
  292.         
  293.         <!-- PgUp/PgDn -->    
  294.         <EditAction id = "PgUp" class = "SharpDevelop.DefaultEditor.Actions.MovePageUp"    keys = "PageUp"/>
  295.         <EditAction id = "PgDn" class = "SharpDevelop.DefaultEditor.Actions.MovePageDown"  keys = "PageDown"/>
  296.         
  297.         <!-- Insert & Delete -->
  298.         <EditAction id = "Backspace" class = "SharpDevelop.DefaultEditor.Actions.Backspace" keys = "Back"/>            
  299.         <EditAction id = "Delete" class = "SharpDevelop.DefaultEditor.Actions.Delete"    keys = "Delete"/> 
  300.         
  301.         <!-- Misc -->
  302.         <EditAction id = "Return" class = "SharpDevelop.DefaultEditor.Actions.Return"  keys = "Return,Return|Shift,Return|Control"/>
  303.         
  304.         <EditAction id = "ReplaceInsert" class = "SharpDevelop.DefaultEditor.Actions.ToggleEditMode"  keys = "Insert"/>
  305.         
  306.         <EditAction id = "Togglecomment" class = "SharpDevelop.DefaultEditor.Actions.ToggleComment"   keys = "Divide|Control"/>
  307.         
  308.         <EditAction id = "TemplateCompletion" class = "SharpDevelop.DefaultEditor.Actions.TemplateCompletion"  keys = "Control|J"/>
  309.         
  310.         <!-- ClipBoard -->
  311.         <EditAction id = "Cut" class = "SharpDevelop.DefaultEditor.Actions.Cut"        keys = "Delete|Shift,Control|X"/>
  312.         <EditAction id = "Copy" class = "SharpDevelop.DefaultEditor.Actions.Copy"       keys = "Insert|Control,Control|C"/>
  313.         <EditAction id = "Paste" class = "SharpDevelop.DefaultEditor.Actions.Paste"      keys = "Insert|Shift,Control|V"/>
  314.         
  315.         <!-- Undo/Redo -->
  316.         <EditAction id = "Undo" class = "SharpDevelop.DefaultEditor.Actions.Undo"      keys = "Control|Z,Back|Alt"/>
  317.         <EditAction id = "Redo" class = "SharpDevelop.DefaultEditor.Actions.Redo"      keys = "Control|Y"/>
  318.     </Extension>
  319.  
  320. </AddIn>
  321.