function ReadSettingTime(const AHost: string): Integer;
function CheckSambaTime(const AHost: string; ATime: TDateTime): Boolean;
procedure SetSamba24(AURL: string);
- // \88ø\97p\95\84\82Ì\8eæ\93¾
+ /// \88ø\97p\95\84\82Ì\8eæ\93¾
function GetOEIndentChar : string;
+ /// \96{\95¶\82Ì\8eæ\93¾
+ function GetBody : string;
protected
procedure CreateParams(var Params: TCreateParams); override;
public
SetSamba24(FThreadItem.ParentBoard.URL);
end;
+function TEditorForm.GetBody : string;
+var
+ body : string;
+ regexp : TAWKStr;
+begin
+
+ body := BodyEdit.Text;
+ if GikoSys.Setting.SpaceToNBSP then begin
+ body := CustomStringReplace( body, #09, ' ' );
+ body := CustomStringReplace( body, ' ', ' ' );
+ body := CustomStringReplace( body, ' ', ' ' );
+ regexp := TAWKStr.Create( nil );
+ try
+ regexp.RegExp := '^ ';
+ regexp.GSub( '\ ', body );
+ finally
+ regexp.Free;
+ end;
+ end;
+
+ Result := body;
+
+end;
+
procedure TEditorForm.SetFont;
begin
BodyEdit.Font.Name := GikoSys.Setting.EditorFontName;
posTrip : Integer;
tripOrigin : string;
- regexp : TAWKStr;
begin
if FThreadItem = nil then begin
No := '1';
Title := RepHtml(FThreadItem.Title);
end;
- body := BodyEdit.Text;
- if GikoSys.Setting.SpaceToNBSP then begin
- body := CustomStringReplace( body, #09, ' ' );
- body := CustomStringReplace( body, ' ', ' ' );
- body := CustomStringReplace( body, ' ', ' ' );
- regexp := TAWKStr.Create( nil );
- try
- regexp.RegExp := '^ ';
- regexp.GSub( '\ ', body );
- finally
- regexp.Free;
- end;
- end;
+ body := GetBody;
Namae := RepHtml(NameComboBox.Text);
Mail := RepHtml(MailComboBox.Text);
Adjust: Integer;
Board: TBoard;
body : string;
- regexp : TAWKStr;
begin
if FThreadItem = nil then
Board := FBoard
SendTime := GikoSys.DateTimeToInt(Board.LastGetTime);
end;
- body := BodyEdit.Text;
- if GikoSys.Setting.SpaceToNBSP then begin
- body := CustomStringReplace( body, #09, ' ' );
- body := CustomStringReplace( body, ' ', ' ' );
- body := CustomStringReplace( body, ' ', ' ' );
- regexp := TAWKStr.Create( nil );
- try
- regexp.RegExp := '^ ';
- regexp.GSub( '\ ', body );
- finally
- regexp.Free;
- end;
- end;
+ body := GetBody;
SessionID := GikoSys.Dolib.SessionID;
if SessionID <> '' then
rc: Integer;
state : TGikoDownloadState;
body : string;
- regexp : TAWKStr;
begin
if FWork then
Exit;
end;
if Board.IsBoardPlugInAvailable then begin
- body := BodyEdit.Text;
- if GikoSys.Setting.SpaceToNBSP then begin
- body := CustomStringReplace( body, #09, ' ' );
- body := CustomStringReplace( body, ' ', ' ' );
- body := CustomStringReplace( body, ' ', ' ' );
- regexp := TAWKStr.Create( nil );
- try
- regexp.RegExp := '^ ';
- regexp.GSub( '\ ', body );
- finally
- regexp.Free;
- end;
- end;
+ body := GetBody;
if FThreadItem = nil then begin
// \83X\83\8c\97§\82Ä