1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef _SENDFUNC_HXX_
11 #define _SENDFUNC_HXX_
13 #include <sal/config.h>
15 #include "docfunc.hxx"
16 class ScCollaboration
;
17 class ScChangeOpWriter
;
19 class ScDocFuncSend
: public ScDocFunc
21 ScDocFuncDirect
* mpDirect
;
22 ScCollaboration
* mpCollaboration
;
24 friend class ScCollaboration
;
25 void RecvMessage( const OString
&rString
);
26 void SendMessage( ScChangeOpWriter
&rOp
);
28 // FIXME: really ScDocFunc should be an abstract base, so
29 // we don't need the rDocSh hack/pointer
30 ScDocFuncSend( ScDocShell
& rDocSh
, ScDocFuncDirect
* pDirect
, ScCollaboration
* pCollaboration
);
31 virtual ~ScDocFuncSend();
33 virtual void EnterListAction( sal_uInt16 nNameResId
);
34 virtual void EndListAction();
36 virtual sal_Bool
SetNormalString( bool& o_rbNumFmtSet
, const ScAddress
& rPos
, const OUString
& rText
, sal_Bool bApi
);
37 virtual bool SetValueCell( const ScAddress
& rPos
, double fVal
, bool bInteraction
);
38 virtual bool SetStringCell( const ScAddress
& rPos
, const OUString
& rStr
, bool bInteraction
);
39 virtual bool SetEditCell( const ScAddress
& rPos
, const EditTextObject
& rStr
, bool bInteraction
);
40 virtual bool SetFormulaCell( const ScAddress
& rPos
, ScFormulaCell
* pCell
, bool bInteraction
);
41 virtual bool PutData( const ScAddress
& rPos
, ScEditEngineDefaulter
& rEngine
, bool bApi
);
42 virtual bool SetCellText(
43 const ScAddress
& rPos
, const OUString
& rText
, bool bInterpret
, bool bEnglish
,
44 bool bApi
, const formula::FormulaGrammar::Grammar eGrammar
);
45 virtual bool ShowNote( const ScAddress
& rPos
, bool bShow
= true );
46 virtual bool SetNoteText( const ScAddress
& rPos
, const OUString
& rNoteText
, sal_Bool bApi
);
47 virtual sal_Bool
RenameTable( SCTAB nTab
, const OUString
& rName
, sal_Bool bRecord
, sal_Bool bApi
);
48 virtual sal_Bool
ApplyAttributes( const ScMarkData
& rMark
, const ScPatternAttr
& rPattern
,
49 sal_Bool bRecord
, sal_Bool bApi
);
50 virtual sal_Bool
ApplyStyle( const ScMarkData
& rMark
, const OUString
& rStyleName
,
51 sal_Bool bRecord
, sal_Bool bApi
);
52 virtual sal_Bool
MergeCells( const ScCellMergeOption
& rOption
, sal_Bool bContents
,
53 sal_Bool bRecord
, sal_Bool bApi
);
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */