|
1 /* |
|
2 * Copyright (c) 2002 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: Plug-in |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "TBCardVersitPlugin.h" |
|
21 #include <vuid.h> |
|
22 |
|
23 // ==================== MEMBER FUNCTIONS ==================== |
|
24 |
|
25 TBCardVersitPlugin::TBCardVersitPlugin() |
|
26 { |
|
27 } |
|
28 |
|
29 TBool TBCardVersitPlugin::AddSpace() |
|
30 { |
|
31 return EFalse; |
|
32 } |
|
33 |
|
34 |
|
35 TBool TBCardVersitPlugin::DeleteAllSpaces() |
|
36 { |
|
37 return EFalse; |
|
38 } |
|
39 |
|
40 TBool TBCardVersitPlugin::NeedsBlankLine() |
|
41 { |
|
42 return EFalse; |
|
43 } |
|
44 |
|
45 |
|
46 void TBCardVersitPlugin::RemoveEscaping(TPtr16& /*aText*/) |
|
47 { |
|
48 } |
|
49 |
|
50 |
|
51 void TBCardVersitPlugin::AddEscaping(HBufC16*& /*aText*/) |
|
52 { |
|
53 } |
|
54 |
|
55 TBool TBCardVersitPlugin::WrapLine(RWriteStream& /*aStream*/, |
|
56 TInt& /*aCurrentLineLength*/, const TPtr8& /*aText*/) |
|
57 { |
|
58 return EFalse; |
|
59 } |
|
60 |
|
61 TBool TBCardVersitPlugin::EncodingType( |
|
62 Versit::TVersitEncoding& aEncoding, |
|
63 TBool aRequiresEncoding, |
|
64 Versit::TVersitEncoding /*aDefaultEncoding*/, |
|
65 TUid aPropertyUid, |
|
66 TUint /*aPropertyCharsetId*/) |
|
67 { |
|
68 // NOTE!!!: if binary then this must be set to EFalse! |
|
69 // In case of binary data encoding must be enabled |
|
70 if (aRequiresEncoding || aPropertyUid == TUid::Uid(KVersitPropertyBinaryUid)) |
|
71 { |
|
72 return EFalse; |
|
73 } |
|
74 |
|
75 aEncoding = Versit::ENoEncoding; |
|
76 return ETrue; |
|
77 } |
|
78 |
|
79 const TDesC8& TBCardVersitPlugin::EncodingName |
|
80 (Versit::TVersitEncoding /*aEncoding*/) |
|
81 { |
|
82 return KNullDesC8; |
|
83 } |
|
84 |
|
85 // End of File |