|
1 /* |
|
2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation for XCFWEntityConverter |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <f32file.h> |
|
20 #include <stringpool.h> |
|
21 |
|
22 #include <gmxmlconstants.h> |
|
23 #include <gmxmlcomposer.h> |
|
24 #include "xcfwentityconverter.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CXCFWEntityConverter::CXCFWEntityConverter |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 EXPORT_C CXCFWEntityConverter::CXCFWEntityConverter() |
|
35 { |
|
36 } |
|
37 |
|
38 EXPORT_C CXCFWEntityConverter::~CXCFWEntityConverter() |
|
39 { |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // CXCFWEntityConverter::OutputComposedTextL |
|
44 // Function outputs the given text "as is" to CMDXMLComposer |
|
45 // This is needed, because the default entity converter from GMXML would |
|
46 // otherwise turn all & characters into & entities. |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 EXPORT_C TInt CXCFWEntityConverter::OutputComposedTextL( |
|
50 CMDXMLComposer* aComposer, |
|
51 const TDesC& aTextToConvert) |
|
52 { |
|
53 aComposer->OutputDataL( aTextToConvert ); |
|
54 return KErrNone; |
|
55 } |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // CXCFWEntityConverter::DTDEntityToText |
|
59 // Just return KErrNone, dtd=>text conversion is done during DOM=>tree parsing |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 TInt CXCFWEntityConverter::DTDEntityToText(TDes& /*aTextToConvert*/) |
|
63 { |
|
64 return KErrNone; |
|
65 } |
|
66 |
|
67 |
|
68 // End Of File |