|
@@ -403,11 +403,48 @@ procedure RegisterEditors;
|
|
implementation
|
|
implementation
|
|
|
|
|
|
uses
|
|
uses
|
|
- Dos, App, StdDlg, MsgBox, Resource;
|
|
|
|
|
|
+ Dos, App, StdDlg, MsgBox{, Resource};
|
|
|
|
|
|
type
|
|
type
|
|
pword = ^word;
|
|
pword = ^word;
|
|
|
|
|
|
|
|
+resourcestring sClipboard='Clipboard';
|
|
|
|
+ sFileCreateError='Error creating file %s';
|
|
|
|
+ sFileReadError='Error reading file %s';
|
|
|
|
+ sFileUntitled='Save untitled file?';
|
|
|
|
+ sFileWriteError='Error writing to file %s';
|
|
|
|
+ sFind='Find';
|
|
|
|
+ sJumpTo='Jump To';
|
|
|
|
+ sModified=''#3'%s'#13#10#13#3'has been modified. Save?';
|
|
|
|
+ sOutOfMemory='Not enough memory for this operation.';
|
|
|
|
+ sPasteNotPossible='Wordwrap on: Paste not possible in current margins when at end of line.';
|
|
|
|
+ sReformatDocument='Reformat Document';
|
|
|
|
+ sReformatNotPossible='Paragraph reformat not possible while trying to wrap current line with current margins.';
|
|
|
|
+ sReformattingTheDocument='Reformatting the document:';
|
|
|
|
+ sReplaceNotPossible='Wordwrap on: Replace not possible in current margins when at end of line.';
|
|
|
|
+ sReplaceThisOccurence='Replace this occurence?';
|
|
|
|
+ sRightMargin='Right Margin';
|
|
|
|
+ sSearchStringNotFound='Search string not found.';
|
|
|
|
+ sSelectWhereToBegin='Please select where to begin.';
|
|
|
|
+ sSetting='Setting:';
|
|
|
|
+ sTabSettings='Tab Settings';
|
|
|
|
+ sUnknownDialog='Unknown dialog requested!';
|
|
|
|
+ sUntitled='Untitled';
|
|
|
|
+ sWordWrapNotPossible='Wordwrap on: Wordwrap not possible in current margins with continuous line.';
|
|
|
|
+ sWordWrapOff='You must turn on wordwrap before you can reformat.';
|
|
|
|
+
|
|
|
|
+ slCaseSensitive='~C~ase sensitive';
|
|
|
|
+ slCurrentLine='~C~urrent line';
|
|
|
|
+ slEntireDocument='~E~ntire document';
|
|
|
|
+ slLineNumber='~L~ine number';
|
|
|
|
+ slNewText='~N~ew text';
|
|
|
|
+ slPromptOnReplace='~P~rompt on replace';
|
|
|
|
+ slReplace='~R~eplace';
|
|
|
|
+ slReplaceAll='~R~eplace all';
|
|
|
|
+ slTextToFind='~T~ext to find';
|
|
|
|
+ slWholeWordsOnly='~W~hole words only';
|
|
|
|
+
|
|
|
|
+
|
|
CONST
|
|
CONST
|
|
{ Update flag constants. }
|
|
{ Update flag constants. }
|
|
ufUpdate = $01;
|
|
ufUpdate = $01;
|
|
@@ -575,7 +612,7 @@ var
|
|
R: TRect;
|
|
R: TRect;
|
|
begin
|
|
begin
|
|
R.Assign(0, 0, 38, 12);
|
|
R.Assign(0, 0, 38, 12);
|
|
- D := New(PDialog, Init(R, strings^.get(sFind)));
|
|
|
|
|
|
+ D := New(PDialog, Init(R,sFind));
|
|
with D^ do
|
|
with D^ do
|
|
begin
|
|
begin
|
|
Options := Options or ofCentered;
|
|
Options := Options or ofCentered;
|
|
@@ -585,24 +622,24 @@ begin
|
|
Control^.HelpCtx := hcDFindText;
|
|
Control^.HelpCtx := hcDFindText;
|
|
Insert(Control);
|
|
Insert(Control);
|
|
R.Assign(2, 2, 15, 3);
|
|
R.Assign(2, 2, 15, 3);
|
|
- Insert(New(PLabel, Init(R, labels^.get(slTextToFind), Control)));
|
|
|
|
|
|
+ Insert(New(PLabel, Init(R, slTextToFind, Control)));
|
|
R.Assign(32, 3, 35, 4);
|
|
R.Assign(32, 3, 35, 4);
|
|
Insert(New(PHistory, Init(R, PInputLine(Control), 10)));
|
|
Insert(New(PHistory, Init(R, PInputLine(Control), 10)));
|
|
|
|
|
|
R.Assign(3, 5, 35, 7);
|
|
R.Assign(3, 5, 35, 7);
|
|
Control := New(PCheckBoxes, Init(R,
|
|
Control := New(PCheckBoxes, Init(R,
|
|
- NewSItem (labels^.get(slCaseSensitive),
|
|
|
|
- NewSItem (labels^.get(slWholeWordsOnly),nil))));
|
|
|
|
|
|
+ NewSItem (slCaseSensitive,
|
|
|
|
+ NewSItem (slWholeWordsOnly,nil))));
|
|
Control^.HelpCtx := hcCCaseSensitive;
|
|
Control^.HelpCtx := hcCCaseSensitive;
|
|
Insert(Control);
|
|
Insert(Control);
|
|
|
|
|
|
R.Assign(14, 9, 24, 11);
|
|
R.Assign(14, 9, 24, 11);
|
|
- Control := New (PButton, Init(R,labels^.get(slOK),cmOk,bfDefault));
|
|
|
|
|
|
+ Control := New (PButton, Init(R,slOK,cmOk,bfDefault));
|
|
Control^.HelpCtx := hcDOk;
|
|
Control^.HelpCtx := hcDOk;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
Inc(R.A.X, 12); Inc(R.B.X, 12);
|
|
Inc(R.A.X, 12); Inc(R.B.X, 12);
|
|
- Control := New (PButton, Init(R,labels^.get(slCancel),cmCancel, bfNormal));
|
|
|
|
|
|
+ Control := New (PButton, Init(R,slCancel,cmCancel, bfNormal));
|
|
Control^.HelpCtx := hcDCancel;
|
|
Control^.HelpCtx := hcDCancel;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
@@ -619,7 +656,7 @@ var
|
|
R: TRect;
|
|
R: TRect;
|
|
begin
|
|
begin
|
|
R.Assign(0, 0, 40, 16);
|
|
R.Assign(0, 0, 40, 16);
|
|
- D := New(PDialog, Init(R,labels^.get(slReplace)));
|
|
|
|
|
|
+ D := New(PDialog, Init(R,slReplace));
|
|
with D^ do
|
|
with D^ do
|
|
begin
|
|
begin
|
|
Options := Options or ofCentered;
|
|
Options := Options or ofCentered;
|
|
@@ -629,7 +666,7 @@ begin
|
|
Control^.HelpCtx := hcDFindText;
|
|
Control^.HelpCtx := hcDFindText;
|
|
Insert(Control);
|
|
Insert(Control);
|
|
R.Assign(2, 2, 15, 3);
|
|
R.Assign(2, 2, 15, 3);
|
|
- Insert(New(PLabel, Init(R,labels^.get(slTextToFind), Control)));
|
|
|
|
|
|
+ Insert(New(PLabel, Init(R,slTextToFind, Control)));
|
|
R.Assign(34, 3, 37, 4);
|
|
R.Assign(34, 3, 37, 4);
|
|
Insert(New(PHistory, Init(R, PInputLine(Control), 10)));
|
|
Insert(New(PHistory, Init(R, PInputLine(Control), 10)));
|
|
|
|
|
|
@@ -638,26 +675,26 @@ begin
|
|
Control^.HelpCtx := hcDReplaceText;
|
|
Control^.HelpCtx := hcDReplaceText;
|
|
Insert(Control);
|
|
Insert(Control);
|
|
R.Assign(2, 5, 12, 6);
|
|
R.Assign(2, 5, 12, 6);
|
|
- Insert(New(PLabel, Init(R,labels^.get(slNewText), Control)));
|
|
|
|
|
|
+ Insert(New(PLabel, Init(R,slNewText, Control)));
|
|
R.Assign(34, 6, 37, 7);
|
|
R.Assign(34, 6, 37, 7);
|
|
Insert(New(PHistory, Init(R, PInputLine(Control), 11)));
|
|
Insert(New(PHistory, Init(R, PInputLine(Control), 11)));
|
|
|
|
|
|
R.Assign(3, 8, 37, 12);
|
|
R.Assign(3, 8, 37, 12);
|
|
Control := New (Dialogs.PCheckBoxes, Init (R,
|
|
Control := New (Dialogs.PCheckBoxes, Init (R,
|
|
- NewSItem (labels^.get(slCasesensitive),
|
|
|
|
- NewSItem (labels^.get(slWholewordsonly),
|
|
|
|
- NewSItem (labels^.get(slPromptonreplace),
|
|
|
|
- NewSItem (labels^.get(slReplaceall), nil))))));
|
|
|
|
|
|
+ NewSItem (slCasesensitive,
|
|
|
|
+ NewSItem (slWholewordsonly,
|
|
|
|
+ NewSItem (slPromptonreplace,
|
|
|
|
+ NewSItem (slReplaceall, nil))))));
|
|
Control^.HelpCtx := hcCCaseSensitive;
|
|
Control^.HelpCtx := hcCCaseSensitive;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (8, 13, 18, 15);
|
|
R.Assign (8, 13, 18, 15);
|
|
- Control := New (PButton, Init (R,labels^.get(slOK), cmOk, bfDefault));
|
|
|
|
|
|
+ Control := New (PButton, Init (R,slOK, cmOk, bfDefault));
|
|
Control^.HelpCtx := hcDOk;
|
|
Control^.HelpCtx := hcDOk;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (22, 13, 32, 15);
|
|
R.Assign (22, 13, 32, 15);
|
|
- Control := New (PButton, Init (R,labels^.get(slCancel), cmCancel, bfNormal));
|
|
|
|
|
|
+ Control := New (PButton, Init (R,slCancel, cmCancel, bfNormal));
|
|
Control^.HelpCtx := hcDCancel;
|
|
Control^.HelpCtx := hcDCancel;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
@@ -674,13 +711,13 @@ VAR
|
|
Control: PView;
|
|
Control: PView;
|
|
Begin
|
|
Begin
|
|
R.Assign (0, 0, 26, 8);
|
|
R.Assign (0, 0, 26, 8);
|
|
- D := New(PDialog, Init(R,strings^.get(sJumpTo)));
|
|
|
|
|
|
+ D := New(PDialog, Init(R,sJumpTo));
|
|
with D^ do
|
|
with D^ do
|
|
begin
|
|
begin
|
|
Options := Options or ofCentered;
|
|
Options := Options or ofCentered;
|
|
|
|
|
|
R.Assign (3, 2, 15, 3);
|
|
R.Assign (3, 2, 15, 3);
|
|
- Control := New (Dialogs.PStaticText, Init (R,labels^.get(slLineNumber)));
|
|
|
|
|
|
+ Control := New (Dialogs.PStaticText, Init (R,slLineNumber));
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (15, 2, 21, 3);
|
|
R.Assign (15, 2, 21, 3);
|
|
@@ -692,12 +729,12 @@ Begin
|
|
Insert (New (Dialogs.PHistory, Init (R, Dialogs.PInputLine (Control), 12)));
|
|
Insert (New (Dialogs.PHistory, Init (R, Dialogs.PInputLine (Control), 12)));
|
|
|
|
|
|
R.Assign (2, 5, 12, 7);
|
|
R.Assign (2, 5, 12, 7);
|
|
- Control := New (Dialogs.PButton, Init (R, labels^.get(slOK), cmOK, Dialogs.bfDefault));
|
|
|
|
|
|
+ Control := New (Dialogs.PButton, Init (R, slOK, cmOK, Dialogs.bfDefault));
|
|
Control^.HelpCtx := hcDOk;
|
|
Control^.HelpCtx := hcDOk;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (14, 5, 24, 7);
|
|
R.Assign (14, 5, 24, 7);
|
|
- Control := New (Dialogs.PButton, Init (R, labels^.get(slCancel), cmCancel, Dialogs.bfNormal));
|
|
|
|
|
|
+ Control := New (Dialogs.PButton, Init (R, slCancel, cmCancel, Dialogs.bfNormal));
|
|
Control^.HelpCtx := hcDCancel;
|
|
Control^.HelpCtx := hcDCancel;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
@@ -716,37 +753,37 @@ VAR
|
|
Control : PView;
|
|
Control : PView;
|
|
Begin
|
|
Begin
|
|
R.Assign (0, 0, 32, 11);
|
|
R.Assign (0, 0, 32, 11);
|
|
- D := New (Dialogs.PDialog, Init (R, strings^.get(sReformatDocument)));
|
|
|
|
|
|
+ D := New (Dialogs.PDialog, Init (R, sReformatDocument));
|
|
with D^ do
|
|
with D^ do
|
|
begin
|
|
begin
|
|
Options := Options or ofCentered;
|
|
Options := Options or ofCentered;
|
|
|
|
|
|
R.Assign (2, 2, 30, 3);
|
|
R.Assign (2, 2, 30, 3);
|
|
- Control := New (Dialogs.PStaticText, Init (R, strings^.get(sSelectWhereToBegin)));
|
|
|
|
|
|
+ Control := New (Dialogs.PStaticText, Init (R, sSelectWhereToBegin));
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (3, 3, 29, 4);
|
|
R.Assign (3, 3, 29, 4);
|
|
- Control := New (Dialogs.PStaticText, Init (R, strings^.get(sReformattingTheDocument)));
|
|
|
|
|
|
+ Control := New (Dialogs.PStaticText, Init (R, sReformattingTheDocument));
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (50, 5, 68, 6);
|
|
R.Assign (50, 5, 68, 6);
|
|
- Control := New (Dialogs.PLabel, Init (R, strings^.get(sReformatDocument), Control));
|
|
|
|
|
|
+ Control := New (Dialogs.PLabel, Init (R, sReformatDocument, Control));
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (5, 5, 26, 7);
|
|
R.Assign (5, 5, 26, 7);
|
|
Control := New (Dialogs.PRadioButtons, Init (R,
|
|
Control := New (Dialogs.PRadioButtons, Init (R,
|
|
- NewSItem (labels^.get(slCurrentLine),
|
|
|
|
- NewSItem (labels^.get(slEntireDocument), Nil))));
|
|
|
|
|
|
+ NewSItem (slCurrentLine,
|
|
|
|
+ NewSItem (slEntireDocument, Nil))));
|
|
Control^.HelpCtx := hcDReformDoc;
|
|
Control^.HelpCtx := hcDReformDoc;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (4, 8, 14, 10);
|
|
R.Assign (4, 8, 14, 10);
|
|
- Control := New (Dialogs.PButton, Init (R,labels^.get(slOK), cmOK, Dialogs.bfDefault));
|
|
|
|
|
|
+ Control := New (Dialogs.PButton, Init (R, slOK, cmOK, Dialogs.bfDefault));
|
|
Control^.HelpCtx := hcDOk;
|
|
Control^.HelpCtx := hcDOk;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (17, 8, 27, 10);
|
|
R.Assign (17, 8, 27, 10);
|
|
- Control := New (Dialogs.PButton, Init (R, labels^.get(slCancel), cmCancel, Dialogs.bfNormal));
|
|
|
|
|
|
+ Control := New (Dialogs.PButton, Init (R, slCancel, cmCancel, Dialogs.bfNormal));
|
|
Control^.HelpCtx := hcDCancel;
|
|
Control^.HelpCtx := hcDCancel;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
@@ -765,13 +802,13 @@ VAR
|
|
Control : PView;
|
|
Control : PView;
|
|
Begin
|
|
Begin
|
|
R.Assign (0, 0, 26, 8);
|
|
R.Assign (0, 0, 26, 8);
|
|
- D := New (Dialogs.PDialog, Init (R, strings^.get(sRightMargin)));
|
|
|
|
|
|
+ D := New (Dialogs.PDialog, Init (R, sRightMargin));
|
|
with D^ do
|
|
with D^ do
|
|
begin
|
|
begin
|
|
Options := Options or ofCentered;
|
|
Options := Options or ofCentered;
|
|
|
|
|
|
R.Assign (5, 2, 13, 3);
|
|
R.Assign (5, 2, 13, 3);
|
|
- Control := New (Dialogs.PStaticText, Init (R, strings^.get(sSetting)));
|
|
|
|
|
|
+ Control := New (Dialogs.PStaticText, Init (R, sSetting));
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (13, 2, 18, 3);
|
|
R.Assign (13, 2, 18, 3);
|
|
@@ -783,12 +820,12 @@ Begin
|
|
Insert (New (Dialogs.PHistory, Init (R, Dialogs.PInputLine (Control), 13)));
|
|
Insert (New (Dialogs.PHistory, Init (R, Dialogs.PInputLine (Control), 13)));
|
|
|
|
|
|
R.Assign (2, 5, 12, 7);
|
|
R.Assign (2, 5, 12, 7);
|
|
- Control := New (Dialogs.PButton, Init (R, labels^.get(slOK), cmOK, Dialogs.bfDefault));
|
|
|
|
|
|
+ Control := New (Dialogs.PButton, Init (R, slOK, cmOK, Dialogs.bfDefault));
|
|
Control^.HelpCtx := hcDOk;
|
|
Control^.HelpCtx := hcDOk;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (14, 5, 24, 7);
|
|
R.Assign (14, 5, 24, 7);
|
|
- Control := New (Dialogs.PButton, Init (R, labels^.get(slCancel), cmCancel, Dialogs.bfNormal));
|
|
|
|
|
|
+ Control := New (Dialogs.PButton, Init (R, slCancel, cmCancel, Dialogs.bfNormal));
|
|
Control^.HelpCtx := hcDCancel;
|
|
Control^.HelpCtx := hcDCancel;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
@@ -809,7 +846,7 @@ VAR
|
|
Tab_Stop : String[2]; { Local string to print tab column number. }
|
|
Tab_Stop : String[2]; { Local string to print tab column number. }
|
|
Begin
|
|
Begin
|
|
R.Assign (0, 0, 80, 8);
|
|
R.Assign (0, 0, 80, 8);
|
|
- D := New (Dialogs.PDialog, Init (R, strings^.get(sTabSettings)));
|
|
|
|
|
|
+ D := New (Dialogs.PDialog, Init (R, sTabSettings));
|
|
with D^ do
|
|
with D^ do
|
|
begin
|
|
begin
|
|
Options := Options or ofCentered;
|
|
Options := Options or ofCentered;
|
|
@@ -836,12 +873,12 @@ Begin
|
|
Insert (New (Dialogs.PHistory, Init (R, Dialogs.PInputLine (Control), 14)));
|
|
Insert (New (Dialogs.PHistory, Init (R, Dialogs.PInputLine (Control), 14)));
|
|
|
|
|
|
R.Assign (27, 5, 37, 7);
|
|
R.Assign (27, 5, 37, 7);
|
|
- Control := New (Dialogs.PButton, Init (R, labels^.get(slOK), cmOK, Dialogs.bfDefault));
|
|
|
|
|
|
+ Control := New (Dialogs.PButton, Init (R, slOK, cmOK, Dialogs.bfDefault));
|
|
Control^.HelpCtx := hcDOk;
|
|
Control^.HelpCtx := hcDOk;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
|
|
|
|
R.Assign (42, 5, 52, 7);
|
|
R.Assign (42, 5, 52, 7);
|
|
- Control := New (Dialogs.PButton, Init (R, labels^.get(slCancel), cmCancel, Dialogs.bfNormal));
|
|
|
|
|
|
+ Control := New (Dialogs.PButton, Init (R, slCancel, cmCancel, Dialogs.bfNormal));
|
|
Control^.HelpCtx := hcDCancel;
|
|
Control^.HelpCtx := hcDCancel;
|
|
Insert (Control);
|
|
Insert (Control);
|
|
SelectNext (False);
|
|
SelectNext (False);
|
|
@@ -857,24 +894,24 @@ var
|
|
begin
|
|
begin
|
|
case Dialog of
|
|
case Dialog of
|
|
edOutOfMemory:
|
|
edOutOfMemory:
|
|
- StdEditorDialog := MessageBox(strings^.get(sOutOfMemory), nil, mfError + mfOkButton);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox(sOutOfMemory, nil, mfError + mfOkButton);
|
|
edReadError:
|
|
edReadError:
|
|
- StdEditorDialog := MessageBox(strings^.get(sFileReadError), @Info, mfError + mfOkButton);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox(sFileReadError, @Info, mfError + mfOkButton);
|
|
edWriteError:
|
|
edWriteError:
|
|
- StdEditorDialog := MessageBox(strings^.get(sFileWriteError), @Info, mfError + mfOkButton);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox(sFileWriteError, @Info, mfError + mfOkButton);
|
|
edCreateError:
|
|
edCreateError:
|
|
- StdEditorDialog := MessageBox(strings^.get(sFileCreateError), @Info, mfError + mfOkButton);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox(sFileCreateError, @Info, mfError + mfOkButton);
|
|
edSaveModify:
|
|
edSaveModify:
|
|
- StdEditorDialog := MessageBox(strings^.get(sModified), @Info, mfInformation + mfYesNoCancel);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox(sModified, @Info, mfInformation + mfYesNoCancel);
|
|
edSaveUntitled:
|
|
edSaveUntitled:
|
|
- StdEditorDialog := MessageBox(strings^.get(sFileUntitled), nil, mfInformation + mfYesNoCancel);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox(sFileUntitled, nil, mfInformation + mfYesNoCancel);
|
|
edSaveAs:
|
|
edSaveAs:
|
|
StdEditorDialog := Application^.ExecuteDialog(New(PFileDialog, Init('*.*',
|
|
StdEditorDialog := Application^.ExecuteDialog(New(PFileDialog, Init('*.*',
|
|
- labels^.get(slSaveFileAs), labels^.get(slName), fdOkButton, 101)), Info);
|
|
|
|
|
|
+ slSaveFileAs, slName, fdOkButton, 101)), Info);
|
|
edFind:
|
|
edFind:
|
|
StdEditorDialog := Application^.ExecuteDialog(CreateFindDialog, Info);
|
|
StdEditorDialog := Application^.ExecuteDialog(CreateFindDialog, Info);
|
|
edSearchFailed:
|
|
edSearchFailed:
|
|
- StdEditorDialog := MessageBox(strings^.get(sSearchStringNotFound), nil, mfError + mfOkButton);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox(sSearchStringNotFound, nil, mfError + mfOkButton);
|
|
edReplace:
|
|
edReplace:
|
|
StdEditorDialog := Application^.ExecuteDialog(CreateReplaceDialog, Info);
|
|
StdEditorDialog := Application^.ExecuteDialog(CreateReplaceDialog, Info);
|
|
edReplacePrompt:
|
|
edReplacePrompt:
|
|
@@ -886,7 +923,7 @@ begin
|
|
Inc(T.Y);
|
|
Inc(T.Y);
|
|
if PPoint(Info)^.Y <= T.Y then
|
|
if PPoint(Info)^.Y <= T.Y then
|
|
R.Move(0, Desktop^.Size.Y - R.B.Y - 2);
|
|
R.Move(0, Desktop^.Size.Y - R.B.Y - 2);
|
|
- StdEditorDialog := MessageBoxRect(R, strings^.get(sReplaceThisOccurence),
|
|
|
|
|
|
+ StdEditorDialog := MessageBoxRect(R, sReplaceThisOccurence,
|
|
nil, mfYesNoCancel + mfInformation);
|
|
nil, mfYesNoCancel + mfInformation);
|
|
end;
|
|
end;
|
|
edJumpToLine:
|
|
edJumpToLine:
|
|
@@ -894,21 +931,21 @@ begin
|
|
edSetTabStops:
|
|
edSetTabStops:
|
|
StdEditorDialog := Application^.ExecuteDialog(TabStopDialog, Info);
|
|
StdEditorDialog := Application^.ExecuteDialog(TabStopDialog, Info);
|
|
edPasteNotPossible:
|
|
edPasteNotPossible:
|
|
- StdEditorDialog := MessageBox (strings^.get(sPasteNotPossible), nil, mfError + mfOkButton);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox (sPasteNotPossible, nil, mfError + mfOkButton);
|
|
edReformatDocument:
|
|
edReformatDocument:
|
|
StdEditorDialog := Application^.ExecuteDialog(ReformDocDialog, Info);
|
|
StdEditorDialog := Application^.ExecuteDialog(ReformDocDialog, Info);
|
|
edReformatNotAllowed:
|
|
edReformatNotAllowed:
|
|
- StdEditorDialog := MessageBox (strings^.get(sWordWrapOff), nil, mfError + mfOkButton);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox (sWordWrapOff, nil, mfError + mfOkButton);
|
|
edReformNotPossible:
|
|
edReformNotPossible:
|
|
- StdEditorDialog := MessageBox (strings^.get(sReformatNotPossible), nil, mfError + mfOkButton);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox (sReformatNotPossible, nil, mfError + mfOkButton);
|
|
edReplaceNotPossible:
|
|
edReplaceNotPossible:
|
|
- StdEditorDialog := MessageBox (strings^.get(sReplaceNotPossible), nil, mfError + mfOkButton);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox (sReplaceNotPossible, nil, mfError + mfOkButton);
|
|
edRightMargin:
|
|
edRightMargin:
|
|
StdEditorDialog := Application^.ExecuteDialog(RightMarginDialog, Info);
|
|
StdEditorDialog := Application^.ExecuteDialog(RightMarginDialog, Info);
|
|
edWrapNotPossible:
|
|
edWrapNotPossible:
|
|
- StdEditorDialog := MessageBox (strings^.get(sWordWrapNotPossible), nil, mfError + mfOKButton);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox (sWordWrapNotPossible, nil, mfError + mfOKButton);
|
|
else
|
|
else
|
|
- StdEditorDialog := MessageBox (strings^.get(sUnknownDialog), nil, mfError + mfOkButton);
|
|
|
|
|
|
+ StdEditorDialog := MessageBox (sUnknownDialog, nil, mfError + mfOkButton);
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1119,8 +1156,8 @@ begin
|
|
IScan := NotFoundValue
|
|
IScan := NotFoundValue
|
|
else
|
|
else
|
|
IScan := numb - pred(len);
|
|
IScan := numb - pred(len);
|
|
-end;
|
|
|
|
-
|
|
|
|
|
|
+end;
|
|
|
|
+
|
|
|
|
|
|
{****************************************************************************
|
|
{****************************************************************************
|
|
TIndicator
|
|
TIndicator
|
|
@@ -3696,10 +3733,10 @@ end; { TEditWindow.Close }
|
|
function TEditWindow.GetTitle (MaxSize : Sw_Integer) : TTitleStr;
|
|
function TEditWindow.GetTitle (MaxSize : Sw_Integer) : TTitleStr;
|
|
begin
|
|
begin
|
|
if Editor^.IsClipboard then
|
|
if Editor^.IsClipboard then
|
|
- GetTitle := strings^.get(sClipboard)
|
|
|
|
|
|
+ GetTitle := sClipboard
|
|
else
|
|
else
|
|
if Editor^.FileName = '' then
|
|
if Editor^.FileName = '' then
|
|
- GetTitle := strings^.get(sUntitled)
|
|
|
|
|
|
+ GetTitle := sUntitled
|
|
else
|
|
else
|
|
GetTitle := Editor^.FileName;
|
|
GetTitle := Editor^.FileName;
|
|
end; { TEditWindow.GetTile }
|
|
end; { TEditWindow.GetTile }
|