6#include <iprm/ISelectionParam.h>
7#include <ifile/IFileNameParam.h>
8#include <icomp/CComponentBase.h>
9#include <idoc/IHelpFileProvider.h>
20 public icomp::CComponentBase,
21 virtual public idoc::IHelpFileProvider
24 typedef icomp::CComponentBase BaseClass;
27 I_REGISTER_INTERFACE(idoc::IHelpFileProvider);
28 I_ASSIGN(m_languageSelectionCompPtr,
"LanguageSelection",
"Language selector",
true,
"LanguageSelection");
29 I_ASSIGN_MULTI_0(m_helpUrlPathListCompPtr,
"HelpUrlPaths",
"List of help URL paths related to the locale-IDs",
false);
30 I_ASSIGN_MULTI_0(m_helpLocalPathListCompPtr,
"HelpLocalPaths",
"List of help local paths related to the locale-IDs",
false);
31 I_ASSIGN_MULTI_0(m_localeIdsAttrPtr,
"LocaleIds",
"List of registered locale-IDs for corresponding help file paths",
true);
35 virtual QString GetHelpFilePath(
const QString& contextText,
const istd::IPolymorphic* contextObjectPtr)
const override;
38 virtual double GetHelpQuality(
const QString& contextText,
const istd::IPolymorphic* contextObjectPtr)
const override;
41 QString GetPathForLocale(
int languageIndex = -1)
const;
44 I_REF(iprm::ISelectionParam, m_languageSelectionCompPtr);
45 I_MULTIREF(ifile::IFileNameParam, m_helpUrlPathListCompPtr);
46 I_MULTIREF(ifile::IFileNameParam, m_helpLocalPathListCompPtr);
47 I_MULTIATTR(QByteArray, m_localeIdsAttrPtr);