1 --- setup_native/source/win32/customactions/reg4msdoc/registrationcontextinformation.hxx
2 +++ setup_native/source/win32/customactions/reg4msdoc/registrationcontextinformation.hxx
4 std::wstring GetWordDocumentDefaultIconEntry() const;
5 std::wstring GetWordDocumentDefaultShellCommand() const;
7 + /** MOOX Word document information
8 + The icon index is the index of the icon
9 + in soffice.exe to be associated with
12 + std::wstring GetMOOXWordDocumentDisplayName() const;
13 + std::wstring GetMOOXWordDocumentFileExtension() const;
15 /** Word template information
16 The icon index is the index of the icon
17 in soffice.exe to be associated with
19 std::wstring GetExcelSheetDefaultIconEntry() const;
20 std::wstring GetExcelSheetDefaultShellCommand() const;
22 + std::wstring GetMOOXExcelSheetDisplayName() const;
23 + std::wstring GetMOOXExcelSheetFileExtension() const;
25 /** Excel template information
26 The icon index is the index of the icon
27 in soffice.exe to be associated with
29 std::wstring GetPowerPointDocumentDefaultIconEntry() const;
30 std::wstring GetPowerPointDocumentDefaultShellCommand() const;
32 + std::wstring GetMOOXPowerPointDocumentDisplayName() const;
33 + std::wstring GetMOOXPowerPointDocumentFileExtension() const;
35 /** PowerPoint template information
36 The icon index is the index of the icon
37 in soffice.exe to be associated with
38 dummy line to avoid confusing diff-mode
39 --- setup_native/source/win32/customactions/reg4msdoc/registrationcontextinformation.cxx
40 +++ setup_native/source/win32/customactions/reg4msdoc/registrationcontextinformation.cxx
42 return std::wstring(TEXT("open"));
45 +std::wstring RegistrationContextInformation::GetMOOXWordDocumentDisplayName() const
48 + str = TEXT("Microsoft Word 2007 Document");
52 +std::wstring RegistrationContextInformation::GetMOOXWordDocumentFileExtension() const
54 + return std::wstring(TEXT(".docx"));
57 std::wstring RegistrationContextInformation::GetWordTemplateDisplayName() const
61 return std::wstring(TEXT("open"));
64 +std::wstring RegistrationContextInformation::GetMOOXExcelSheetDisplayName() const
67 + str = TEXT("Microsoft Excel 2007 Spreadsheet");
71 +std::wstring RegistrationContextInformation::GetMOOXExcelSheetFileExtension() const
73 + return std::wstring(TEXT(".xlsx"));
76 std::wstring RegistrationContextInformation::GetExcelTemplateDisplayName() const
80 return std::wstring(TEXT("open"));
83 +std::wstring RegistrationContextInformation::GetMOOXPowerPointDocumentDisplayName() const
86 + str = TEXT("Microsoft PowerPoint 2007 Presentation");
90 +std::wstring RegistrationContextInformation::GetMOOXPowerPointDocumentFileExtension() const
92 + return std::wstring(TEXT(".pptx"));
95 std::wstring RegistrationContextInformation::GetPowerPointTemplateDisplayName() const
98 dummy line to avoid confusing diff-mode
99 --- setup_native/source/win32/customactions/reg4msdoc/registrar.cxx
100 +++ setup_native/source/win32/customactions/reg4msdoc/registrar.cxx
102 m_ContextInformation.ShellNewCommandDisplayName(),
103 RegistrationContextInformation::Writer);
105 + RegisterForMsOfficeApplication(
106 + m_ContextInformation.GetMOOXWordDocumentFileExtension(),
107 + m_ContextInformation.GetMOOXWordDocumentDisplayName(),
108 + m_ContextInformation.GetWordDocumentDefaultIconEntry(),
109 + m_ContextInformation.GetWordDocumentDefaultShellCommand(),
110 + m_ContextInformation.ShellNewCommandDisplayName(),
111 + RegistrationContextInformation::Writer);
113 RegisterForMsOfficeApplication(
114 m_ContextInformation.GetWordTemplateFileExtension(),
115 m_ContextInformation.GetWordTemplateDisplayName(),
117 catch(RegistryKeyNotFoundException&)
122 + UnregisterForMsOfficeApplication(
123 + m_ContextInformation.GetMOOXWordDocumentFileExtension());
125 + catch(RegistryKeyNotFoundException&)
130 UnregisterForMsOfficeApplication(
132 m_ContextInformation.ShellNewCommandDisplayName(),
133 RegistrationContextInformation::Calc);
135 + RegisterForMsOfficeApplication(
136 + m_ContextInformation.GetMOOXExcelSheetFileExtension(),
137 + m_ContextInformation.GetMOOXExcelSheetDisplayName(),
138 + m_ContextInformation.GetExcelSheetDefaultIconEntry(),
139 + m_ContextInformation.GetExcelSheetDefaultShellCommand(),
140 + m_ContextInformation.ShellNewCommandDisplayName(),
141 + RegistrationContextInformation::Calc);
143 RegisterForMsOfficeApplication(
144 m_ContextInformation.GetExcelTemplateFileExtension(),
145 m_ContextInformation.GetExcelTemplateDisplayName(),
147 catch(RegistryKeyNotFoundException&)
152 + UnregisterForMsOfficeApplication(
153 + m_ContextInformation.GetMOOXExcelSheetFileExtension());
155 + catch(RegistryKeyNotFoundException&)
160 UnregisterForMsOfficeApplication(
162 m_ContextInformation.ShellNewCommandDisplayName(),
163 RegistrationContextInformation::Impress);
165 + RegisterForMsOfficeApplication(
166 + m_ContextInformation.GetMOOXPowerPointDocumentFileExtension(),
167 + m_ContextInformation.GetMOOXPowerPointDocumentDisplayName(),
168 + m_ContextInformation.GetPowerPointDocumentDefaultIconEntry(),
169 + m_ContextInformation.GetPowerPointDocumentDefaultShellCommand(),
170 + m_ContextInformation.ShellNewCommandDisplayName(),
171 + RegistrationContextInformation::Impress);
173 RegisterForMsOfficeApplication(
174 m_ContextInformation.GetPowerPointShowFileExtension(),
175 m_ContextInformation.GetPowerPointShowDisplayName(),
177 catch(RegistryKeyNotFoundException&)
182 + UnregisterForMsOfficeApplication(
183 + m_ContextInformation.GetMOOXPowerPointDocumentFileExtension());
185 + catch(RegistryKeyNotFoundException&)
190 UnregisterForMsOfficeApplication(
191 dummy line to avoid confusing diff-mode