1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_XMLSECURITY_SOURCE_FRAMEWORK_ELEMENTCOLLECTOR_HXX
21 #define INCLUDED_XMLSECURITY_SOURCE_FRAMEWORK_ELEMENTCOLLECTOR_HXX
23 #include "elementmark.hxx"
24 #include <com/sun/star/xml/crypto/sax/XReferenceResolvedListener.hpp>
25 #include <com/sun/star/xml/crypto/sax/ElementMarkPriority.hpp>
27 class ElementCollector
: public ElementMark
28 /****** elementcollector.hxx/CLASS ElementCollector ***************************
31 * ElementCollector -- Class to manipulate an element collector
34 * This class is derived from the ElementMark class. Beyond the function
35 * of the ElementMark class, this class also maintains the priority, and
36 * manages the notify process
37 ******************************************************************************/
41 * the notify priority, is one of following values:
42 * AFTERMODIFY - this ElementCollector will notify after all
43 * internal modifications have finished.
44 * BEFOREMODIFY - this ElementCollector must notify before any
45 * internal modification happens.
47 css::xml::crypto::sax::ElementMarkPriority m_nPriority
;
50 * the modify flag, representing whether which elementcollector will
55 /* the notify enable flag, see notifyListener method */
58 /* whether the listener has been notified */
61 /* the listener to be notified */
62 css::uno::Reference
< css::xml::crypto::sax::XReferenceResolvedListener
> m_xReferenceResolvedListener
;
67 css::xml::crypto::sax::ElementMarkPriority nPriority
,
69 const css::uno::Reference
< css::xml::crypto::sax::XReferenceResolvedListener
>& xReferenceResolvedListener
);
71 css::xml::crypto::sax::ElementMarkPriority
getPriority() const { return m_nPriority
;}
72 bool getModify() const { return m_bToModify
;}
73 void notifyListener();
74 void setReferenceResolvedListener(
75 const css::uno::Reference
< css::xml::crypto::sax::XReferenceResolvedListener
>& referenceResolvedListener
);
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */