umbrello API Documentation

umlviewimageexporter.h

00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   copyright (C) 2006-2007                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00010  ***************************************************************************/
00011 
00012 #ifndef UMLVIEWIMAGEEXPORTER_H
00013 #define UMLVIEWIMAGEEXPORTER_H
00014 
00015 #include <qstring.h>
00016 #include <kurl.h>
00017 
00018 class UMLView;
00019 class KFileDialog;
00020 
00026 class UMLViewImageExporter {
00027 public:
00028 
00032     UMLViewImageExporter(UMLView* view);
00033 
00037     virtual ~UMLViewImageExporter() {
00038     }
00039 
00054     void exportView();
00055 
00061     KURL getImageURL() const {
00062         return m_imageURL;
00063     }
00064 
00070     QString getImageMimeType() const {
00071         return m_imageMimeType;
00072     }
00073 
00074 private:
00075 
00079     UMLView* m_view;
00080 
00084     KURL m_imageURL;
00085 
00089     QString m_imageMimeType;
00090 
00101     bool prepareExportView();
00102 
00110     bool getParametersFromUser();
00111 
00118     void prepareFileDialog(KFileDialog &fileDialog);
00119 
00120 };
00121 
00122 #endif
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:02 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003