1*3e0f1122SAndre Fischer /************************************************************** 2*3e0f1122SAndre Fischer * 3*3e0f1122SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one 4*3e0f1122SAndre Fischer * or more contributor license agreements. See the NOTICE file 5*3e0f1122SAndre Fischer * distributed with this work for additional information 6*3e0f1122SAndre Fischer * regarding copyright ownership. The ASF licenses this file 7*3e0f1122SAndre Fischer * to you under the Apache License, Version 2.0 (the 8*3e0f1122SAndre Fischer * "License"); you may not use this file except in compliance 9*3e0f1122SAndre Fischer * with the License. You may obtain a copy of the License at 10*3e0f1122SAndre Fischer * 11*3e0f1122SAndre Fischer * http://www.apache.org/licenses/LICENSE-2.0 12*3e0f1122SAndre Fischer * 13*3e0f1122SAndre Fischer * Unless required by applicable law or agreed to in writing, 14*3e0f1122SAndre Fischer * software distributed under the License is distributed on an 15*3e0f1122SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*3e0f1122SAndre Fischer * KIND, either express or implied. See the License for the 17*3e0f1122SAndre Fischer * specific language governing permissions and limitations 18*3e0f1122SAndre Fischer * under the License. 19*3e0f1122SAndre Fischer * 20*3e0f1122SAndre Fischer *************************************************************/ 21*3e0f1122SAndre Fischer 22*3e0f1122SAndre Fischer #include "precompiled_sfx2.hxx" 23*3e0f1122SAndre Fischer 24*3e0f1122SAndre Fischer #include "Accessible.hxx" 25*3e0f1122SAndre Fischer 26*3e0f1122SAndre Fischer 27*3e0f1122SAndre Fischer using namespace css; 28*3e0f1122SAndre Fischer using namespace cssu; 29*3e0f1122SAndre Fischer 30*3e0f1122SAndre Fischer 31*3e0f1122SAndre Fischer namespace sfx2 { namespace sidebar { 32*3e0f1122SAndre Fischer 33*3e0f1122SAndre Fischer Accessible(const Reference<accessibility::XAccessibleContext> & rxContext)34*3e0f1122SAndre FischerAccessible::Accessible ( 35*3e0f1122SAndre Fischer const Reference<accessibility::XAccessibleContext>& rxContext) 36*3e0f1122SAndre Fischer : AccessibleInterfaceBase(m_aMutex), 37*3e0f1122SAndre Fischer mxContext(rxContext) 38*3e0f1122SAndre Fischer { 39*3e0f1122SAndre Fischer } 40*3e0f1122SAndre Fischer 41*3e0f1122SAndre Fischer 42*3e0f1122SAndre Fischer 43*3e0f1122SAndre Fischer ~Accessible(void)44*3e0f1122SAndre FischerAccessible::~Accessible (void) 45*3e0f1122SAndre Fischer { 46*3e0f1122SAndre Fischer } 47*3e0f1122SAndre Fischer 48*3e0f1122SAndre Fischer 49*3e0f1122SAndre Fischer 50*3e0f1122SAndre Fischer disposing(void)51*3e0f1122SAndre Fischervoid SAL_CALL Accessible::disposing (void) 52*3e0f1122SAndre Fischer { 53*3e0f1122SAndre Fischer Reference<XComponent> xComponent (mxContext, UNO_QUERY); 54*3e0f1122SAndre Fischer if (xComponent.is()) 55*3e0f1122SAndre Fischer xComponent->dispose(); 56*3e0f1122SAndre Fischer } 57*3e0f1122SAndre Fischer 58*3e0f1122SAndre Fischer 59*3e0f1122SAndre Fischer 60*3e0f1122SAndre Fischer getAccessibleContext(void)61*3e0f1122SAndre FischerReference<accessibility::XAccessibleContext> SAL_CALL Accessible::getAccessibleContext (void) 62*3e0f1122SAndre Fischer throw (cssu::RuntimeException) 63*3e0f1122SAndre Fischer { 64*3e0f1122SAndre Fischer return mxContext; 65*3e0f1122SAndre Fischer } 66*3e0f1122SAndre Fischer 67*3e0f1122SAndre Fischer 68*3e0f1122SAndre Fischer } } // end of namespace sfx2::sidebar 69