1*ec61c6edSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*ec61c6edSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*ec61c6edSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*ec61c6edSAndrew Rist  * distributed with this work for additional information
6*ec61c6edSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*ec61c6edSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*ec61c6edSAndrew Rist  * "License"); you may not use this file except in compliance
9*ec61c6edSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*ec61c6edSAndrew Rist  *
11*ec61c6edSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*ec61c6edSAndrew Rist  *
13*ec61c6edSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*ec61c6edSAndrew Rist  * software distributed under the License is distributed on an
15*ec61c6edSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*ec61c6edSAndrew Rist  * KIND, either express or implied.  See the License for the
17*ec61c6edSAndrew Rist  * specific language governing permissions and limitations
18*ec61c6edSAndrew Rist  * under the License.
19*ec61c6edSAndrew Rist  *
20*ec61c6edSAndrew Rist  *************************************************************/
21*ec61c6edSAndrew Rist 
22*ec61c6edSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _ELEMENTMARK_HXX
25cdf0e10cSrcweir #define _ELEMENTMARK_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
28cdf0e10cSrcweir #include <com/sun/star/xml/crypto/sax/ElementMarkType.hpp>
29cdf0e10cSrcweir 
30cdf0e10cSrcweir class BufferNode;
31cdf0e10cSrcweir 
32cdf0e10cSrcweir class ElementMark
33cdf0e10cSrcweir /****** elementmark.hxx/CLASS ElementMark *************************************
34cdf0e10cSrcweir  *
35cdf0e10cSrcweir  *   NAME
36cdf0e10cSrcweir  *	ElementMark -- Class to manipulate an element mark
37cdf0e10cSrcweir  *
38cdf0e10cSrcweir  *   FUNCTION
39cdf0e10cSrcweir  *	This class maintains the security id, buffer id and its type for a
40cdf0e10cSrcweir  *	buffer node.
41cdf0e10cSrcweir  *
42cdf0e10cSrcweir  *   HISTORY
43cdf0e10cSrcweir  *	05.01.2004 -	implemented
44cdf0e10cSrcweir  *
45cdf0e10cSrcweir  *   AUTHOR
46cdf0e10cSrcweir  *	Michael Mi
47cdf0e10cSrcweir  *	Email: michael.mi@sun.com
48cdf0e10cSrcweir  ******************************************************************************/
49cdf0e10cSrcweir {
50cdf0e10cSrcweir protected:
51cdf0e10cSrcweir 	/* the BufferNode maintained by this object */
52cdf0e10cSrcweir 	BufferNode* m_pBufferNode;
53cdf0e10cSrcweir 
54cdf0e10cSrcweir 	/* the security Id */
55cdf0e10cSrcweir 	sal_Int32 m_nSecurityId;
56cdf0e10cSrcweir 
57cdf0e10cSrcweir 	/* the buffer Id */
58cdf0e10cSrcweir 	sal_Int32 m_nBufferId;
59cdf0e10cSrcweir 
60cdf0e10cSrcweir 	/*
61cdf0e10cSrcweir 	 * the type value, is one of following values:
62cdf0e10cSrcweir 	 * TYPEOFELEMENTMARK - the default value, represents an blocker if
63cdf0e10cSrcweir 	 *                     not changed
64cdf0e10cSrcweir 	 * TYPEOFELEMENTCOLLECTOR - represents an ElementCollector
65cdf0e10cSrcweir 	 */
66cdf0e10cSrcweir 	com::sun::star::xml::crypto::sax::ElementMarkType m_type;
67cdf0e10cSrcweir 
68cdf0e10cSrcweir public:
69cdf0e10cSrcweir 	ElementMark(sal_Int32 nSecurityId, sal_Int32 nBufferId);
~ElementMark()70cdf0e10cSrcweir 	virtual ~ElementMark() {};
71cdf0e10cSrcweir 
72cdf0e10cSrcweir 	BufferNode* getBufferNode() const;
73cdf0e10cSrcweir 	void setBufferNode(const BufferNode* pBufferNode);
74cdf0e10cSrcweir 	sal_Int32 getSecurityId() const;
75cdf0e10cSrcweir 	void setSecurityId(sal_Int32 nSecurityId);
76cdf0e10cSrcweir 	com::sun::star::xml::crypto::sax::ElementMarkType getType() const;
77cdf0e10cSrcweir 	sal_Int32 getBufferId() const;
78cdf0e10cSrcweir };
79cdf0e10cSrcweir 
80cdf0e10cSrcweir #endif
81cdf0e10cSrcweir 
82