filters
kword13postparsing.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <qstring.h>
00022 #include <qdict.h>
00023
00024 #include <kdebug.h>
00025
00026 #include <KoStore.h>
00027
00028 #include "kword13picture.h"
00029 #include "kword13document.h"
00030 #include "kword13postparsing.h"
00031
00032 KWord13PostParsing::KWord13PostParsing(void) : m_kwordDocument( 0 )
00033 {
00034 }
00035
00036 KWord13PostParsing::~KWord13PostParsing(void)
00037 {
00038 }
00039
00040 bool KWord13PostParsing::postParsePictures( KoStore* store )
00041 {
00042 if ( ! m_kwordDocument )
00043 return false;
00044
00045 for ( QDictIterator<KWord13Picture> it( m_kwordDocument->m_pictureDict ) ; it.current(); ++it )
00046 {
00047 kdDebug(30520) << "Loading... " << it.currentKey() << endl;
00048 if ( ! it.current()->loadPicture( store ) )
00049 {
00050 kdWarning(30520) << "Could not load picture!" << endl;
00051 return false;
00052 }
00053 }
00054 return true;
00055 }
00056
00057
00058 bool KWord13PostParsing::postParse( KoStore* store, KWord13Document& doc )
00059 {
00060
00061 m_kwordDocument = &doc;
00062
00063
00064 postParsePictures( store );
00065
00066
00067 return 1;
00068 }
|