/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include #include #include #include namespace uno = ::com::sun::star::uno; using ::com::sun::star::accessibility::AccessibleRelation; namespace AccessibleRelationType = ::com::sun::star::accessibility::AccessibleRelationType; //------------------------------------------------------------------- FloatingWindowAccessible::FloatingWindowAccessible(VCLXWindow* pWindow) : VCLXAccessibleComponent(pWindow) { } //------------------------------------------------------------------- FloatingWindowAccessible::~FloatingWindowAccessible() { } //------------------------------------------------------------------- void FloatingWindowAccessible::FillAccessibleRelationSet(utl::AccessibleRelationSetHelper& rRelationSet) { Window* pWindow = GetWindow(); if ( pWindow ) { Window* pParentWindow = pWindow->GetParent(); if( pParentWindow ) { uno::Sequence< uno::Reference< uno::XInterface > > aSequence(1); aSequence[0] = pParentWindow->GetAccessible(); rRelationSet.AddRelation( AccessibleRelation( AccessibleRelationType::SUB_WINDOW_OF, aSequence ) ); } } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 4'>distro/collabora/cd-5.3-3.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-09-14 12:49:42 +0000
committerMathias Bauer <mba@openoffice.org>2001-09-14 12:49:42 +0000
commit5284d637a7d83037cc0b86f39bfcd2f05e4b210b (patch)
treeec122b65c79f9988b684e6cb58925dfe667545c1 /sfx2
parent34da1bb396c94ad27b38d8572f76e8f770bbdef6 (diff)
#85600#: support for PostCommandArgument2