lib Library API Documentation

koDocumentChild.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017    Boston, MA 02111-1307, USA.
00018 */
00019 #ifndef __koDocumentChild_h__
00020 #define __koDocumentChild_h__
00021 
00022 #include <koChild.h>
00023 
00024 class QDomDocument;
00025 class QDomElement;
00026 class KURL;
00027 class KoStore;
00028 class KoDocument;
00029 class KoDocumentChildPrivate;
00030 class KoDocumentEntry;
00031 
00042 class KoDocumentChild : public KoChild
00043 {
00044   Q_OBJECT
00045 public:
00046   KoDocumentChild( KoDocument* parent, KoDocument* doc, const QRect& geometry );
00047 
00052   KoDocumentChild( KoDocument* parent );
00053 
00054   virtual ~KoDocumentChild();
00055 
00060   virtual void setDocument( KoDocument *doc, const QRect &geometry );
00061 
00067   virtual KoDocument *document() const;
00068 
00074   virtual KoDocument *parentDocument() const;
00075 
00076   virtual KoDocument* hitTest( const QPoint& p, const QWMatrix& _matrix = QWMatrix() );
00077 
00081   virtual KURL url();
00082 
00095   virtual QDomElement save( QDomDocument& doc, bool uppercase=false );
00096 
00107   virtual bool load( const QDomElement& element, bool uppercase=false );
00108 
00113   virtual bool loadDocument( KoStore* );
00114 
00115   virtual bool isStoredExtern();
00116 
00120   bool isDeleted() const;
00121   void setDeleted( bool on = true );
00122 
00123 protected: // Should be private, but KWord needs access to the variables
00124     // because it reimplements load/save (for uppercase tags)
00125 
00132   QString m_tmpURL;
00133 
00139   QRect m_tmpGeometry;
00140 
00146   QString m_tmpMimeType;
00147 
00148 private:
00149   bool createUnavailDocument( KoStore* store, bool doOpenURL );
00150   bool loadDocumentInternal( KoStore* _store, const KoDocumentEntry& e, bool doOpenURL = true );
00151 
00152 private:
00153   KoDocumentChildPrivate *d;
00154 };
00155 
00156 #endif
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Mar 11 11:47:41 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003