1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
24 #include <vcl/svapp.hxx>
26 #include <com/sun/star/accessibility/XAccessible.hpp>
27 #include <com/sun/star/accessibility/XAccessibleContext.hpp>
29 using namespace com::sun::star::accessibility
;
30 using namespace com::sun::star::uno
;
34 * @param description Variant to get description.
37 STDMETHODIMP
CAccImage::get_description(BSTR
* description
)
44 if (description
== NULL
)
49 ::rtl::OUString ouStr
= GetXInterface()->getAccessibleImageDescription();
50 SAFE_SYSFREESTRING(*description
);
51 *description
= SysAllocString((OLECHAR
*)ouStr
.getStr());
58 STDMETHODIMP
CAccImage::get_imagePosition(
59 /* [in] */ enum IA2CoordinateType
,
60 /* [out] */ long __RPC_FAR
*,
61 /* [retval][out] */ long __RPC_FAR
*)
66 STDMETHODIMP
CAccImage::get_imageSize(
67 /* [out] */ long __RPC_FAR
*,
68 /* [retval][out] */ long __RPC_FAR
*)
75 * @param pXInterface UNO interface.
78 STDMETHODIMP
CAccImage::put_XInterface(hyper pXInterface
)
80 // internal IUNOXWrapper - no mutex meeded
84 CUNOXWrapper::put_XInterface(pXInterface
);
86 if(pUNOInterface
== NULL
)
89 Reference
<XAccessibleContext
> pRContext
= pUNOInterface
->getAccessibleContext();
94 Reference
<XAccessibleImage
> pRXI(pRContext
,UNO_QUERY
);
101 LEAVE_PROTECTED_BLOCK
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */