diff options
Diffstat (limited to 'setup_native/source/win32/customactions/reg4msdoc/registrationcontextinformation.hxx')
-rw-r--r-- | setup_native/source/win32/customactions/reg4msdoc/registrationcontextinformation.hxx | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/setup_native/source/win32/customactions/reg4msdoc/registrationcontextinformation.hxx b/setup_native/source/win32/customactions/reg4msdoc/registrationcontextinformation.hxx index 91a42e6b58d7..1e52a710e81d 100644 --- a/setup_native/source/win32/customactions/reg4msdoc/registrationcontextinformation.hxx +++ b/setup_native/source/win32/customactions/reg4msdoc/registrationcontextinformation.hxx @@ -21,25 +21,25 @@ /** A simple implementation class that returns the appropriate display names for the Microsoft Office document types. - Under Windows 9x this class checks if the + Under Windows 9x this class checks if the document display name is convertable to an ANSI string and if not returns an english default. So we avoid garbage if soemone for instance installs an japanese StarOffice/OpenOffice under a German Windows 98 for instance. */ -class RegistrationContextInformation +class RegistrationContextInformation { public: - + enum SHELL_COMMAND {New, Open, Print, Printto}; enum OFFICE_APPLICATION {Office, Writer, Calc, Impress}; - + RegistrationContextInformation(MSIHANDLE hMsi, const std::wstring& OpenOfficeExecutablePath); - - /** Word document information - The icon index is the index of the icon - in soffice.exe to be associated with + + /** Word document information + The icon index is the index of the icon + in soffice.exe to be associated with word document files */ std::wstring GetWordDocumentDisplayName() const; @@ -48,8 +48,8 @@ public: std::wstring GetWordDocumentDefaultShellCommand() const; /** Word template information - The icon index is the index of the icon - in soffice.exe to be associated with + The icon index is the index of the icon + in soffice.exe to be associated with word template files */ std::wstring GetWordTemplateDisplayName() const; @@ -57,9 +57,9 @@ public: std::wstring GetWordTemplateDefaultIconEntry() const; std::wstring GetWordTemplateDefaultShellCommand() const; - /** Rtf document information - The icon index is the index of the icon - in soffice.exe to be associated with + /** Rtf document information + The icon index is the index of the icon + in soffice.exe to be associated with rtf document files */ std::wstring GetRtfDocumentDisplayName() const; @@ -68,18 +68,18 @@ public: std::wstring GetRtfDocumentDefaultShellCommand() const; /** Excel sheet information - The icon index is the index of the icon - in soffice.exe to be associated with + The icon index is the index of the icon + in soffice.exe to be associated with Excel sheets */ - std::wstring GetExcelSheetDisplayName() const; + std::wstring GetExcelSheetDisplayName() const; std::wstring GetExcelSheetFileExtension() const; std::wstring GetExcelSheetDefaultIconEntry() const; std::wstring GetExcelSheetDefaultShellCommand() const; /** Excel template information - The icon index is the index of the icon - in soffice.exe to be associated with + The icon index is the index of the icon + in soffice.exe to be associated with Excel template files */ std::wstring GetExcelTemplateDisplayName() const; @@ -88,18 +88,18 @@ public: std::wstring GetExcelTemplateDefaultShellCommand() const; /** PowerPoint document information - The icon index is the index of the icon - in soffice.exe to be associated with + The icon index is the index of the icon + in soffice.exe to be associated with PowerPoint document files */ std::wstring GetPowerPointDocumentDisplayName() const; - std::wstring GetPowerPointDocumentFileExtension() const; + std::wstring GetPowerPointDocumentFileExtension() const; std::wstring GetPowerPointDocumentDefaultIconEntry() const; std::wstring GetPowerPointDocumentDefaultShellCommand() const; /** PowerPoint template information - The icon index is the index of the icon - in soffice.exe to be associated with + The icon index is the index of the icon + in soffice.exe to be associated with PowerPoint template files */ std::wstring GetPowerPointTemplateDisplayName() const; @@ -110,17 +110,17 @@ public: /** PowerPoint Show information */ std::wstring GetPowerPointShowDisplayName() const; - std::wstring GetPowerPointShowFileExtension() const; + std::wstring GetPowerPointShowFileExtension() const; std::wstring GetPowerPointShowDefaultIconEntry() const; std::wstring GetPowerPointShowDefaultShellCommand() const; - - /** The string for the "New" command that should appear - in the Explorer context menu when someone right - clicks a Microsoft document + + /** The string for the "New" command that should appear + in the Explorer context menu when someone right + clicks a Microsoft document */ std::wstring ShellNewCommandDisplayName() const; - /** The string for the "Edit" command that should + /** The string for the "Edit" command that should appear in the Explorer context menu when someone right clicks a document */ @@ -130,7 +130,7 @@ public: */ std::wstring GetOpenOfficeFriendlyAppName() const; - /** The path to the StarOffice/OpenOffice executable + /** The path to the StarOffice/OpenOffice executable */ std::wstring GetOpenOfficeExecutablePath() const; @@ -143,19 +143,19 @@ public: */ std::wstring GetOpenOfficeCommandline(SHELL_COMMAND ShellCommand, OFFICE_APPLICATION OfficeApp) const; - + private: bool IsConvertableToAnsi(const std::wstring& String) const; void ExtractOpenOfficeExecNameFromPath(); private: - MSIHANDLE msihandle_; - bool m_IsWin9x; + MSIHANDLE msihandle_; + bool m_IsWin9x; std::wstring m_OOExecPath; std::wstring m_OOExecName; }; -#endif +#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |