/* * 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 . */ import java.util.ArrayList; import com.sun.star.lang.IndexOutOfBoundsException; /** The VectorNode class is a simple container whose list of children is managed entirely by its owner. */ class VectorNode extends StringNode { private final ArrayList maChildren; public VectorNode (String sDisplayObject, AccessibleTreeNode aParent) { super (sDisplayObject, aParent); maChildren = new ArrayList (); } public void addChild (AccessibleTreeNode aChild) { maChildren.add (aChild); } @Override public int getChildCount () { return maChildren.size(); } @Override public AccessibleTreeNode getChild (int nIndex) throws IndexOutOfBoundsException { return maChildren.get(nIndex); } @Override public boolean removeChild (int nIndex) throws IndexOutOfBoundsException { return maChildren.remove (nIndex) != null; } @Override public int indexOf (AccessibleTreeNode aNode) { return maChildren.indexOf (aNode); } @Override public boolean isLeaf() { return maChildren.isEmpty(); } } /libreoffice-6-3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-02-22Put also the LICENSE file in Resources on macOSTor Lillqvist
Change-Id: Ia4888050099e74b93af67c58e988b4ae9e2516a1
2015-06-18Put LICENSE/NOTICE files to Resources on OSX in instdir case, tooAndras Timar
Change-Id: I59444cf36d829f8f726c9301ee8393d5ca16196c
2013-12-13Targetted text updates, with seasonable changes before l10n freeze.Michael Meeks
Change-Id: If37ef9f68711da3a0aa9a3ba59b111a8a23421df
2013-11-08instsetoo_native: shouldn't need instdir in include pathMichael Stahl
get_Source_Directory_For_Files_From_Includepathlist already has a special hack to find all the files in instdir so ideally it should not be necessary to put these directories on the include path. Clean up readlicense_oo to make that possible; also copying license.txt as-is to LICENSE on Unix but first converting it on WNT is rather silly... Change-Id: I95f30bc5e0b7ca73c50156a7ce0131640185778c Reviewed-on: https://gerrit.libreoffice.org/6613 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-10-31readlicense_oo: stop delivering files to OUTDIRMichael Stahl
- remove Package_readme, use generated files from WORKDIR via include path - Package_license and Package_files deliver to INSTDIR - split up Package_odk_shared_readme to have extra Package for generated files - gb_Extension_LICENSEFILE_DEFAULT points to INSTDIR Change-Id: I019d3431e30d982e887ae0000c755e0d61f98893
2013-10-28gbuild: set Package default target to INSTDIRMichael Stahl
Change-Id: I2bc45e4ba63f5faaee7389bcd9d7b3f563503186