--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/notepad/notepad1/ViewerInc/NpdViewerDocument.h Tue Feb 02 10:12:19 2010 +0200
@@ -0,0 +1,77 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Declarations for Notepad Viewer Document class.
+*
+*/
+
+
+#ifndef NOTEPADVIEWERDOCUMENT_H
+#define NOTEPADVIEWERDOCUMENT_H
+
+// INCLUDES
+#include <eikdoc.h>
+
+// FORWARD DECLARATIONS
+class CEikAppUi;
+
+// CLASS DECLARATION
+/**
+* Notepad Viewer Document class.
+* Notepad Viewer is not file-based.
+*
+*/
+class CNotepadViewerDocument : public CEikDocument
+ {
+ public: // Constructor
+
+ /**
+ * Constructor. (no need for two-phased construction)
+ *
+ * @param aApp reference to an application object.
+ */
+ CNotepadViewerDocument(CEikApplication& aApp);
+
+ private: // Functions from base classes
+
+ /**
+ * From CEikDocument.
+ * Create CNotepadViewerAppUi "App UI" object.
+ */
+ CEikAppUi* CreateAppUiL();
+
+ /**
+ * From CEikDocument.
+ * Always return NULL, so as not to create a INI file.
+ *
+ * @param aDoOpen ETrue if file exists. (ignored)
+ * @param aFilename file to view.
+ * @param aFs FileServerSession. (ignored)
+ * @return file store. (always NULL)
+ */
+ CFileStore* OpenFileL(TBool aDoOpen, const TDesC& aFilename,RFs& aFs);
+
+ /**
+ * From CEikDocument.
+ *
+ * @param aFileStore. (ignored)
+ * @param aFile.
+ */
+ void OpenFileL(CFileStore*& aFileStore, RFile& aFile);
+
+ };
+
+#endif // NOTEPADVIEWERDOCUMENT_H
+
+// End of File
+