lcl: THTMLHelpDatabase: added published readonly property BuiltInBaseURL to show the default in the IDE options

git-svn-id: trunk@56363 -
This commit is contained in:
mattias 2017-11-11 14:21:11 +00:00
parent 0233b6c0c8
commit be3e98c7ab
25 changed files with 102 additions and 0 deletions

View File

@ -1270,6 +1270,10 @@ msgstr ""
msgid "Text" msgid "Text"
msgstr "Text" msgstr "Text"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "" msgstr ""

View File

@ -1232,6 +1232,10 @@ msgstr "Hluboká zelenomodrá"
msgid "Text" msgid "Text"
msgstr "Text" msgstr "Text"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Označkovaný obrazový formát souboru" msgstr "Označkovaný obrazový formát souboru"

View File

@ -1231,6 +1231,10 @@ msgstr "Türkis"
msgid "Text" msgid "Text"
msgstr "Text" msgstr "Text"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Tagged Image File Format" msgstr "Tagged Image File Format"

View File

@ -1229,6 +1229,10 @@ msgstr "Turquesa"
msgid "Text" msgid "Text"
msgstr "Texto" msgstr "Texto"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Formato de Archivo de Imagen Etiquetado" msgstr "Formato de Archivo de Imagen Etiquetado"

View File

@ -1228,6 +1228,10 @@ msgstr "Sinivihreä"
msgid "Text" msgid "Text"
msgstr "Teksti" msgstr "Teksti"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "" msgstr ""

View File

@ -1230,6 +1230,10 @@ msgstr "Sarcelle"
msgid "Text" msgid "Text"
msgstr "Texte" msgstr "Texte"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Tagged Image File Format" msgstr "Tagged Image File Format"

View File

@ -1277,6 +1277,10 @@ msgstr "כחלחל ירקרק"
msgid "Text" msgid "Text"
msgstr "טקסט" msgstr "טקסט"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "פורמט מתוייג של קובץ דמות" msgstr "פורמט מתוייג של קובץ דמות"

View File

@ -1230,6 +1230,10 @@ msgstr "Kékeszöld"
msgid "Text" msgid "Text"
msgstr "Szöveg" msgstr "Szöveg"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Tagged Image File Format" msgstr "Tagged Image File Format"

View File

@ -1269,6 +1269,10 @@ msgstr ""
msgid "Text" msgid "Text"
msgstr "Teks" msgstr "Teks"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "" msgstr ""

View File

@ -1234,6 +1234,10 @@ msgstr "Ocra"
msgid "Text" msgid "Text"
msgstr "Testo" msgstr "Testo"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Formato del file immagine marcato" msgstr "Formato del file immagine marcato"

View File

@ -1231,6 +1231,10 @@ msgstr "暗青緑色"
msgid "Text" msgid "Text"
msgstr "テキスト" msgstr "テキスト"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "TIFF ファイル" msgstr "TIFF ファイル"

View File

@ -1232,6 +1232,10 @@ msgstr "Tamsiai žydra"
msgid "Text" msgid "Text"
msgstr "Tekstas" msgstr "Tekstas"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "„Tagged Image File Format“" msgstr "„Tagged Image File Format“"

View File

@ -1242,6 +1242,10 @@ msgstr "Blauwachtig groen (teal)"
msgid "Text" msgid "Text"
msgstr "Tekst" msgstr "Tekst"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Tagged Image File Format" msgstr "Tagged Image File Format"

View File

@ -1274,6 +1274,10 @@ msgstr ""
msgid "Text" msgid "Text"
msgstr "Tekst" msgstr "Tekst"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "" msgstr ""

View File

@ -1242,6 +1242,10 @@ msgstr "Morski"
msgid "Text" msgid "Text"
msgstr "" msgstr ""
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "" msgstr ""

View File

@ -1223,6 +1223,10 @@ msgstr ""
msgid "Text" msgid "Text"
msgstr "" msgstr ""
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "" msgstr ""

View File

@ -1250,6 +1250,10 @@ msgstr "Verde Musgo"
msgid "Text" msgid "Text"
msgstr "Texto" msgstr "Texto"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Formato Arquivo Imagem \"Tagged\"" msgstr "Formato Arquivo Imagem \"Tagged\""

View File

@ -1258,6 +1258,10 @@ msgstr "Verde Musgo"
msgid "Text" msgid "Text"
msgstr "Texto" msgstr "Texto"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Formato Arquivo Imagem \"Tagged\"" msgstr "Formato Arquivo Imagem \"Tagged\""

View File

@ -1230,6 +1230,10 @@ msgstr "Бирюзовый"
msgid "Text" msgid "Text"
msgstr "Текст" msgstr "Текст"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Формат Tagged Image File" msgstr "Формат Tagged Image File"

View File

@ -1233,6 +1233,10 @@ msgstr "Hlboká zelenomodrá"
msgid "Text" msgid "Text"
msgstr "Text" msgstr "Text"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Označkovať obrazový formát súboru" msgstr "Označkovať obrazový formát súboru"

View File

@ -1269,6 +1269,10 @@ msgstr ""
msgid "Text" msgid "Text"
msgstr "Metin" msgstr "Metin"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "" msgstr ""

View File

@ -1232,6 +1232,10 @@ msgstr "Синьо-зелений"
msgid "Text" msgid "Text"
msgstr "Текст" msgstr "Текст"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "Тегований формат файлу зображення" msgstr "Тегований формат файлу зображення"

View File

@ -1273,6 +1273,10 @@ msgstr "青"
msgid "Text" msgid "Text"
msgstr "文本" msgstr "文本"
#: lclstrconsts.rsthebuiltinurlisreadonlychangethebaseurlinstead
msgid "The built-in URL is read only. Change the BaseURL instead."
msgstr ""
#: lclstrconsts.rstiff #: lclstrconsts.rstiff
msgid "Tagged Image File Format" msgid "Tagged Image File Format"
msgstr "" msgstr ""

View File

@ -56,6 +56,7 @@ type
FKeywordPrefixNode: THelpNode; FKeywordPrefixNode: THelpNode;
function IsBaseURLStored: boolean; function IsBaseURLStored: boolean;
procedure SetBaseURL(const AValue: string); procedure SetBaseURL(const AValue: string);
procedure SetBuiltInBaseURL(const AValue: string);
procedure SetDefaultBaseURL(const AValue: string); procedure SetDefaultBaseURL(const AValue: string);
public public
constructor Create(TheOwner: TComponent); override; constructor Create(TheOwner: TComponent); override;
@ -73,6 +74,7 @@ type
procedure Save(Storage: TConfigStorage); override; procedure Save(Storage: TConfigStorage); override;
property DefaultBaseURL: string read FDefaultBaseURL write SetDefaultBaseURL;// used, if BaseURL is empty property DefaultBaseURL: string read FDefaultBaseURL write SetDefaultBaseURL;// used, if BaseURL is empty
published published
property BuiltInBaseURL: string read FDefaultBaseURL write SetBuiltInBaseURL;// read only, shown in the IDE help options
property BaseURL: string read FBaseURL write SetBaseURL stored IsBaseURLStored; property BaseURL: string read FBaseURL write SetBaseURL stored IsBaseURLStored;
property AutoRegister; property AutoRegister;
property KeywordPrefix: string read FKeywordPrefix write FKeywordPrefix;// see above property KeywordPrefix: string read FKeywordPrefix write FKeywordPrefix;// see above
@ -132,6 +134,12 @@ begin
FBaseURL:=AValue; FBaseURL:=AValue;
end; end;
procedure THTMLHelpDatabase.SetBuiltInBaseURL(const AValue: string);
begin
if AValue=BuiltInBaseURL then exit;
raise Exception.Create(rsTheBuiltInURLIsReadOnlyChangeTheBaseURLInstead);
end;
procedure THTMLHelpDatabase.SetDefaultBaseURL(const AValue: string); procedure THTMLHelpDatabase.SetDefaultBaseURL(const AValue: string);
begin begin
if FDefaultBaseURL=AValue then exit; if FDefaultBaseURL=AValue then exit;

View File

@ -430,6 +430,8 @@ resourceString
hhsHelpTheHelpDatabaseWasUnableToFindFile = 'The help database "%s" was ' hhsHelpTheHelpDatabaseWasUnableToFindFile = 'The help database "%s" was '
+'unable to find file "%s".'; +'unable to find file "%s".';
rsTheBuiltInURLIsReadOnlyChangeTheBaseURLInstead = 'The built-in URL is read'
+' only. Change the BaseURL instead.';
hhsHelpTheMacroSInBrowserParamsWillBeReplacedByTheURL = 'The macro %s in ' hhsHelpTheMacroSInBrowserParamsWillBeReplacedByTheURL = 'The macro %s in '
+'BrowserParams will be replaced by the URL.'; +'BrowserParams will be replaced by the URL.';
hhsHelpNoHTMLBrowserFoundPleaseDefineOne = 'No HTML Browser found.' hhsHelpNoHTMLBrowserFoundPleaseDefineOne = 'No HTML Browser found.'