/* * AbiCollab - Code to enable the modification of remote documents. * Copyright (C) 2005 by Martin Sevior * Copyright (C) 2006 by Marc Maurer * * 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. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifndef ABI_COLLABRECORD_H #define ABI_COLLABRECORD_H #include #include "ut_types.h" #include "pt_Types.h" #include "px_ChangeRecord.h" #include "ut_stack.h" #include "stdio.h" #include "xav_Listener.h" #include "pl_Listener.h" #include "ut_string_class.h" #include #include #include #include class FL_DocLayout; class PD_Document; class UT_Stack; class PX_ChangeRecord; class AbiCollab_ConnectionHandler; class CommandLine; class ABI_EXPORT AbiCollabRecord : public AbiCollab { public: AbiCollabRecord(AbiCollabFactoryContainer* pFactory, PD_Document * pDoc, UT_UTF8String sID, bool bAsCommandLine, UT_UTF8String * pRecordPathName, UT_UTF8String * pReplayPathName ); virtual ~AbiCollabRecord(void); virtual void push(const UT_UTF8String& packet); virtual void maskExport(); bool replayFile(); virtual const std::vector& unmaskExport(); private: bool m_bRecord; bool m_bReplay; UT_UTF8String m_sRecordPath; UT_UTF8String m_sReplayPath; FILE * m_outfile; }; #endif /* ABI_COLLABRECORD_H */