亚洲欧美第一页_禁久久精品乱码_粉嫩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
{$IFDEF CS_TRACE} ,CodeSiteLogging {$ENDIF};
{
  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, {FileCtrl,} DelForExpert;

constructor TPascalParser.Create(ARootdir: PChar);
begin
  {$IFDEF CS_TRACE}CodeSite.EnterMethod( Self, 'Create' );{$ENDIF}
 Formatter := Self;
 CapFileTime := -1;
 SetDefault;
// Timer := TTimer.Create(nil);
// Timer.Interval := 1000;
// Timer.OnTimer := TimerTimer;
 RootDir := ARootdir;
 Activate;
  {$IFDEF CS_TRACE}CodeSite.ExitMethod( Self, 'Create' );{$ENDIF}
end;

procedure TPascalParser.Activate;
begin
  {$IFDEF CS_TRACE}CodeSite.EnterMethod( Self, 'Activate' );{$ENDIF}
 LoadDll(PChar(RootDir));
  {$IFDEF CS_TRACE}CodeSite.ExitMethod( Self, 'Activate' );{$ENDIF}
end;

procedure TPascalParser.deActivate;
begin
  {$IFDEF CS_TRACE}CodeSite.EnterMethod( Self, 'deActivate' );{$ENDIF}
 FreeDll;
  {$IFDEF CS_TRACE}CodeSite.ExitMethod( Self, 'deActivate' );{$ENDIF}
end;

procedure TPascalParser.SetDefault;
begin
  {$IFDEF CS_TRACE}CodeSite.EnterMethod( Self, 'SetDefault' );{$ENDIF}
 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;
 FeedEachUnit := False;
 NoFeedBeforeThen := False;
 NoIndentElseIf := False;
 FeedAfterVar := False;
 FeedBeforeEnd := False;
 FeedRoundBegin := UnChanged;
 FeedAfterSemiColon := False;
 FillNewWords := fmUnchanged;
 IndentTry := False;
 UpperCompDirectives := True;
 UpperNumbers := True;
 SpacePerIndent := 2;
 BlankProc := True;
 RemoveDoubleBlank := False;
 BlankSubProc := False;
 CommentFunction := False;
 CommentUnit := False;
 StrCopy(StartCommentOut, '{(*}');
 StrCopy(EndCommentOut, '{*)}');
 ShortCut := Menus.ShortCut(Word('D'), [ssCtrl]);
  {$IFDEF CS_TRACE}CodeSite.ExitMethod( Self, 'SetDefault' );{$ENDIF}
end;

procedure TPascalParser.SetBorland;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆精品一区二区三区| 欧美日韩免费观看一区二区三区 | 色香蕉久久蜜桃| 欧美一二三四在线| 亚洲男人电影天堂| 国产一区二区91| 日韩丝袜情趣美女图片| 亚洲欧美激情插| 国产suv精品一区二区883| 欧美精选一区二区| 亚洲香蕉伊在人在线观| 成人黄页在线观看| 亚洲精品一区二区在线观看| 视频一区视频二区在线观看| 色综合久久综合| 中文一区二区在线观看| 蜜桃精品在线观看| 制服丝袜一区二区三区| 亚洲高清免费一级二级三级| 91丨porny丨首页| 中文字幕欧美日韩一区| 国产99久久久久| 久久精品欧美日韩| 国产乱码精品1区2区3区| 欧美tickling挠脚心丨vk| 日本视频一区二区| 制服丝袜av成人在线看| 午夜精品123| 欧美精品久久99| 午夜天堂影视香蕉久久| 91传媒视频在线播放| 一区二区三区在线观看网站| 99精品桃花视频在线观看| 国产精品无人区| proumb性欧美在线观看| 亚洲欧洲日产国产综合网| 成人免费三级在线| 中文字幕一区二区不卡| 色婷婷综合久久久中文字幕| 亚洲精品免费在线播放| 欧美色电影在线| 日本大胆欧美人术艺术动态| 日韩视频一区在线观看| 激情综合网av| 欧美激情一区二区三区不卡| 成人小视频在线| ...av二区三区久久精品| 色婷婷精品久久二区二区蜜臂av | 欧美色综合天天久久综合精品| 亚洲精品中文在线| 欧美日本在线一区| 免费精品视频在线| 国产网红主播福利一区二区| 不卡影院免费观看| 亚洲国产毛片aaaaa无费看 | 久久久久一区二区三区四区| 蜜桃视频第一区免费观看| 国产亚洲成aⅴ人片在线观看 | 国产成人午夜视频| 亚洲视频一二三区| 欧美人妇做爰xxxⅹ性高电影| 精品午夜久久福利影院| 国产精品人人做人人爽人人添| 91亚洲精品久久久蜜桃| 五月婷婷综合在线| 久久久精品日韩欧美| 欧美性色综合网| 精品一区二区在线视频| 最新久久zyz资源站| 欧美卡1卡2卡| 成人av动漫网站| 日韩精品电影在线| 久久精品欧美一区二区三区不卡 | 久久久久久久久久美女| 91视频国产观看| 毛片一区二区三区| √…a在线天堂一区| 精品国产成人在线影院| 日本高清无吗v一区| 国产成人在线影院| 午夜私人影院久久久久| 国产精品免费视频观看| 日韩欧美的一区| 不卡的电影网站| 久久99精品国产.久久久久久| 亚洲色图视频网站| 26uuu久久综合| 欧美日韩国产一级二级| 99热这里都是精品| 精品亚洲免费视频| 蜜臀av性久久久久av蜜臀妖精| 中文字幕亚洲不卡| 久久久久久久久免费| 7777精品伊人久久久大香线蕉完整版 | av资源网一区| 精品午夜一区二区三区在线观看| 亚洲自拍另类综合| 国产精品久久久久久久久免费丝袜| 日韩一区二区三区三四区视频在线观看| 色综合久久精品| av在线不卡观看免费观看| 狠狠狠色丁香婷婷综合激情| 午夜精品一区二区三区三上悠亚| 亚洲欧美日韩国产一区二区三区| 久久精品一二三| 日韩视频一区二区三区在线播放| 色欧美乱欧美15图片| aaa欧美日韩| 成人性视频网站| 高清不卡一二三区| 国产精品白丝jk黑袜喷水| 精品综合免费视频观看| 欧美aaaaa成人免费观看视频| 亚洲h在线观看| 日韩av一二三| 麻豆国产欧美一区二区三区| 日本强好片久久久久久aaa| 亚洲一级二级在线| 亚洲国产美国国产综合一区二区| 亚洲国产精品嫩草影院| 午夜精品一区二区三区三上悠亚| 亚洲一区二区在线免费观看视频| 一区二区成人在线观看| 一区二区三区不卡在线观看| 亚洲综合男人的天堂| 亚洲18女电影在线观看| 久久精品免费观看| 国产精品一线二线三线精华| 国产馆精品极品| www.99精品| 欧美视频日韩视频在线观看| 日韩一级大片在线观看| 日韩精品影音先锋| 国产日韩欧美综合一区| 1024国产精品| 首页国产丝袜综合| 国内精品自线一区二区三区视频| 国产·精品毛片| 91网站黄www| 欧美日韩国产欧美日美国产精品| 欧美精品三级在线观看| 久久久久久夜精品精品免费| 亚洲天堂精品在线观看| 石原莉奈在线亚洲二区| 激情综合色播五月| 成人动漫在线一区| 欧美日韩免费视频| 国产无遮挡一区二区三区毛片日本| 亚洲青青青在线视频| 蜜臀精品一区二区三区在线观看| 国产福利91精品一区| 欧美在线你懂得| 久久精品欧美日韩| 午夜精品久久久久久| 成人午夜激情影院| 91美女在线视频| 日韩欧美国产综合| 亚洲免费观看高清| 久久成人久久爱| 91久久人澡人人添人人爽欧美| 欧美一区二区三区免费视频| 国产精品毛片久久久久久| 三级欧美韩日大片在线看| 99在线精品视频| 日韩免费一区二区三区在线播放| 国产精品国产自产拍高清av| 麻豆精品视频在线观看| 在线观看一区日韩| 国产精品蜜臀在线观看| 蜜臀av一区二区在线免费观看| 一本大道久久a久久综合| 欧美精品一区在线观看| 天堂久久久久va久久久久| 色综合久久久久网| 国产亚洲欧美一区在线观看| 日韩精品亚洲专区| 91麻豆精东视频| 国产欧美日韩在线| 久久精品国产久精国产爱| 色狠狠av一区二区三区| 国产精品色在线观看| 麻豆成人久久精品二区三区小说| 欧美色倩网站大全免费| 国产精品电影一区二区| 国产suv精品一区二区883| 欧美成人性福生活免费看| 亚洲成av人片在www色猫咪| 一本大道综合伊人精品热热| 亚洲国产精品av| 成人毛片在线观看| 国产日韩欧美一区二区三区乱码| 免费人成在线不卡| 91精品国产欧美一区二区18 | 久久久精品tv| 国产乱码一区二区三区| 日韩精品一区二区三区视频在线观看 | 午夜精品久久一牛影视| 欧美日韩一区三区| 一区二区成人在线视频| 91国偷自产一区二区三区观看 |