1*3a700b0aSSteve Yin /************************************************************** 25fdc4257SSteve Yin * 3*3a700b0aSSteve Yin * Licensed to the Apache Software Foundation (ASF) under one 4*3a700b0aSSteve Yin * or more contributor license agreements. See the NOTICE file 5*3a700b0aSSteve Yin * distributed with this work for additional information 6*3a700b0aSSteve Yin * regarding copyright ownership. The ASF licenses this file 7*3a700b0aSSteve Yin * to you under the Apache License, Version 2.0 (the 8*3a700b0aSSteve Yin * "License"); you may not use this file except in compliance 9*3a700b0aSSteve Yin * with the License. You may obtain a copy of the License at 105fdc4257SSteve Yin * 11*3a700b0aSSteve Yin * http://www.apache.org/licenses/LICENSE-2.0 125fdc4257SSteve Yin * 13*3a700b0aSSteve Yin * Unless required by applicable law or agreed to in writing, 14*3a700b0aSSteve Yin * software distributed under the License is distributed on an 15*3a700b0aSSteve Yin * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*3a700b0aSSteve Yin * KIND, either express or implied. See the License for the 17*3a700b0aSSteve Yin * specific language governing permissions and limitations 18*3a700b0aSSteve Yin * under the License. 195fdc4257SSteve Yin * 20*3a700b0aSSteve Yin *************************************************************/ 215fdc4257SSteve Yin 225fdc4257SSteve Yin ////////////////////////////////////////////////////////////////////// 235fdc4257SSteve Yin // AccComponentBase.h: interface for the CAccComponentBase class. 245fdc4257SSteve Yin ////////////////////////////////////////////////////////////////////// 255fdc4257SSteve Yin 265fdc4257SSteve Yin #if !defined(AFX_ACCCOMPONENTBASE_H__946BE230_1DCB_494B_ACF6_32A2E197DD2A__INCLUDED_) 275fdc4257SSteve Yin #define AFX_ACCCOMPONENTBASE_H__946BE230_1DCB_494B_ACF6_32A2E197DD2A__INCLUDED_ 285fdc4257SSteve Yin 295fdc4257SSteve Yin #if _MSC_VER > 1000 305fdc4257SSteve Yin #pragma once 315fdc4257SSteve Yin #endif // _MSC_VER > 1000 325fdc4257SSteve Yin 335fdc4257SSteve Yin #define WNT 345fdc4257SSteve Yin 355fdc4257SSteve Yin #include <com/sun/star/uno/reference.hxx> 365fdc4257SSteve Yin #include <com/sun/star/accessibility/XAccessibleComponent.hpp> 375fdc4257SSteve Yin #include "UNOXWrapper.h" 385fdc4257SSteve Yin 395fdc4257SSteve Yin class ATL_NO_VTABLE CAccComponentBase : public CUNOXWrapper 405fdc4257SSteve Yin { 415fdc4257SSteve Yin public: 425fdc4257SSteve Yin CAccComponentBase(); 435fdc4257SSteve Yin virtual ~CAccComponentBase(); 445fdc4257SSteve Yin // IAccessibleComponent 455fdc4257SSteve Yin public: 465fdc4257SSteve Yin // IAccessibleComponent 475fdc4257SSteve Yin 485fdc4257SSteve Yin // Returns the location of the upper left corner of the object's bounding 495fdc4257SSteve Yin // box relative to the parent. 505fdc4257SSteve Yin STDMETHOD(get_locationInParent)(long *x, long *y); 515fdc4257SSteve Yin 525fdc4257SSteve Yin // Returns the location of the upper left corner of the object's bounding 535fdc4257SSteve Yin // box in screen. 545fdc4257SSteve Yin STDMETHOD(get_locationOnScreen)(long *x, long *y); 555fdc4257SSteve Yin 565fdc4257SSteve Yin // Grabs the focus to this object. 575fdc4257SSteve Yin STDMETHOD(grabFocus)(boolean * success); 585fdc4257SSteve Yin 595fdc4257SSteve Yin // Returns the foreground color of this object. 605fdc4257SSteve Yin STDMETHOD(get_foreground)(IA2Color * foreground); 615fdc4257SSteve Yin 625fdc4257SSteve Yin // Returns the background color of this object. 635fdc4257SSteve Yin STDMETHOD(get_background)(IA2Color * background); 645fdc4257SSteve Yin 655fdc4257SSteve Yin // Overide of IUNOXWrapper. 665fdc4257SSteve Yin STDMETHOD(put_XInterface)(long pXInterface); 675fdc4257SSteve Yin 685fdc4257SSteve Yin protected: 695fdc4257SSteve Yin 705fdc4257SSteve Yin com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessibleComponent> pRXComp; 715fdc4257SSteve Yin GetXInterface()725fdc4257SSteve Yin inline com::sun::star::accessibility::XAccessibleComponent* GetXInterface() 735fdc4257SSteve Yin { 745fdc4257SSteve Yin return pRXComp.get(); 755fdc4257SSteve Yin } 765fdc4257SSteve Yin }; 775fdc4257SSteve Yin 785fdc4257SSteve Yin #endif // !defined(AFX_ACCCOMPONENTBASE_H__946BE230_1DCB_494B_ACF6_32A2E197DD2A__INCLUDED_) 79