AccessiblePresentationShape.cxx (4d7c9de0) | AccessiblePresentationShape.cxx (3ea0c3d5) |
---|---|
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 --- 67 unchanged lines hidden (view full) --- 76 throw (::com::sun::star::uno::RuntimeException) 77{ 78 ::rtl::OUString sName; 79 80 ShapeTypeId nShapeType = ShapeTypeHandler::Instance().GetTypeId (mxShape); 81 switch (nShapeType) 82 { 83 case PRESENTATION_TITLE: | 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 --- 67 unchanged lines hidden (view full) --- 76 throw (::com::sun::star::uno::RuntimeException) 77{ 78 ::rtl::OUString sName; 79 80 ShapeTypeId nShapeType = ShapeTypeHandler::Instance().GetTypeId (mxShape); 81 switch (nShapeType) 82 { 83 case PRESENTATION_TITLE: |
84 //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressTitle")); | |
85 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_TITLE_N))); 86 break; 87 case PRESENTATION_OUTLINER: | 84 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_TITLE_N))); 85 break; 86 case PRESENTATION_OUTLINER: |
88 //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressOutliner")); | |
89 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_OUTLINER_N))); 90 break; 91 case PRESENTATION_SUBTITLE: | 87 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_OUTLINER_N))); 88 break; 89 case PRESENTATION_SUBTITLE: |
92 //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressSubtitle")); | |
93 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_SUBTITLE_N))); 94 break; 95 case PRESENTATION_PAGE: | 90 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_SUBTITLE_N))); 91 break; 92 case PRESENTATION_PAGE: |
96 //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressPage")); | |
97 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_PAGE_N))); 98 break; 99 case PRESENTATION_NOTES: | 93 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_PAGE_N))); 94 break; 95 case PRESENTATION_NOTES: |
100 //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressNotes")); | |
101 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_NOTES_N))); 102 break; 103 case PRESENTATION_HANDOUT: | 96 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_NOTES_N))); 97 break; 98 case PRESENTATION_HANDOUT: |
104 //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressHandout")); | |
105 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_HANDOUT_N))); 106 break; 107 case PRESENTATION_HEADER: | 99 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_HANDOUT_N))); 100 break; 101 case PRESENTATION_HEADER: |
108 //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressHeader")); | |
109 sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_HEADER_N)) ); 110 break; 111 case PRESENTATION_FOOTER: | 102 sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_HEADER_N)) ); 103 break; 104 case PRESENTATION_FOOTER: |
112 //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressFooter")); | |
113 sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_FOOTER_N)) ); 114 break; 115 case PRESENTATION_DATETIME: | 105 sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_FOOTER_N)) ); 106 break; 107 case PRESENTATION_DATETIME: |
116 //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressDateAndTime")); | |
117 sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_DATE_N)) ); 118 break; 119 case PRESENTATION_PAGENUMBER: | 108 sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_DATE_N)) ); 109 break; 110 case PRESENTATION_PAGENUMBER: |
120 //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressPageNumber")); | |
121 sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_NUMBER_N)) ); 122 break; 123 default: | 111 sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_NUMBER_N)) ); 112 break; 113 default: |
124 //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("UnknownAccessibleImpressShape")); | |
125 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_UNKNOWN_N))); 126 uno::Reference<drawing::XShapeDescriptor> xDescriptor (mxShape, uno::UNO_QUERY); 127 if (xDescriptor.is()) 128 sName += ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM(": ")) 129 + xDescriptor->getShapeType(); 130 } 131 132 return sName; --- 8 unchanged lines hidden (view full) --- 141{ 142 // return createAccessibleName (); 143 ::rtl::OUString sDescription; 144 DescriptionGenerator aDG (mxShape); 145 ShapeTypeId nShapeType = ShapeTypeHandler::Instance().GetTypeId (mxShape); 146 switch (nShapeType) 147 { 148 case PRESENTATION_TITLE: | 114 sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_UNKNOWN_N))); 115 uno::Reference<drawing::XShapeDescriptor> xDescriptor (mxShape, uno::UNO_QUERY); 116 if (xDescriptor.is()) 117 sName += ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM(": ")) 118 + xDescriptor->getShapeType(); 119 } 120 121 return sName; --- 8 unchanged lines hidden (view full) --- 130{ 131 // return createAccessibleName (); 132 ::rtl::OUString sDescription; 133 DescriptionGenerator aDG (mxShape); 134 ShapeTypeId nShapeType = ShapeTypeHandler::Instance().GetTypeId (mxShape); 135 switch (nShapeType) 136 { 137 case PRESENTATION_TITLE: |
149 //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationTitleShape")); | |
150 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_TITLE_D)) ); 151 aDG.Initialize (sDescription); 152 break; 153 case PRESENTATION_OUTLINER: | 138 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_TITLE_D)) ); 139 aDG.Initialize (sDescription); 140 break; 141 case PRESENTATION_OUTLINER: |
154 //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationOutlinerShape")); | |
155 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_OUTLINER_D)) ); 156 aDG.Initialize (sDescription); //PresentationOutlinerShape 157 break; 158 case PRESENTATION_SUBTITLE: 159 aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationSubtitleShape")); 160 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_SUBTITLE_D)) ); 161 aDG.Initialize (sDescription); //PresentationSubtitleShape 162 break; --- 8 unchanged lines hidden (view full) --- 171 aDG.Initialize (sDescription); //PresentationNotesShape 172 break; 173 case PRESENTATION_HANDOUT: 174 aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationHandoutShape")); 175 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_HANDOUT_D)) ); 176 aDG.Initialize (sDescription); //PresentationHandoutShape 177 break; 178 case PRESENTATION_HEADER: | 142 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_OUTLINER_D)) ); 143 aDG.Initialize (sDescription); //PresentationOutlinerShape 144 break; 145 case PRESENTATION_SUBTITLE: 146 aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationSubtitleShape")); 147 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_SUBTITLE_D)) ); 148 aDG.Initialize (sDescription); //PresentationSubtitleShape 149 break; --- 8 unchanged lines hidden (view full) --- 158 aDG.Initialize (sDescription); //PresentationNotesShape 159 break; 160 case PRESENTATION_HANDOUT: 161 aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationHandoutShape")); 162 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_HANDOUT_D)) ); 163 aDG.Initialize (sDescription); //PresentationHandoutShape 164 break; 165 case PRESENTATION_HEADER: |
179 //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationHeaderShape")); | |
180 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_HEADER_D)) ); 181 aDG.Initialize (sDescription); //PresentationHeaderShape 182 break; 183 case PRESENTATION_FOOTER: | 166 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_HEADER_D)) ); 167 aDG.Initialize (sDescription); //PresentationHeaderShape 168 break; 169 case PRESENTATION_FOOTER: |
184 //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationFooterShape")); | |
185 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_FOOTER_D)) ); 186 aDG.Initialize (sDescription); //PresentationFooterShape 187 break; 188 case PRESENTATION_DATETIME: | 170 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_FOOTER_D)) ); 171 aDG.Initialize (sDescription); //PresentationFooterShape 172 break; 173 case PRESENTATION_DATETIME: |
189 //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationDateAndTimeShape")); | |
190 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_DATE_D)) ); 191 aDG.Initialize (sDescription); //PresentationDateShape 192 break; 193 case PRESENTATION_PAGENUMBER: | 174 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_DATE_D)) ); 175 aDG.Initialize (sDescription); //PresentationDateShape 176 break; 177 case PRESENTATION_PAGENUMBER: |
194 //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationPageNumberShape")); | |
195 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_NUMBER_D)) ); 196 aDG.Initialize (sDescription); //PresentationNumberShape 197 break; 198 default: | 178 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_NUMBER_D)) ); 179 aDG.Initialize (sDescription); //PresentationNumberShape 180 break; 181 default: |
199 //aDG.Initialize (::rtl::OUString::createFromAscii ("Unknown accessible presentation shape")); | |
200 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_UNKNOWN_D)) ); 201 aDG.Initialize (sDescription); //Unknown accessible presentation shape 202 uno::Reference<drawing::XShapeDescriptor> xDescriptor (mxShape, uno::UNO_QUERY); 203 if (xDescriptor.is()) 204 { 205 aDG.AppendString (::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("service name="))); 206 aDG.AppendString (xDescriptor->getShapeType()); 207 } --- 53 unchanged lines hidden --- | 182 sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_UNKNOWN_D)) ); 183 aDG.Initialize (sDescription); //Unknown accessible presentation shape 184 uno::Reference<drawing::XShapeDescriptor> xDescriptor (mxShape, uno::UNO_QUERY); 185 if (xDescriptor.is()) 186 { 187 aDG.AppendString (::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("service name="))); 188 aDG.AppendString (xDescriptor->getShapeType()); 189 } --- 53 unchanged lines hidden --- |