1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 
6 #ifndef TRANSFRMX_TEXT_HANDLER_H
7 #define TRANSFRMX_TEXT_HANDLER_H
8 
9 #include "txXMLEventHandler.h"
10 #include "nsString.h"
11 
12 class txTextHandler : public txAXMLEventHandler {
13  public:
14   explicit txTextHandler(bool aOnlyText);
15 
16   TX_DECL_TXAXMLEVENTHANDLER
17 
18   nsString mValue;
19 
20  private:
21   uint32_t mLevel;
22   bool mOnlyText;
23 };
24 
25 #endif
26