LibreOffice Module sc (master) 1
cellsh.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <sfx2/shell.hxx>
23#include <shellids.hxx>
25#include <tools/link.hxx>
26#include <memory>
27#include "formatsh.hxx"
28#include <rtl/ref.hxx>
29#include <sot/formats.hxx>
30#include <vcl/vclptr.hxx>
31#include <vcl/window.hxx>
32
37
39{
44
47};
48
49class ScCellShell final : public ScFormatShell
50{
51private:
52 std::unique_ptr<CellShell_Impl> pImpl;
54
58 const OUString& _rFile, const OUString& _rFilter, const OUString& _rOptions,
59 const OUString& _rSource, sal_Int32 _nRefreshDelaySeconds, SfxRequest& _rRequest );
60
63 void ExecuteSubtotals(SfxRequest& rReq);
64
66
67 DECL_LINK( ClipboardChanged, TransferableDataHelper*, void );
68
70
72
73public:
75
76private:
78 static void InitInterface_Impl();
79
80public:
82 virtual ~ScCellShell() override;
83
84 void Execute(SfxRequest &);
85 void GetState(SfxItemSet &);
86
87 void ExecuteEdit( SfxRequest& rReq );
88 void ExecuteTrans( SfxRequest& rReq );
89 void ExecuteRotateTrans( const SfxRequest& rReq );
90
91 void GetBlockState( SfxItemSet& rSet );
92 void GetCellState( SfxItemSet& rSet );
93
94 void ExecuteDB( SfxRequest& rReq );
95 void GetDBState( SfxItemSet& rSet );
96
97 void GetClipState( SfxItemSet& rSet );
98 void GetHLinkState( SfxItemSet& rSet );
99
100 void ExecuteCursor( SfxRequest& rReq );
101 void ExecuteCursorSel( SfxRequest& rReq );
102 void ExecutePage( SfxRequest& rReq );
103 void ExecutePageSel( SfxRequest& rReq );
104 void ExecuteMove( SfxRequest& rReq );
105
106 static void GetStateCursor( SfxItemSet& rSet );
107};
108
109/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void GetDBState(SfxItemSet &rSet)
Definition: cellsh2.cxx:1050
DECL_LINK(ClipboardChanged, TransferableDataHelper *, void)
void GetHLinkState(SfxItemSet &rSet)
Definition: cellsh.cxx:669
void ExecutePage(SfxRequest &rReq)
Definition: cellsh4.cxx:462
void GetPossibleClipboardFormats(SvxClipboardFormatItem &rFormats)
Definition: cellsh.cxx:470
static void GetStateCursor(SfxItemSet &rSet)
Definition: cellsh4.cxx:236
void GetCellState(SfxItemSet &rSet)
Definition: cellsh.cxx:359
void ExecuteCursor(SfxRequest &rReq)
Definition: cellsh4.cxx:32
virtual ~ScCellShell() override
Definition: cellsh.cxx:85
bool HasClipboardFormat(SotClipboardFormatId nFormatId)
Definition: cellsh.cxx:538
void ExecuteDB(SfxRequest &rReq)
Definition: cellsh2.cxx:227
void Execute(SfxRequest &)
Definition: cellsh3.cxx:153
static void InitInterface_Impl()
SfxInterface initializer.
Definition: cellsh.cxx:66
void ExecuteMove(SfxRequest &rReq)
Definition: cellsh4.cxx:318
std::unique_ptr< CellShell_Impl > pImpl
Definition: cellsh.hxx:52
void GetBlockState(SfxItemSet &rSet)
Definition: cellsh.cxx:102
VclPtr< vcl::Window > pFrameWin
Definition: cellsh.hxx:71
void ExecuteRotateTrans(const SfxRequest &rReq)
Definition: cellsh1.cxx:3046
RotateTransliteration m_aRotateCase
Definition: cellsh.hxx:69
void ExecuteExternalSource(const OUString &_rFile, const OUString &_rFilter, const OUString &_rOptions, const OUString &_rSource, sal_Int32 _nRefreshDelaySeconds, SfxRequest &_rRequest)
Definition: cellsh1.cxx:3052
void ExecuteEdit(SfxRequest &rReq)
Definition: cellsh1.cxx:228
void GetState(SfxItemSet &)
Definition: cellsh.cxx:689
ScCellShell(ScViewData &rData, const VclPtr< vcl::Window > &pFrameWin)
Definition: cellsh.cxx:75
void ExecuteFillSingleEdit()
Definition: cellsh1.cxx:3439
void ExecuteCursorSel(SfxRequest &rReq)
Definition: cellsh4.cxx:240
void ExecutePageSel(SfxRequest &rReq)
Definition: cellsh4.cxx:445
void ExecuteTrans(SfxRequest &rReq)
Definition: cellsh1.cxx:3036
void ExecuteDataPilotDialog()
Definition: cellsh1.cxx:3167
bool bPastePossible
Definition: cellsh.hxx:53
void ExecuteSubtotals(SfxRequest &rReq)
Definition: cellsh1.cxx:3362
void GetClipState(SfxItemSet &rSet)
Definition: cellsh.cxx:610
void ExecuteXMLSourceDialog()
Definition: cellsh1.cxx:3348
SotClipboardFormatId
#define SFX_DECL_INTERFACE(nId)
#define SCID_CELL_SHELL
Definition: shellids.hxx:36
SfxRequest * m_pRequest
Definition: cellsh.hxx:43
VclPtr< AbstractScLinkedAreaDlg > m_pLinkedDlg
Definition: cellsh.hxx:42
rtl::Reference< TransferableClipboardListener > m_xClipEvtLstnr
Definition: cellsh.hxx:41