Bump for 3.6-28
[LibreOffice.git] / autodoc / source / ary / idl / i_ce2s.cxx
bloba6197bb2224903916fbcbe839e872723730dbf75
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #include <precomp.h>
30 #include <ary/idl/i_ce.hxx>
33 // NOT FULLY DEFINED SERVICES
34 #include <cosv/tpl/tpltools.hxx>
35 #include <ary/doc/d_oldidldocu.hxx>
36 #include <ary/getncast.hxx>
39 namespace ary
41 namespace idl
44 namespace
46 const std::vector<Ce_id> C_sNullVector_Ce_ids;
50 Ce_2s::~Ce_2s()
52 csv::erase_container_of_heap_ptrs(aXrefLists);
55 DYN Ce_2s *
56 Ce_2s::Create_()
58 return new Ce_2s;
62 std::vector<Ce_id> &
63 Ce_2s::Access_List( int i_indexOfList )
65 csv_assert(i_indexOfList >= 0 AND i_indexOfList < 1000);
67 while (i_indexOfList >= (int) aXrefLists.size())
69 aXrefLists.push_back(new std::vector<Ce_id>);
71 return *aXrefLists[i_indexOfList];
74 const std::vector<Ce_id> &
75 Ce_2s::List( int i_indexOfList ) const
77 if (uintt(i_indexOfList) < aXrefLists.size())
78 return *aXrefLists[i_indexOfList];
79 else
80 return C_sNullVector_Ce_ids;
84 } // namespace idl
85 } // namespace ary
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */