1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: cx_base.hxx,v $
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_CPP_CX_BASE_HXX
32 #define ADC_CPP_CX_BASE_HXX
36 #include <tokens/tkpcontx.hxx>
50 class Cx_Base
: public ::TkpContext
53 virtual bool PassNewToken();
57 virtual void AssignDealer(
58 Distributor
& o_rDealer
);
62 TkpContext
* io_pFollowUpContext
);
65 DYN ::TextToken
* let_dpToken
);
66 void SetFollowUpContext(
67 TkpContext
* io_pContext
);
69 Distributor
& Dealer() const;
73 Distributor
* pDealer
;
74 TkpContext
* pFollowUpContext
;
75 Dyn
< ::TextToken
> pNewToken
;
82 Cx_Base::SetNewToken( DYN ::TextToken
* let_dpToken
)
83 { pNewToken
= let_dpToken
; }
85 Cx_Base::SetFollowUpContext( TkpContext
* io_pContext
)
86 { pFollowUpContext
= io_pContext
; }
88 Cx_Base::Dealer() const
89 { csv_assert(pDealer
!= 0);