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 #pragma clang diagnostic push
25 #pragma clang diagnostic ignored "-Wnon-virtual-dtor"
29 #pragma clang diagnostic pop
32 #include <vcl/svapp.hxx>
34 #include <com/sun/star/accessibility/XAccessible.hpp>
35 #include <com/sun/star/accessibility/XAccessibleContext.hpp>
37 using namespace css::accessibility
;
38 using namespace css::uno
;
42 * @param description Variant to get description.
45 STDMETHODIMP
CAccImage::get_description(BSTR
* description
)
52 if (description
== NULL
)
57 ::rtl::OUString ouStr
= GetXInterface()->getAccessibleImageDescription();
58 SAFE_SYSFREESTRING(*description
);
59 *description
= SysAllocString((OLECHAR
*)ouStr
.getStr());
66 STDMETHODIMP
CAccImage::get_imagePosition(
67 /* [in] */ enum IA2CoordinateType
,
68 /* [out] */ long __RPC_FAR
*,
69 /* [retval][out] */ long __RPC_FAR
*)
74 STDMETHODIMP
CAccImage::get_imageSize(
75 /* [out] */ long __RPC_FAR
*,
76 /* [retval][out] */ long __RPC_FAR
*)
83 * @param pXInterface UNO interface.
86 STDMETHODIMP
CAccImage::put_XInterface(hyper pXInterface
)
88 // internal IUNOXWrapper - no mutex meeded
92 CUNOXWrapper::put_XInterface(pXInterface
);
94 if(pUNOInterface
== NULL
)
97 Reference
<XAccessibleContext
> pRContext
= pUNOInterface
->getAccessibleContext();
102 Reference
<XAccessibleImage
> pRXI(pRContext
,UNO_QUERY
);
109 LEAVE_PROTECTED_BLOCK
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */