fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / winaccessibility / source / UAccCOM / AccComponentBase.h
blob18481e48b5eebd116c0a16993d761ca14161b269
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 // AccComponentBase.h: interface for the CAccComponentBase class.
22 #ifndef INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCCOMPONENTBASE_H
23 #define INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCCOMPONENTBASE_H
25 #include <com/sun/star/uno/reference.hxx>
26 #include <com/sun/star/accessibility/XAccessibleComponent.hpp>
27 #include "UNOXWrapper.h"
29 class ATL_NO_VTABLE CAccComponentBase : public CUNOXWrapper
31 public:
32 CAccComponentBase();
33 virtual ~CAccComponentBase();
34 // IAccessibleComponent
35 public:
36 // IAccessibleComponent
38 // Returns the location of the upper left corner of the object's bounding
39 // box relative to the parent.
40 STDMETHOD(get_locationInParent)(long *x, long *y);
42 // Returns the location of the upper left corner of the object's bounding
43 // box in screen.
44 STDMETHOD(get_locationOnScreen)(long *x, long *y);
46 // Grabs the focus to this object.
47 STDMETHOD(grabFocus)(boolean * success);
49 // Returns the foreground color of this object.
50 STDMETHOD(get_foreground)(IA2Color * foreground);
52 // Returns the background color of this object.
53 STDMETHOD(get_background)(IA2Color * background);
55 // Override of IUNOXWrapper.
56 STDMETHOD(put_XInterface)(hyper pXInterface);
58 protected:
60 com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessibleComponent> pRXComp;
62 inline com::sun::star::accessibility::XAccessibleComponent* GetXInterface()
64 return pRXComp.get();
68 #endif // INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCCOMPONENTBASE_H
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */