17
|
1 |
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// This file contains the declaration of the CMDXMLDocument when no
|
|
15 |
// DTD is mentioned.
|
|
16 |
//
|
|
17 |
//
|
|
18 |
/**
|
|
19 |
* @file
|
|
20 |
* @internalComponent
|
|
21 |
* @released
|
|
22 |
*/
|
|
23 |
|
|
24 |
#ifndef __GMXMLDUMMYDTD_H__
|
|
25 |
#define __GMXMLDUMMYDTD_H__
|
|
26 |
|
|
27 |
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
|
|
28 |
#include "GMXMLDocument.h"
|
|
29 |
#endif
|
|
30 |
|
|
31 |
_LIT(KXMLCDATASectionNodeName, "#cdata-section");
|
|
32 |
_LIT(KXMLCommentNodeName, "comment");
|
|
33 |
_LIT(KXMLProcessingInstructionNodeName, "processing_instruction");
|
|
34 |
_LIT(KXMLTextNodeName, "#text");
|
|
35 |
_LIT(KXMLDefaultVersionTag, "<?xml version=\"1.0\" ?>");
|
|
36 |
_LIT(KXMLDefaultDocTypeTag, "<!DOCTYPE smil SYSTEM \"mms_smil.dtd\">");
|
|
37 |
_LIT(KXMLVersion, "<?xml");
|
|
38 |
_LIT(KXMLEndTag, ">");
|
|
39 |
_LIT(KXMLDocumentTypes, "<!DOCTYPE");
|
|
40 |
|
|
41 |
/**
|
|
42 |
* ELement whose enumerated type has not been set.
|
|
43 |
* @internalTechnology
|
|
44 |
* @released
|
|
45 |
*/
|
|
46 |
const TInt KXMLUndefinedElement = -1;
|
|
47 |
|
|
48 |
// Used as panic category and number when a removed export is called
|
|
49 |
_LIT(KLDRIMPORT, "LDR-IMPORT");
|
|
50 |
|
|
51 |
/**
|
|
52 |
* @internalTechnology
|
|
53 |
* @released
|
|
54 |
*/
|
|
55 |
const TInt KLdrImportedOrdinalDoesNotExist = 2;
|
|
56 |
|
|
57 |
class CMDXMLDummyDtd : public MXMLDtd
|
|
58 |
/*
|
|
59 |
This class is used internally when no DTD is supplied to CMDXMLDocument.
|
|
60 |
*/
|
|
61 |
/**
|
|
62 |
@internalComponent
|
|
63 |
@released
|
|
64 |
*/
|
|
65 |
{
|
|
66 |
TBool IsValidElementL(const TDesC& aElement) const;
|
|
67 |
TInt IsValidAttributeForElementL(const TDesC& aElement, const TDesC& aAttribute, const TDesC& aAttributeValue) const;
|
|
68 |
TBool AreValidChildElementsL(const TDesC& aParentElement, const CDesCArray& aChildElements) const;
|
|
69 |
TBool CanElementHaveChildren(const TDesC& aElement) const;
|
|
70 |
};
|
|
71 |
|
|
72 |
#endif //__GMXMLDUMMYDTD_H__
|