16 #ifndef __UT_HelpManager_h__
17 #define __UT_HelpManager_h__
37 #define UT_OP_PROTOCOL_PREFIX "operator:"
38 #define UT_PROP_PROTOCOL_PREFIX "prop:"
39 #define UT_GALLERY_PROTOCOL_PREFIX "gallery:"
40 #define UT_PARM_PROTOCOL_PREFIX "parm:"
41 #define UT_DOC_PROTOCOL_PREFIX "doc:"
53 virtual void openContents() = 0;
57 virtual void openStartup() = 0;
65 virtual void openFile(
const char *
path) = 0;
66 virtual void openURL(
const char *url) = 0;
67 virtual void openHelpPath(
const char *help_path) = 0;
68 virtual void displayData(
const char *
data,
bool is_html) = 0;
71 virtual bool getTooltip(
const char * url,
UT_String & tooltip ) =0;
74 virtual bool getTooltip(
80 virtual bool getTextHelp(
const char *url,
UT_String &text_help) = 0;
90 virtual UT_StringArray getCommandsForHelpKeyword(
const char *keyword) = 0;
95 const char *keyword) = 0;
99 virtual bool getParsedTooltip(
const char * url_key,
100 const char * full_help,
109 virtual void openHelpCard(
OP_Node * node ) = 0;
110 virtual void openHelpCard(
111 OP_Operator * op,
const char *node_path=
nullptr ) = 0;
112 virtual void openHelpCard(
BM_State * state ) = 0;
113 virtual void openHelpCard( SHLF_Tool * tool ) = 0;
114 virtual void openHelpCard(
const PYP_Interface * interface ) = 0;
122 virtual void getHelpCardURL( SHLF_Tool * tool,
UT_String & url ) =0;
123 virtual void getHelpCardURL(
const PYP_Interface * interface,
129 virtual void getHelpCardURL(
const char *helpTopicId,
131 virtual void getHelpCardURL(
const PRM_Parm * parm,
134 virtual void setBaseURI(
const char *base_uri) = 0;
135 virtual const UT_String &getBaseURI()
const = 0;
139 virtual bool getUseExternalHelp()
const = 0;
142 virtual void setUseExternalHelp(
bool use_external) = 0;
145 virtual void setHelpAddress(
const char* address) = 0;
149 virtual void setUseIPv6(
bool use_ipv6) = 0;
150 virtual bool getUseIPv6()
const = 0;
154 virtual const UT_String &getExternalHelpURL()
const = 0;
157 virtual void setExternalHelpURL(
const char *ext_help_url) = 0;
160 virtual const UT_String &getHelpBaseURL() = 0;
163 virtual const UT_String &getStartupURL() = 0;
171 void clearDesiredHelpLocation();
178 { myFloatingHelpPaneId = pane_id; }
180 {
return myFloatingHelpPaneId; }
181 virtual void closeFloatingPane() = 0;
186 static bool platformSupportsHtmlHelp();
190 static void constructOpBasedURL(
const char *protocol,
191 const char *optable,
const char *optype,
197 static bool parseOpBasedURL(
const char * url,
198 const char *protocol,
210 bool getDesiredHelpLocation(
float &x,
float &y);
215 float myDesiredHelpLocationX;
216 float myDesiredHelpLocationY;
217 int myFloatingHelpPaneId;
GLsizei const GLchar *const * path
void setFloatingHelpPaneId(int pane_id)
static UT_HelpManager * getHelpManager()
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
int getFloatingHelpPaneId() const
static void setHelpManager(UT_HelpManager *help_manager)