merge the formfield patch from ooo-build
[ooovba.git] / sw / inc / swacorr.hxx
blobe6e20b3fb68397fb728c74d659832b8635f418c2
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: swacorr.hxx,v $
10 * $Revision: 1.9 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SWACORR_HXX
31 #define _SWACORR_HXX
33 #include <svx/svxacorr.hxx>
35 #include <com/sun/star/uno/Reference.h>
36 #include <com/sun/star/embed/XStorage.hpp>
38 class SwAutoCorrect : public SvxAutoCorrect
40 using SvxAutoCorrect::PutText;
42 protected:
43 // - return den Ersetzungstext (nur fuer SWG-Format, alle anderen
44 // koennen aus der Wortliste herausgeholt werden!)
45 // rShort ist der Stream-Name - gecryptet!
46 virtual BOOL GetLongText( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& , const String& rFileName, const String& rShort, String& rLong );
48 // - Text mit Attributierung (kann nur der SWG - SWG-Format!)
49 // rShort ist der Stream-Name - gecryptet!
50 virtual BOOL PutText( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >&, const String& rFileName, const String& rShort, SfxObjectShell& ,
51 String& );
53 public:
54 TYPEINFO();
56 SwAutoCorrect( const SvxAutoCorrect& rACorr );
57 virtual ~SwAutoCorrect();
61 #endif