/*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * copyright (C) 2002-2006 * * Umbrello UML Modeller Authors * ***************************************************************************/ #ifndef UMLCLIPBOARD_H #define UMLCLIPBOARD_H #include "../associationwidgetlist.h" #include "../umlobjectlist.h" #include "../umllistviewitemlist.h" #include "../umllistviewitem.h" #include "../umlviewlist.h" #include "../umlwidgetlist.h" class IDChangeLog; class TQMimeSource; /** * This class manages the uml's interaction with the KDE * Clipboard. It makes possible to copy stuff from one uml * instance to another one. * * @short Clipboard management class * @author Gustavo Madrigal * Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org */ class UMLClipboard : public TQObject { Q_OBJECT public: /** * Constructor. */ UMLClipboard(); /** * Deconstructor. */ virtual ~UMLClipboard(); /** * Inserts the clipboard's contents. * * @param Data Pointer to the MIME format clipboard data. * @return True for successful operation. */ bool paste(TQMimeSource* Data); /** * Copies the selected stuff from the list view or current diagram * to a TQMimeSource ready to be put in the clipboard. * * @return Pointer to the created clipboard data. */ TQMimeSource* copy(bool fromView = false); /// Enumeration that codes the different types of UML clips. enum UMLCopyType { clip1 = 1, ///