亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? delfor1.pas

?? delphi代碼格式化,最新漢化版
?? PAS
?? 第 1 頁 / 共 2 頁
字號:
{|----------------------------------------------------------------------
 | Class:       TPascalParser
 |
 | Author:      Egbert van Nes
 |
 | Description: Format pascal code
 |
 | Copyright (c) 2000  Egbert van Nes
 |
 | Redistribution and use in source and binary form, with or without
 | modification, are permitted provided that the following conditions
 | are met:
 |
 | 1. Redistributions of source code must retain the above copyright
 |    notice, this list of conditions and the following disclaimer.
 |    If the source is modified, the complete original and unmodified
 |    source code has to distributed with the modified version.
 |
 | 2. Redistributions in binary form must reproduce the above
 |    copyright notice, these licence conditions and the disclaimer
 |    found at the end of this licence agreement in the documentation
 |    and/or other materials provided with the distribution.
 |
 | 3. Software using this code must contain a visible line of credit.
 |
 | 4. If my code is used in a "for profit" product, you have to donate
 |    to a registered charity in an amount that you feel is fair.
 |    You may use it in as many of your products as you like.
 |    Proof of this donation must be provided to the author of
 |    this software.
 |
 | 5. If you for some reasons don't want to give public credit to the
 |    author, you have to donate three times the price of your software
 |    product, or any other product including this component in any way,
 |    but no more than $500 US and not less than $200 US, or the
 |    equivalent thereof in other currency, to a registered charity.
 |    You have to do this for every of your products, which uses this
 |    code separately.
 |    Proof of this donations must be provided to the author of
 |    this software.
 |
 | DISCLAIMER:
 |
 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS'.
 |
 | ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 | PARTICULAR PURPOSE ARE DISCLAIMED.
 |
 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 |
 |---------------------------------------------------------------------- |----------------------------------------------------------------------}

unit Delfor1;

interface

uses SysUtils, OObjects, Classes, ExtCtrls, Menus, DelForTypes, DelforEng;
{
  Main interface methods:

  TPascalParser = class(TObject)
  public
    constructor Create(ARootdir: PChar);
    procedure SetDefault;
    procedure LoadFromFile(AFileName: PChar);
    procedure LoadFromList(AList: TStringList);
    function Parse: Boolean;
    procedure WriteToFile(AFileName: PChar);
    destructor Destroy; override;
    property Text: PChar read GetTextStr write SetTextStr;
    property Settings: TSettings read FSettings write FSettings;
  end;
}
type
  TPascalParser = class(TObject)
  private
    Timer: TTimer;
    FSettings: TSettings;
    FCapFileName: PChar;
    CapFileTime: Integer;
    FOnProgress: TProgressEvent;
    FCfgFile: string;
    FRootDir: string;
    procedure SetFillNewWords(AFillNewWords: TFillMode);
    procedure SetCapFileName(AFileName: PChar);
    procedure TimerTimer(Sender: TObject);
    function GetNewCapFileTime: Integer;
    procedure SetTextStr(AText: PChar);
    function GetShortCut: TShortCut;
    procedure SetShortCut(AShortCut: TShortCut);
    procedure SetShortCutText(AShortCut: string);
    function GetShortCutText: string;
    function GetTextStr: PChar;
    function GetRootDir: string;
    procedure SetRootdir(const Value: string);
    procedure SetOnProgress(const Value: TProgressEvent);
  public
    procedure Activate;
    procedure deActivate;
    procedure SaveCapFile(AFileName: PChar);
    procedure LoadCapFile(AFileName: PChar);
    constructor Create(ARootdir: PChar);
    procedure Clear;
    procedure SetDefault;
    procedure SetBorland;
    procedure LoadFromFile(AFileName: PChar);
    procedure LoadFromList(AList: TStringList);
    function Parse: Boolean;
    procedure Config(DoRead: Boolean);
    procedure WriteToFile(AFileName: PChar);
    destructor Destroy; override;
    property SpacePerIndent: Integer read FSettings.SpacePerIndent write
      FSettings.SpacePerIndent;
    property SpaceOperators: TSpaceBefore read FSettings.SpaceOperators write
      FSettings.SpaceOperators;
    property SpaceEqualOper: TSpaceBefore read FSettings.SpaceEqualOper write
      FSettings.SpaceEqualOper;
    property SpaceColon: TSpaceBefore read FSettings.SpaceColon write
      FSettings.SpaceColon;
    property SpaceComma: TSpaceBefore read FSettings.SpaceComma write
      FSettings.SpaceComma;
    property SpaceSemiColon: TSpaceBefore read FSettings.SpaceSemiColon write
      FSettings.SpaceSemiColon;
    property SpaceLeftBr: TSpaceBefore read FSettings.SpaceLeftBr write
      FSettings.SpaceLeftBr;
    property SpaceRightBr: TSpaceBefore read FSettings.SpaceRightBr write
      FSettings.SpaceRightBr;
    property SpaceLeftHook: TSpaceBefore read FSettings.SpaceLeftHook write
      FSettings.SpaceLeftHook;
    property SpaceRightHook: TSpaceBefore read FSettings.SpaceRightHook write
      FSettings.SpaceRightHook;
    property UpperCompDirectives: Boolean read FSettings.UpperCompDirectives
      write FSettings.UpperCompDirectives;
    property UpperNumbers: Boolean read FSettings.UpperNumbers write
      FSettings.UpperNumbers;
    property ReservedCase: TCase read FSettings.ReservedCase write
      FSettings.ReservedCase;
    property StandDirectivesCase: TCase read FSettings.StandDirectivesCase write
      FSettings.StandDirectivesCase;
    property ChangeIndent: Boolean read FSettings.ChangeIndent write
      FSettings.ChangeIndent;
    property indentBegin: Boolean read FSettings.indentBegin write
      FSettings.indentBegin;
    property NoIndentElseIf: Boolean read FSettings.NoIndentElseIf write
      FSettings.NoIndentElseIf;
    property IndentComments: Boolean read FSettings.IndentComments write
      FSettings.IndentComments;
    property IndentCompDirectives: Boolean read FSettings.IndentCompDirectives
      write FSettings.IndentCompDirectives;
    property IndentTry: Boolean read FSettings.IndentTry write
      FSettings.IndentTry;
    property IndentTryElse: Boolean read FSettings.IndentTryElse write
      FSettings.IndentTryElse;
    property IndentCaseElse: Boolean read FSettings.IndentCaseElse write
      FSettings.IndentCaseElse;
    property BlankProc: Boolean read FSettings.BlankProc write
      FSettings.BlankProc;
    property RemoveDoubleBlank: Boolean read FSettings.RemoveDoubleBlank write
      FSettings.RemoveDoubleBlank;
    property FeedRoundBegin: TFeedBegin read FSettings.FeedRoundBegin write
      FSettings.FeedRoundBegin;
    property FeedAfterThen: Boolean read FSettings.FeedAfterThen write
      FSettings.FeedAfterThen;
    property ExceptSingle: Boolean read FSettings.ExceptSingle write
      FSettings.ExceptSingle;
    property NoFeedBeforeThen: Boolean read FSettings.NoFeedBeforeThen write
      FSettings.NoFeedBeforeThen;
    property FeedElseIf: Boolean read FSettings.FeedElseIf write
      FSettings.FeedElseIf;
    property FeedEachUnit: Boolean read FSettings.FeedEachUnit write
      FSettings.FeedEachUnit;
    property FeedAfterVar: Boolean read FSettings.FeedAfterVar write
      FSettings.FeedAfterVar;
    property WrapLines: Boolean read FSettings.WrapLines write
      FSettings.WrapLines;
    property WrapPosition: Byte read FSettings.WrapPosition write
      FSettings.WrapPosition;
    property AlignCommentPos: Byte read FSettings.AlignCommentPos write
      FSettings.AlignCommentPos;
    property AlignComments: Boolean read FSettings.AlignComments write
      FSettings.AlignComments;
    property AlignVarPos: Byte read FSettings.AlignVarPos write
      FSettings.AlignVarPos;
    property AlignVar: Boolean read FSettings.AlignVar write
      FSettings.AlignVar;
    property FeedBeforeEnd: Boolean read FSettings.FeedBeforeEnd write
      FSettings.FeedBeforeEnd;
    property FillNewWords: TFillMode read FSettings.FillNewWords write
      SetFillNewWords;
    property FeedAfterSemiColon: Boolean read FSettings.FeedAfterSemiColon write
      FSettings.FeedAfterSemiColon;
    property BlankSubProc: Boolean read FSettings.BlankSubProc write
      FSettings.BlankSubProc;
    property CommentFunction: Boolean read FSettings.CommentFunction write
      FSettings.CommentFunction;
    property CommentUnit: Boolean read FSettings.CommentUnit write
      FSettings.CommentUnit;
    property StartCommentOut: TCommentArray read FSettings.StartCommentOut write
      FSettings.StartCommentOut;
    property EndCommentOut: TCommentArray read FSettings.EndCommentOut write
      FSettings.EndCommentOut;
    property CapFileName: PChar read FCapFileName write SetCapFileName;
    property Text: PChar read GetTextStr write SetTextStr;
    property OnProgress: TProgressEvent read FOnProgress write SetOnProgress;
    property ShortCutText: string read GetShortCutText write SetShortCutText;
    property ShortCut: TShortCut read GetShortCut write SetShortCut;
    property CfgFile: string read FCfgFile write FCfgFile;
    property RootDir: string read GetRootDir write SetRootdir;
    property Settings: TSettings read FSettings write FSettings;
  end;

var
  Formatter: TPascalParser;

implementation

uses Dialogs, DelForExpert;

constructor TPascalParser.Create(ARootdir: PChar);
begin
  Formatter := Self;
  CapFileTime := -1;
  SetDefault;
  Timer := TTimer.Create(nil);
  Timer.Interval := 1000;
  Timer.OnTimer := TimerTimer;
  RootDir := ARootdir;
  Activate;
end;

procedure TPascalParser.Activate;
begin
  LoadDll(PChar(RootDir));
end;

procedure TPascalParser.deActivate;
begin
  FreeDll;
end;

procedure TPascalParser.SetDefault;
begin
  CapFileName := nil;
  WrapLines := False;
  WrapPosition := 81;
  AlignCommentPos := 40;
  AlignComments := False;
  AlignVarPos := 20;
  AlignVar := False;
  SpaceEqualOper := spBoth;
  SpaceOperators := spBoth;
  SpaceColon := spAfter;
  SpaceComma := spAfter;
  SpaceSemiColon := spAfter;
  SpaceLeftBr := spNone;
  SpaceRightBr := spNone;
  SpaceLeftHook := spNone;
  SpaceRightHook := spNone;
  ReservedCase := rfLowerCase;
  StandDirectivesCase := rfLowerCase;
  ChangeIndent := True;
  indentBegin := False;
  IndentComments := False;
  IndentCompDirectives := False;
  IndentTryElse := False;
  IndentCaseElse := False;
  FeedAfterThen := False;
  ExceptSingle := False;
  FeedElseIf := False;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区三区乱码在线| 国产精品18久久久久| 亚洲成人在线免费| 黄色精品一二区| av电影在线不卡| 欧美疯狂性受xxxxx喷水图片| 2020国产精品久久精品美国| 中文字幕在线免费不卡| 偷拍自拍另类欧美| 国产精品一卡二卡| 成人黄色a**站在线观看| 99v久久综合狠狠综合久久| 中文字幕一区二区三区不卡在线 | 午夜日韩在线观看| 国产一区二区三区视频在线播放 | 国产精品三级在线观看| 亚洲一区二区三区中文字幕在线| 国产综合色精品一区二区三区| 国产一区二区视频在线| 在线观看av一区二区| 欧美精品一区二区三区高清aⅴ| 一区二区三区资源| 国产精品一区二区久久精品爱涩 | 中文字幕亚洲在| 高清在线成人网| 久久蜜桃av一区二区天堂| 国产精品一区二区三区四区| 最新高清无码专区| 久久免费美女视频| 久久国产尿小便嘘嘘| 91精品国产综合久久久久久漫画| 性欧美疯狂xxxxbbbb| 精品久久久久久久久久久久久久久 | 国产成人精品免费网站| 26uuu精品一区二区三区四区在线| 久久电影国产免费久久电影| 欧美亚洲丝袜传媒另类| 裸体歌舞表演一区二区| 亚洲一区成人在线| 国产日产精品一区| 亚洲美女偷拍久久| 亚洲日本乱码在线观看| 亚洲一区二区三区影院| 国产欧美一区视频| 亚洲视频在线观看一区| 男女男精品网站| 国产不卡在线播放| 欧美在线999| 亚洲精品在线观看网站| 在线看国产一区二区| 日韩一区二区三区视频| 欧美国产精品劲爆| 国产午夜精品一区二区| 亚洲三级在线看| 亚洲国产成人精品视频| 日韩激情一二三区| av亚洲精华国产精华精华| 国内精品伊人久久久久av一坑| 韩国理伦片一区二区三区在线播放| 亚洲成人1区2区| 综合色天天鬼久久鬼色| 亚洲视频你懂的| 亚洲狠狠爱一区二区三区| 亚洲女人****多毛耸耸8| 一区二区成人在线观看| 国产精品卡一卡二卡三| 亚洲电影中文字幕在线观看| 国产精品一区在线| 欧美一级片免费看| 亚洲精选视频在线| 国产成人夜色高潮福利影视| 99精品久久久久久| 欧美国产成人在线| 欧美亚洲日本国产| 亚洲一区精品在线| 成+人+亚洲+综合天堂| 欧美日韩国产系列| 国产一区福利在线| 亚洲一区二区三区四区五区中文| 欧美xfplay| 欧美日韩一区二区三区视频| 国产在线看一区| 午夜精品123| 日韩理论片网站| 亚洲精品一区二区三区影院 | 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 亚洲综合一二区| 国产日韩综合av| 6080日韩午夜伦伦午夜伦| 国产一区二区三区国产| 天天综合网天天综合色| 椎名由奈av一区二区三区| 久久久蜜桃精品| 欧美一区二区福利在线| 欧美在线一区二区三区| 99免费精品视频| 国产麻豆视频精品| 麻豆一区二区三| 亚洲18色成人| 亚洲精品成人a在线观看| 国产精品久久久久久亚洲伦| 国产欧美日韩另类一区| 久久青草国产手机看片福利盒子| 在线播放亚洲一区| 欧美日韩亚洲另类| 欧美日韩精品欧美日韩精品一| 91免费观看视频在线| 91网站最新地址| 99精品偷自拍| 不卡av电影在线播放| 国产成人一区在线| 懂色一区二区三区免费观看| 国内精品嫩模私拍在线| 九九精品一区二区| 国产一区二区精品在线观看| 毛片av中文字幕一区二区| 蜜臀久久久久久久| 蜜臀av一区二区在线免费观看| 蜜臀91精品一区二区三区| 男女激情视频一区| 国产综合久久久久影院| 国产河南妇女毛片精品久久久 | 青青青伊人色综合久久| 另类成人小视频在线| 精品中文字幕一区二区| 激情欧美日韩一区二区| 国产成人一区在线| 91蜜桃视频在线| 欧美群妇大交群中文字幕| 日韩欧美一区二区在线视频| 欧美xxxxx裸体时装秀| 国产午夜精品美女毛片视频| 久久精品欧美日韩| 亚洲乱码一区二区三区在线观看| 亚洲六月丁香色婷婷综合久久| 亚洲香蕉伊在人在线观| 日韩高清一区二区| 国产剧情av麻豆香蕉精品| av电影在线不卡| 制服丝袜av成人在线看| 欧美国产精品专区| 亚洲国产精品尤物yw在线观看| 久久精品久久精品| 成人午夜激情片| 欧美裸体bbwbbwbbw| 国产欧美一区二区精品秋霞影院| 亚洲欧美福利一区二区| 蜜桃视频在线观看一区| 成人天堂资源www在线| 9191成人精品久久| 日本一区二区三区在线观看| 亚洲影院在线观看| 狠狠色2019综合网| 欧美在线影院一区二区| 久久久久久综合| 亚洲成av人片在www色猫咪| 国产精一区二区三区| 欧美色视频一区| 国产欧美日韩另类一区| 日本不卡一二三| 91视频www| 久久综合视频网| 香蕉久久夜色精品国产使用方法 | 美女视频免费一区| 91精品91久久久中77777| 国产日韩亚洲欧美综合| 日韩精品视频网| 色呦呦网站一区| 中文字幕二三区不卡| 蜜桃免费网站一区二区三区| 91久久精品一区二区| 欧美国产精品一区二区| 激情伊人五月天久久综合| 精品视频在线免费观看| 亚洲欧美激情在线| 成人三级伦理片| 国产亚洲精品中文字幕| 免费成人在线视频观看| 欧美男男青年gay1069videost| 亚洲天堂中文字幕| 东方aⅴ免费观看久久av| 欧美成人激情免费网| 丝袜脚交一区二区| 欧美视频一区二区三区在线观看 | 欧美在线观看你懂的| 国产精品初高中害羞小美女文| 国内成+人亚洲+欧美+综合在线 | 欧美日韩在线三级| 亚洲精品一二三| 99精品视频在线观看免费| 国产欧美精品区一区二区三区| 久久国产精品区| 久久综合色天天久久综合图片| 老司机午夜精品| 精品久久久久久久一区二区蜜臀| 日本不卡一二三| 精品福利视频一区二区三区| 国产在线视频精品一区| 久久一夜天堂av一区二区三区| 激情五月激情综合网|