Update ooo320-m1
[ooovba.git] / autodoc / source / parser_i / inc / tokens / stmstar2.hxx
blob0648c2b8348f86ed3afe34a11ea94eb88ed5d0d3
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: stmstar2.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef ADC_STMSTAR2_HXX
32 #define ADC_STMSTAR2_HXX
34 // USED SERVICES
35 // BASE CLASSES
36 #include <tokens/stmstat2.hxx>
37 // COMPONENTS
38 // PARAMETERS
39 // SERVICES
42 class StmArrayStatu2 : public StmStatu2
44 public:
45 // LIFECYCLE
46 StmArrayStatu2(
47 intt i_nStatusSize,
48 const INT16 * in_aArrayModel,
49 uintt i_nTokenId,
50 bool in_bIsDefault );
51 ~StmArrayStatu2();
53 // INQUIRY
54 StmStatu2::Branch NextBy(
55 intt in_nFollowersIndex) const;
56 UINT16 TokenId() const { return nTokenId; }
57 virtual bool IsADefault() const;
59 // ACCESS
60 virtual StmArrayStatu2 *
61 AsArray();
62 bool SetBranch(
63 intt in_nBranchIx,
64 StmStatu2::Branch
65 in_nBranch );
66 void SetTokenId(
67 UINT16 in_nTokenId );
68 private:
69 StmStatu2::Branch * dpBranches;
70 intt nNrOfBranches;
71 UINT16 nTokenId;
72 bool bIsADefault;
76 // IMPLEMENTATION
78 inline void
79 StmArrayStatu2::SetTokenId( UINT16 in_nTokenId )
80 { nTokenId = in_nTokenId; }
84 #endif