2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2013-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_INC_SWACORR_HXX
|
|
|
|
#define INCLUDED_SW_INC_SWACORR_HXX
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2010-01-08 18:32:51 +01:00
|
|
|
#include <editeng/svxacorr.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2004-10-04 18:00:07 +00:00
|
|
|
#include <com/sun/star/uno/Reference.h>
|
|
|
|
#include <com/sun/star/embed/XStorage.hpp>
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwAutoCorrect : public SvxAutoCorrect
|
|
|
|
{
|
2007-10-22 14:09:24 +00:00
|
|
|
using SvxAutoCorrect::PutText;
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
protected:
|
2011-04-18 20:18:04 +02:00
|
|
|
// Return replacement text (only for SWG-format, all others can be obtained from wordlist!).
|
|
|
|
// rShort is stream-name - encrypted!
|
2014-02-26 11:01:45 +02:00
|
|
|
virtual bool GetLongText( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >&,
|
2013-09-16 14:20:18 +02:00
|
|
|
const OUString& rFileName, const OUString& rShort, OUString& rLong );
|
2007-09-27 07:10:31 +00:00
|
|
|
|
2011-04-18 20:18:04 +02:00
|
|
|
// Text with attributes (only SWG-format!).
|
|
|
|
// rShort is stream-name - encrypted!
|
2014-02-26 11:01:45 +02:00
|
|
|
virtual bool PutText( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >&,
|
2013-09-16 14:20:18 +02:00
|
|
|
const OUString& rFileName, const OUString& rShort, SfxObjectShell&, OUString& );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
TYPEINFO();
|
|
|
|
|
|
|
|
SwAutoCorrect( const SvxAutoCorrect& rACorr );
|
|
|
|
virtual ~SwAutoCorrect();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-14 08:30:41 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|