EnumContext.cxx (dfbb0ba8) EnumContext.cxx (85f1aca2)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 81 unchanged lines hidden (view full) ---

90{
91 switch (meApplication)
92 {
93 case Application_Draw:
94 case Application_Impress:
95 return CombinedEnumContext(Application_DrawImpress, meContext);
96
97 case Application_Writer:
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 81 unchanged lines hidden (view full) ---

90{
91 switch (meApplication)
92 {
93 case Application_Draw:
94 case Application_Impress:
95 return CombinedEnumContext(Application_DrawImpress, meContext);
96
97 case Application_Writer:
98 case Application_WriterGlobal:
98 case Application_WriterWeb:
99 case Application_WriterWeb:
99 return CombinedEnumContext(Application_WriterAndWeb, meContext);
100 case Application_WriterXML:
101 return CombinedEnumContext(Application_WriterVariants, meContext);
100
101 default:
102 return CombinedEnumContext(meApplication, meContext);
103 }
104}
105
106
107

--- 45 unchanged lines hidden (view full) ---

153
154
155void EnumContext::ProvideApplicationContainers (void)
156{
157 if (maApplicationMap.empty())
158 {
159 maApplicationVector.resize(static_cast<size_t>(EnumContext::__LastApplicationEnum)+1);
160 AddEntry(A2S("com.sun.star.text.TextDocument"), EnumContext::Application_Writer);
102
103 default:
104 return CombinedEnumContext(meApplication, meContext);
105 }
106}
107
108
109

--- 45 unchanged lines hidden (view full) ---

155
156
157void EnumContext::ProvideApplicationContainers (void)
158{
159 if (maApplicationMap.empty())
160 {
161 maApplicationVector.resize(static_cast<size_t>(EnumContext::__LastApplicationEnum)+1);
162 AddEntry(A2S("com.sun.star.text.TextDocument"), EnumContext::Application_Writer);
163 AddEntry(A2S("com.sun.star.text.GlobalDocument"), EnumContext::Application_WriterGlobal);
161 AddEntry(A2S("com.sun.star.text.WebDocument"), EnumContext::Application_WriterWeb);
164 AddEntry(A2S("com.sun.star.text.WebDocument"), EnumContext::Application_WriterWeb);
165 AddEntry(A2S("com.sun.star.xforms.XMLFormDocument"), EnumContext::Application_WriterXML);
162 AddEntry(A2S("com.sun.star.sheet.SpreadsheetDocument"), EnumContext::Application_Calc);
163 AddEntry(A2S("com.sun.star.drawing.DrawingDocument"), EnumContext::Application_Draw);
164 AddEntry(A2S("com.sun.star.presentation.PresentationDocument"), EnumContext::Application_Impress);
165
166 AddEntry(A2S("any"), EnumContext::Application_Any);
167 AddEntry(A2S("none"), EnumContext::Application_None);
168 }
169}

--- 163 unchanged lines hidden ---
166 AddEntry(A2S("com.sun.star.sheet.SpreadsheetDocument"), EnumContext::Application_Calc);
167 AddEntry(A2S("com.sun.star.drawing.DrawingDocument"), EnumContext::Application_Draw);
168 AddEntry(A2S("com.sun.star.presentation.PresentationDocument"), EnumContext::Application_Impress);
169
170 AddEntry(A2S("any"), EnumContext::Application_Any);
171 AddEntry(A2S("none"), EnumContext::Application_None);
172 }
173}

--- 163 unchanged lines hidden ---