dependencies/xcfw/gmxmlcharacterdata.h
author Kir?ly J?zsef <fonix232@gmail.com>
Mon, 24 May 2010 17:34:06 +0200
branchv5backport
changeset 77 a5edac421fbd
parent 17 c9bafd575d88
permissions -rw-r--r--
Added missing libraries, except scppnwdl.dll Source: Symbian^3 PDK 3.0.i
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
     1
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
     2
// All rights reserved.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
     3
// This component and the accompanying materials are made available
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
     5
// which accompanies this distribution, and is available
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
     7
//
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
     8
// Initial Contributors:
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    10
//
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    11
// Contributors:
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    12
//
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    13
// Description:
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    14
//
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    15
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    16
/**
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    17
 @file
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    18
*/
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    19
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    20
#ifndef __GMXMLCHARACTERDATA_H__
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    21
#define __GMXMLCHARACTERDATA_H__
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    22
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    23
#include <e32base.h>
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    24
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    25
#include <gmxmlnode.h>
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    26
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    27
class CMDXMLCharacterData : public CMDXMLNode
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    28
/** Base class for text sections, such as CDATA sections, comments and processing 
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    29
instructions, of an XML file.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    30
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    31
Objects with this interface contain text, but cannot have child nodes. 
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    32
@publishedPartner
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    33
@released
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    34
*/
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    35
{
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    36
public:
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    37
	/** Destructor. */
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    38
	IMPORT_C virtual ~CMDXMLCharacterData();
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    39
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    40
	/** Gets the text of the section.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    41
	
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    42
	@return The text of the section */
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    43
	IMPORT_C virtual TDesC& Data();
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    44
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    45
	/** Sets the whole of the section text.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    46
	
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    47
	@param aData Text to set
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    48
	@leave KErrNoMemory Memory allocation failed */
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    49
	IMPORT_C virtual void SetDataL( TDesC& aData );
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    50
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    51
	/** Gets the length of the section text.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    52
	
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    53
	@return Returns the length of the text */
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    54
	IMPORT_C virtual TInt Length();
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    55
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    56
	/** Appends text to the section.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    57
	
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    58
	@param aData The text to append.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    59
	@leave KErrNoMemory Memory allocation failed */
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    60
	IMPORT_C virtual void AppendL( TDesC& aData );
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    61
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    62
	/** Inserts text at a specified point in the section.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    63
	
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    64
	@param aInsertPos The position at which to insert the text. 0 means insert 
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    65
	at the start.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    66
	@param aData Text to insert
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    67
	@leave KErrNoMemory Memory allocation failed
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    68
	@return Returns KErrNone if successful or KErrNotFound if the insert position 
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    69
	is out of range */
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    70
	IMPORT_C virtual TInt InsertL( TInt aInsertPos, TDesC& aData );
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    71
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    72
	/** Replaces a block of text in the section. 
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    73
	
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    74
	@param aInsertPos The position at which to insert the text. 0 means insert 
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    75
	at the start.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    76
	@param aLength The number of characters to replace
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    77
	@param aData The text to insert
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    78
	@leave KErrNoMemory Memory allocation failed
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    79
	@return Returns KErrNone if successful or KErrNotFoundif the replace block 
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    80
	is out of range */
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    81
	IMPORT_C virtual TInt ReplaceL( TInt aInsertPos, TInt aLength, TDesC& aData );
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    82
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    83
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    84
	/** Check the children of this node for validity.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    85
	
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    86
	For a character data section, there can be no children so this is always true.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    87
	
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    88
	@return Always true. */
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    89
	IMPORT_C virtual TBool CheckChildren();
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    90
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    91
protected:
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    92
	/*
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    93
	 * Constructor
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    94
	 * @param aNodeType The node type of the derived object
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    95
	 * @param aOwnerDocument The Document at the root of the DOM tree.
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    96
	 */
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    97
	CMDXMLCharacterData( TDOMNodeType aNodeType, CMDXMLDocument* aOwnerDocument );
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    98
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
    99
private:
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
   100
	HBufC* iData;	// Buffer to hold the actual text of the CDATA section
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
   101
};
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
   102
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
   103
c9bafd575d88 xcfw component compiles now
jake
parents:
diff changeset
   104
#endif