diff options
author | Oliver-Rainer Wittmann <orw@apache.org> | 2013-05-14 13:21:45 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-05-20 11:33:34 +0100 |
commit | 2a2d3841218f61ea365f21fcc2c663ec918d101f (patch) | |
tree | 277dbb3bd7dac4be54f375acffa17f639ac9ed5d /sfx2 | |
parent | 5a6c03ad5dc2f80850131446631606717eee3465 (diff) |
Resolves: #i122056# adding another Writer variant for sidebar context handling
Patch by: Ariel
Review by: Oliver
(cherry picked from commit 4a87b75b86e4c932b5230cb7caecf6f00e40a096)
Conflicts:
sfx2/inc/sfx2/sidebar/EnumContext.hxx
Change-Id: I51cd1d63ddd23a0907f1781c46891b6f5c9870c5
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/EnumContext.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/sidebar/ResourceManager.cxx | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/EnumContext.cxx b/sfx2/source/sidebar/EnumContext.cxx index ce1d7435b019..514cd13feb0c 100644 --- a/sfx2/source/sidebar/EnumContext.cxx +++ b/sfx2/source/sidebar/EnumContext.cxx @@ -92,6 +92,8 @@ sal_Int32 EnumContext::GetCombinedContext_DI (void) const case Application_WriterGlobal: case Application_WriterWeb: case Application_WriterXML: + case Application_WriterForm: + case Application_WriterReport: return CombinedEnumContext(Application_WriterVariants, meContext); default: @@ -158,6 +160,7 @@ void EnumContext::ProvideApplicationContainers (void) AddEntry(A2S("com.sun.star.text.WebDocument"), EnumContext::Application_WriterWeb); AddEntry(A2S("com.sun.star.xforms.XMLFormDocument"), EnumContext::Application_WriterXML); AddEntry(A2S("com.sun.star.sdb.FormDesign"), EnumContext::Application_WriterForm); + AddEntry(A2S("com.sun.star.sdb.TextReportDesign"), EnumContext::Application_WriterReport); AddEntry(A2S("com.sun.star.sheet.SpreadsheetDocument"), EnumContext::Application_Calc); AddEntry(A2S("com.sun.star.drawing.DrawingDocument"), EnumContext::Application_Draw); AddEntry(A2S("com.sun.star.presentation.PresentationDocument"), EnumContext::Application_Impress); diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx index d65c9b44fdd4..eaf4beac645f 100644 --- a/sfx2/source/sidebar/ResourceManager.cxx +++ b/sfx2/source/sidebar/ResourceManager.cxx @@ -436,6 +436,7 @@ void ResourceManager::ReadContextList ( aApplications.push_back(EnumContext::Application_WriterWeb); aApplications.push_back(EnumContext::Application_WriterXML); aApplications.push_back(EnumContext::Application_WriterForm); + aApplications.push_back(EnumContext::Application_WriterReport); } else { |