/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the Collabora Office 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/.
 *
 */

#pragma once

#include <sfx2/shell.hxx>

#include <shellids.hxx>

class ScTabViewShell;
class SfxModule;
class ScDBData;

class ScTableShell final : public SfxShell
{
public:
    SFX_DECL_INTERFACE(SCID_TABLE_SHELL)

private:
    /// SfxInterface initializer.
    static void InitInterface_Impl();
    const ScDBData* GetTableDBDataAtCursor();
    bool IsTableEditable(const ScDBData& rDBData) const;

public:
    ScTableShell(ScTabViewShell* pView);
    virtual ~ScTableShell() override;

    void ExecuteDatabaseSettings(const SfxRequest& rReq);
    void GetDatabaseSettings(SfxItemSet& rSet);

private:
    ScTabViewShell* m_pViewShell;
};

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
