/* -*- 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 . */ #ifndef INCLUDED_ANIMATIONS_ANIMATIONNODEHELPER_HXX #define INCLUDED_ANIMATIONS_ANIMATIONNODEHELPER_HXX #include #include #include #include #include /* Declaration and definition of AnimationNode helper */ namespace anim { // TODO(Q1): this could possibly be implemented with a somewhat // more lightweight template, by having the actual worker receive // only a function pointer, and a thin templated wrapper around // that which converts member functions into that. /** pushes the given node to the given vector and recursively calls itself for each child node. */ inline void create_deep_vector( const css::uno::Reference< css::animations::XAnimationNode >& xNode, std::vector< css::uno::Reference< css::animations::XAnimationNode > >& rVector ) { rVector.push_back( xNode ); try { // get an XEnumerationAccess to the children css::uno::Reference< css::container::XEnumerationAccess > xEnumerationAccess( xNode, css::uno::UNO_QUERY ); if( xEnumerationAccess.is() ) { css::uno::Reference< css::container::XEnumeration > xEnumeration = xEnumerationAccess->createEnumeration(); if( xEnumeration.is() ) { while( xEnumeration->hasMoreElements() ) { css::uno::Reference< css::animations::XAnimationNode > xChildNode( xEnumeration->nextElement(), css::uno::UNO_QUERY_THROW ); create_deep_vector( xChildNode, rVector ); } } } } catch( css::uno::Exception& ) { } } } #endif /* INCLUDED_ANIMATIONS_ANIMATIONNODEHELPER_HXX */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /collabora/co-24.04.5 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2018-01-19loplugin:unusedmethods also check for functions returning boolNoel Grandin
2018-01-19loplugin:useuniqueptr in idlNoel Grandin
2017-12-21TypedWhichId in svx part 1Noel Grandin
2017-11-21Fix typosAndrea Gelmini
2017-10-30loplugin:constmethod in idl,helpcompilerNoel Grandin
2017-08-02remove unnecessary use of 'this->'Noel Grandin
2017-07-28loplugin:constparams handle constructorsNoel Grandin
2017-07-18loplugin:constparams codemaker,idl,idlcNoel Grandin
2017-07-06use OString::operator== in preference to ::equalsNoel Grandin
2017-06-06tdf#39674 Translate some German variable/function namesJohnny_M
2017-06-06replace SVSTREAM_OK with ERRCODE_NONENoel Grandin
2017-05-08cleanup tools/debug.hxx includesJochen Nitschke
2017-05-02create SfxGroupId based on o3tl::strong_intNoel Grandin
2017-05-01svidl: Adapt to SlotType removalMaxim Monastirsky
2017-05-01svidl: Remove nested method supportMaxim Monastirsky
2017-03-28remove PseudoSlot support from idl compilerNoel Grandin
2017-03-23Remove unused #include <ctype.h>Stephan Bergmann
2017-03-23Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)Stephan Bergmann
2017-02-02convert method names in tools::SvRef to be more like our other..Noel Grandin
2017-01-09New loplugin:externvar: idlStephan Bergmann
2016-12-19drop custom hashtable implementation in idlNoel Grandin
2016-10-12Don't allow O[U]StringBuffer in string concatenationStephan Bergmann
2016-10-10tdf#89307: Removed SvRef::operator T*()Jacek Fraczek
2016-09-08remove IMAGEROTATION and IMAGEREFLECTION SfxSlotMode enums...Caolán McNamara
2016-08-30Let OUStringLiteral1 take its arg as ctor arg, not template argStephan Bergmann
2016-08-27put StreamMode masks in scope of enum classJochen Nitschke