/Users/ericb/Desktop/SRC680_m247/starmath/inc/action.hxx

Go to the documentation of this file.
00001 /*************************************************************************
00002  *
00003  *  OpenOffice.org - a multi-platform office productivity suite
00004  *
00005  *  $RCSfile: action.hxx,v $
00006  *
00007  *  $Revision: 1.4 $
00008  *
00009  *  last change: $Author: vg $ $Date: 2007/05/25 12:08:30 $
00010  *
00011  *  The Contents of this file are made available subject to
00012  *  the terms of GNU Lesser General Public License Version 2.1.
00013  *
00014  *
00015  *    GNU Lesser General Public License Version 2.1
00016  *    =============================================
00017  *    Copyright 2005 by Sun Microsystems, Inc.
00018  *    901 San Antonio Road, Palo Alto, CA 94303, USA
00019  *
00020  *    This library is free software; you can redistribute it and/or
00021  *    modify it under the terms of the GNU Lesser General Public
00022  *    License version 2.1, as published by the Free Software Foundation.
00023  *
00024  *    This library is distributed in the hope that it will be useful,
00025  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00026  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00027  *    Lesser General Public License for more details.
00028  *
00029  *    You should have received a copy of the GNU Lesser General Public
00030  *    License along with this library; if not, write to the Free Software
00031  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00032  *    MA  02111-1307  USA
00033  *
00034  ************************************************************************/
00035 #ifndef ACTION_HXX
00036 #define ACTION_HXX
00037 
00038 #ifndef _UNDO_HXX //autogen
00039 #include <svtools/undo.hxx>
00040 #endif
00041 
00042 #ifndef FORMAT_HXX
00043 #include "format.hxx"
00044 #endif
00045 
00046 class SmDocShell;
00047 
00048 
00049 class SmFormatAction: public SfxUndoAction
00050 {
00051         SmDocShell      *pDoc;
00052         SmFormat    aOldFormat;
00053         SmFormat    aNewFormat;
00054 
00055 public:
00056         SmFormatAction(SmDocShell *pDocSh, const SmFormat& rOldFormat, const SmFormat& rNewFormat);
00057 
00058         virtual void Undo();
00059         virtual void Redo();
00060     virtual void Repeat(SfxRepeatTarget& rDocSh);
00061     virtual UniString GetComment() const;
00062 };
00063 
00064 #endif
00065 

Generated on Wed Feb 20 17:21:56 2008 for maths by  doxygen 1.5.1