Menu 'SpreadLongMenu'
Begin
     Popup '文件[&F]'
     Begin
          MenuItem '新建[&N]...'                      'Client:CreateNewDocument(SingleDocument=True)'
          MenuItem '新建设计[&G]...'                Client:CreateNewDocument
          MenuItem '打开[&O]...'                      Client:OpenDocument
          MenuItem '关闭[&C]'                        Client:CloseDocument
          MenuItem '关闭设计[&D]'                    Client:CloseProject
          MenuItem SEPARATOR
          MenuItem '保存[&S]'                         Client:SaveDocument
          MenuItem '另存为[&A]'                  'Client:SaveDocumentAs(Action=SaveAs)'
          MenuItem '保存副本为[&Y]'              Client:SaveDocumentAs
          MenuItem '保存全部[&L]'                     Client:SaveDocumentAll
          MenuItem SEPARATOR
          MenuItem '页面设置[&G]...'                Spread:DocumentPreferences
          MenuItem '打印[&P]...'                    'Spread:PrintDocument(ShowPrintDlg=True)'
          MenuItem SEPARATOR
          MenuItem '更新[&U]'                       Spread:Update
          MenuItem SEPARATOR
          MenuItem '退出[&X]'                         Client:QuitFromEDAClient
          MenuItem SEPARATOR
     End
     Popup '编辑[&E]'
     Begin
          MenuItem '剪切[&T]\tShift+Del'               Spread:Cut
          MenuItem '复制[&C]\tCtrl+Ins'               Spread:Copy
          MenuItem '粘贴[&P]\tShift+Ins'             Spread:Paste
          MenuItem '清除[&L]...\tCtrl+Del'           Spread:Clear
          MenuItem SEPARATOR
          Popup '处理[&T]'
          Begin
               MenuItem '开始[&S]'                   Spread:StartTransaction
               MenuItem '保存[&A]'                    Spread:SaveTransaction                          
               MenuItem SEPARATOR
               MenuItem '撤消[&U]'                    Spread:UndoTransaction                                              
          End
          MenuItem SEPARATOR
          MenuItem '插入[&I]'                       Spread:Insert
          MenuItem '删除[&D]'                       Spread:Delete
          MenuItem SEPARATOR
          MenuItem '右填充[&H]\tCtrl+R'           Spread:CopyRight
          MenuItem '下填充[&W]\tCtrl+D'            Spread:CopyDown
          MenuItem SEPARATOR
          MenuItem '选择全部[&S]'                  'Spread:SetSelection(R1=-1|C1=-1|R2=0|C2=0|$Description=选择所有单元)'
          MenuItem '跳到单元[&G]...\tCtrl+G'         Spread:JumpTo
          MenuItem SEPARATOR
          MenuItem '创建图表'                  'Spread:CreateChart(Link=Auto)'
     End
     Popup '查看[&V]'
     Begin
          MenuItem '50%[&5]'                         'Spread:Zoom(Scale=50|$Description=缩放比例: 50%)'
          MenuItem '100%[&1]'                        'Spread:Zoom(Scale=100|$Description=缩放比例: 100%)'
          MenuItem '200%[&2]'                        'Spread:Zoom(Scale=200|$Description=缩放比例: 200%)'  
          MenuItem '400%[&4]'                        'Spread:Zoom(Scale=400|$Description=缩放比例: 400%)'  
          MenuItem SEPARATOR
          MenuItem '设计管理器[&M]'               Client:ToggleDocumentManager
          MenuItem SEPARATOR
          MenuItem '状态栏[&S]'                   Client:ToggleClientStatusBar
          MenuItem '命令状态栏'                Client:ToggleProcessStatusBar
          MenuItem SEPARATOR
          MenuItem '主工具条[&M]'                'Client:CustomizeResources(ToggleToolbar=电子表格工具|$Description=打开或关闭主工具条)'
          MenuItem '格式工具条[&F]'              'Client:CustomizeResources(ToggleToolbar=电子表格格式工具|$Description=打开或关闭格式工具条)'
     End
     Popup '格式[&R]'
     Begin
          MenuItem '数字[&N]...'                    Spread:FormatNumber
          MenuItem '边框[&B]...'                    Spread:FormatBorder
          MenuItem '形式[&P]...'                   Spread:FormatPattern
          MenuItem '字体[&F]...'                      Spread:FormatFont
          MenuItem SEPARATOR
          MenuItem '行[&R]...'                       Spread:FormatRow
          MenuItem '列[&C]...'                    Spread:FormatColumn
          MenuItem SEPARATOR
          MenuItem '排序[&S]...'                      Spread:SortBy
          MenuItem '对齐[&A]...'                 Spread:FormatCellAlignment
          MenuItem SEPARATOR
          MenuItem '定义名称[&D]...'               Spread:SetDefinedName
          MenuItem '保护[&T]...'                Spread:CellProtection
     End
     Popup '选项[&O]...'
     Begin
          MenuItem '参数选择[&P]...'               Spread:SetupPreferences
          MenuItem '颜色[&C]...'                    Spread:DefaultColors
          MenuItem 'default字体[&D]...'              Spread:SetDefaultFont
          MenuItem '计算[&C]...'               Spread:CalculationOptions
          MenuItem SEPARATOR
          Popup '打印区域[&R]...'
          Begin
               MenuItem '设置打印区域[&S]'          Spread:SetPrintAreaFromSelection
               MenuItem '清除打印区域[&C]'       'Spread:SetPrintAreaFromSelection(ClearPrintArea=Yes|$Description=清除当前打印区域)'
          End
          Popup '页断点'
          Begin
               MenuItem '添加页断点'           Spread:AddPageBreak
               MenuItem '移除页断点'        Spread:RemovePageBreak
          End
     End
     Popup '窗口[&W]'
     Begin
          MenuItem '平铺[&T]\tShift+F4'                   Client:TileAllOpenDocuments
          MenuItem '层叠[&C]\tShift+F5'                Client:CascadeAllOpenDocuments
          MenuItem SEPARATOR
          MenuItem '水平平铺[&H]'               'Client:TileAllOpenDocuments(Mode=Horizontal)'
          MenuItem '垂直平铺[&V]'                 'Client:TileAllOpenDocuments(Mode=Vertical)'
          MenuItem SEPARATOR
          MenuItem '排列为图标[&I]'                    Client:WindowArrangeIcons
          MenuItem '关闭全部[&A]'                        Client:CloseAllOpenDocuments
     End
     Popup '帮助[&H]'
     Begin
          MenuItem '内容[&C]'                    'Client:RunHelpTopic(FileName=\Help\Protel.hlp|Topic=contents)'
          MenuItem SEPARATOR
          MenuItem '工作在电子表格[&W]'    'Client:RunHelpTopic(Filename=\Help\vcfiu.hlp|Topic=Contents)'
          MenuItem '工作单功能[&F]'         'Client:RunHelpTopic(Filename=\Help\vcfiu.hlp|Topic=FunctionReference)'
          MenuItem '参考[&R]'                  'Client:RunHelpTopic(FileName=\Help\Spread.hlp|Topic=contents)'
          MenuItem SEPARATOR
          Popup '鼠标右键[&R] {Right_Click}'
          Begin
               MenuItem '剪切[&T]\tShift+Del'          Spread:Cut
               MenuItem '复制[&C]\tCtrl+Ins'          Spread:Copy
               MenuItem '粘贴[&P]\tShift+Ins'        Spread:Paste
               MenuItem '清除[&L]...\tCtrl+Del'      Spread:Clear
               MenuItem SEPARATOR
               MenuItem '插入[&I]'                  Spread:Insert
               MenuItem '删除[&D]'                  Spread:Delete
               MenuItem SEPARATOR
               MenuItem '右填充[&H]\tCtrl+R'      Spread:CopyRight
               MenuItem '下填充[&W]\tCtrl+D'       Spread:CopyDown
               MenuItem SEPARATOR
               Popup '格式[&R]'
               Begin
                    MenuItem '数字[&N]...'               Spread:FormatNumber
                    MenuItem '边框[&B]...'               Spread:FormatBorder
                    MenuItem '形式[&P]...'              Spread:FormatPattern
                    MenuItem '字体[&F]...'                 Spread:FormatFont
                    MenuItem SEPARATOR
                    MenuItem '行[&R]...'                  Spread:FormatRow
                    MenuItem '列[&C]...'               Spread:FormatColumn
                    MenuItem SEPARATOR
                    MenuItem '对齐[&A]...'            Spread:FormatCellAlignment
               End
          End
          MenuItem SEPARATOR
          MenuItem '关于[&S]'                               Client:HelpAbout
     End
End

HotKeyTable 'SpreadHotKeys'
Begin
     Key Spread:Cut                              Delete     Shift     EndKey
     Key Spread:Cut                              X          Ctrl      EndKey
     Key Spread:Copy                             C          Ctrl      EndKey
     Key Spread:Paste                            V          Ctrl      EndKey
     Key Spread:Copy                             Insert      Ctrl     EndKey
     Key Spread:Paste                            Insert     Shift     EndKey
     Key Spread:Clear                            Delete      Ctrl     EndKey
     Key Spread:Insert                           I           Ctrl     EndKey
     Key Spread:Delete                           K           Ctrl     EndKey
     Key Spread:CopyRight                        R           Ctrl     EndKey
     Key Spread:CopyDown                         D           Ctrl     EndKey
     Key 'Spread:SetSelection(R1=-1|C1=-1|R2=0|C2=0)' A      Ctrl     EndKey
     Key 'Client:RunHelpTopic(FileName=\Help\Protel.hlp|Topic=contents)'    F1                 Endkey
     Key Spread:JumpTo                           G           Ctrl     EndKey
End

Toolbar 'SpreadTools' 'Fixed Top' 13 1
Begin
     Button 'PROJMAN.BMP' Client:ToggleDocumentManager
     Separator
     Button 'FILEOPEN.BMP' Client:OpenDocument
     Button 'FILESAVE.BMP' Client:SaveDocument
     Button 'PRINT.BMP' 'Spread:PrintDocument(ShowPrintDlg=True)'
     Separator
     Button 'CUT.BMP' Spread:Cut
     Button 'COPY.BMP' Spread:Copy
     Button 'PASTE.BMP' Spread:Paste
     Separator
     Button XProbe.BMP                                'Client:CrossProbe(Repeat=False | FocusWindows=True)'
     Separator
     Button 'SORTAZ.BMP' 'Spread:SortBy(SortbyRows=True|$Description=使用 A 到 Z 次序排序选中单元)'
     Button 'SORTZA.BMP' 'Spread:SortBy(SortbyRows=True|Order=ZA|$Description=使用 Z 到 A 次序排序选中单元)'
     Separator
     Button 'CHARTLNK.BMP' 'Spread:CreateChart(Link=Auto)'
     Separator
     Button 'SUM.BMP' Spread:AutoSum
     Button 'RECALC.BMP' Spread:RecalcDocument
     Separator
     Button 'HELP.BMP'     'Client:RunHelpTopic(FileName=\Help\Protel.hlp|Topic=contents)'
End

Toolbar 'SpreadFormatTools 'Floating' 100 300
Begin
     Button 'FONTDLG.BMP' 'Spread:FormatFont($Description=打开字体对话)'
     Button 'BOLD.BMP' 'Spread:FormatFont(Bold=True|$Description=粗体)'
     Button 'UNDERLIN.BMP' 'Spread:FormatFont(Underline=True|$Description=下划线)'  
     Button 'ITALIC.BMP' 'Spread:FormatFont(Italic=True|$Description=斜体)'  
     Button 'FONTUNDO.BMP' 'Spread:FormatFont(Bold=false|UnderLine=false|Italic=false|$Description=常规)'
     Separator
     Button 'LEFTJUST.BMP' 'Spread:FormatCellAlignment(Horizontal=2|$Description=左对齐)'
     Button 'CENTER.BMP' 'Spread:FormatCellAlignment(Horizontal=3|$Description=居中)'
     Button 'RIGHTJUS.BMP' 'Spread:FormatCellAlignment(Horizontal=4|$Description=右对齐)'  
     Button 'NOWRAP.BMP' 'Spread:FormatCellAlignment(WordWrap=0|$Description=不换行)'
     Button 'WORDWRAP.BMP' 'Spread:FormatCellAlignment(WordWrap=1|$Description=换行)'
End
