Changeset 54 for trunk/NewView/CmdLineParameterUnit.pas
- Timestamp:
- Jan 11, 2007, 9:08:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/CmdLineParameterUnit.pas
r45 r54 74 74 75 75 PROCEDURE parseCmdLine(aCmdLineString : String); 76 77 FUNCTION getInterpretedFileNames: String; 78 FUNCTION getInterpretedSearchText: String; 76 79 private 77 80 PROCEDURE parseSwitch(aCmdLineString : String); 78 81 end; 79 82 83 FUNCTION getOwnHelpFileName: String; 84 80 85 // returns a string containing the whole 81 86 // command line parametes 82 FUNCTION nativeOS2GetCmdLineParameter : S TRING;87 FUNCTION nativeOS2GetCmdLineParameter : String; 83 88 84 89 85 90 Implementation 91 uses 92 ACLFileUtility; 93 94 FUNCTION TCmdLineParameters.getInterpretedFileNames: String; 95 var 96 tmpOwnHelpFileName : String; 97 begin 98 result := getFileNames; 99 100 if getGlobalSearchFlag 101 AND (getSearchText = '') 102 then 103 begin 104 result := ''; 105 exit; 106 end; 107 108 109 tmpOwnHelpFileName := FindDefaultLanguageHelpFile('NewView'); 110 if (result = '') AND 111 FileExists(tmpOwnHelpFileName) 112 then 113 result := tmpOwnHelpFileName; 114 end; 115 116 117 FUNCTION TCmdLineParameters.getInterpretedSearchText: String; 118 begin 119 result := getSearchText; 120 121 if getGlobalSearchFlag 122 AND (result = '') 123 then 124 result := getFileNamesRaw; 125 end; 126 86 127 87 128 FUNCTION TCmdLineParameters.setHelpManagerFlag(aNewValue : boolean) : boolean; … … 456 497 457 498 499 FUNCTION getOwnHelpFileName: String; 500 begin 501 result := FindDefaultLanguageHelpFile('NewView'); 502 end; 503 504 458 505 FUNCTION nativeOS2GetCmdLineParameter : STRING; 459 506 VAR
Note:
See TracChangeset
for help on using the changeset viewer.