AccessibleOLEShape.cxx (f6e50924) AccessibleOLEShape.cxx (9b8096d0)
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

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

24// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_svx.hxx"
26
27
28#include <svx/AccessibleOLEShape.hxx>
29
30#include <svx/ShapeTypeHandler.hxx>
31#include <svx/SvxShapeTypes.hxx>
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

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

24// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_svx.hxx"
26
27
28#include <svx/AccessibleOLEShape.hxx>
29
30#include <svx/ShapeTypeHandler.hxx>
31#include <svx/SvxShapeTypes.hxx>
32
32//IAccessibility2 Implementation 2009-----
33#include <svx/svdoole2.hxx>
34//-----IAccessibility2 Implementation 2009
33using namespace accessibility;
34using namespace ::com::sun::star;
35using namespace ::com::sun::star::uno;
36using namespace ::com::sun::star::accessibility;
37
38//===== internal ============================================================
39
40AccessibleOLEShape::AccessibleOLEShape (

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

174 long nTypeCount = aTypeList.getLength();
175 aTypeList.realloc (nTypeCount + 1);
176 const uno::Type aActionType =
177 ::getCppuType((const uno::Reference<XAccessibleAction>*)0);
178 aTypeList[nTypeCount] = aActionType;
179
180 return aTypeList;
181}
35using namespace accessibility;
36using namespace ::com::sun::star;
37using namespace ::com::sun::star::uno;
38using namespace ::com::sun::star::accessibility;
39
40//===== internal ============================================================
41
42AccessibleOLEShape::AccessibleOLEShape (

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

176 long nTypeCount = aTypeList.getLength();
177 aTypeList.realloc (nTypeCount + 1);
178 const uno::Type aActionType =
179 ::getCppuType((const uno::Reference<XAccessibleAction>*)0);
180 aTypeList[nTypeCount] = aActionType;
181
182 return aTypeList;
183}
184//IAccessibility2 Implementation 2009-----
185//===== XAccessibleExtendedAttributes ========================================================
186uno::Any SAL_CALL AccessibleOLEShape::getExtendedAttributes()
187 throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
188{
189 uno::Any strRet;
190 ::rtl::OUString style;
191 if( m_pShape )
192 {
193 //style = ::rtl::OUString::createFromAscii("style=");
194 style = ::rtl::OUString::createFromAscii("style:");
195 style += ((SdrOle2Obj*)m_pShape)->GetStyleString();
196 }
197 style += ::rtl::OUString::createFromAscii(";");
198 strRet <<= style;
199 return strRet;
200}
201//-----IAccessibility2 Implementation 2009
182
183
202
203
184
185
186/// Set this object's name if is different to the current name.
187::rtl::OUString
188 AccessibleOLEShape::CreateAccessibleBaseName (void)
189 throw (::com::sun::star::uno::RuntimeException)
190{
191 ::rtl::OUString sName;
192
193 ShapeTypeId nShapeType = ShapeTypeHandler::Instance().GetTypeId (mxShape);

--- 35 unchanged lines hidden ---
204/// Set this object's name if is different to the current name.
205::rtl::OUString
206 AccessibleOLEShape::CreateAccessibleBaseName (void)
207 throw (::com::sun::star::uno::RuntimeException)
208{
209 ::rtl::OUString sName;
210
211 ShapeTypeId nShapeType = ShapeTypeHandler::Instance().GetTypeId (mxShape);

--- 35 unchanged lines hidden ---