EnumContext.cxx (a7f63c05) EnumContext.cxx (ae13266d)
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

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

83 return CombinedEnumContext(meApplication, meContext);
84}
85
86
87
88
89sal_Int32 EnumContext::GetCombinedContext_DI (void) const
90{
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

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

83 return CombinedEnumContext(meApplication, meContext);
84}
85
86
87
88
89sal_Int32 EnumContext::GetCombinedContext_DI (void) const
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:
99 case Application_WriterWeb:
100 case Application_WriterXML:
101 case Application_WriterForm:
102 case Application_WriterReport:
103 return CombinedEnumContext(Application_WriterVariants, meContext);
104
105 default:
106 return CombinedEnumContext(meApplication, meContext);
107 }
91 return CombinedEnumContext(GetApplication_DI(), meContext);
108}
109
110
111
112
92}
93
94
95
96
97EnumContext::Application EnumContext::GetApplication_DI (void) const
98{
99 switch (meApplication)
100 {
101 case Application_Draw:
102 case Application_Impress:
103 return Application_DrawImpress;
104
105 case Application_Writer:
106 case Application_WriterGlobal:
107 case Application_WriterWeb:
108 case Application_WriterXML:
109 case Application_WriterForm:
110 case Application_WriterReport:
111 return Application_WriterVariants;
112
113 default:
114 return meApplication;
115 }
116}
117
118
119
120
121EnumContext::Application EnumContext::GetApplication (void) const
122{
123 return meApplication;
124}
125
126
127
128
113const ::rtl::OUString& EnumContext::GetApplicationName (void) const
114{
115 return EnumContext::GetApplicationName(meApplication);
116}
117
118
119
120

--- 220 unchanged lines hidden ---
129const ::rtl::OUString& EnumContext::GetApplicationName (void) const
130{
131 return EnumContext::GetApplicationName(meApplication);
132}
133
134
135
136

--- 220 unchanged lines hidden ---