/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * 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/. */ #ifndef INCLUDED_SC_SOURCE_UI_INC_DATAFDLG_HXX #define INCLUDED_SC_SOURCE_UI_INC_DATAFDLG_HXX #include #include #include #include "global.hxx" #include "tabvwsh.hxx" #include #include #define MAX_DATAFORM_COLS 256 #define MAX_DATAFORM_ROWS 32000 class ScDataFormDlg : public ModalDialog { private: VclPtr m_pBtnNew; VclPtr m_pBtnDelete; VclPtr m_pBtnRestore; VclPtr m_pBtnPrev; VclPtr m_pBtnNext; VclPtr m_pBtnClose; VclPtr m_pSlider; VclPtr m_pGrid; VclPtr m_pFixedText; OUString sNewRecord; ScTabViewShell* pTabViewShell; ScDocument* pDoc; sal_uInt16 aColLength; SCROW nCurrentRow; SCCOL nStartCol; SCCOL nEndCol; SCROW nStartRow; SCROW nEndRow; SCTAB nTab; bool bNoSelection; std::vector > maFixedTexts; std::vector > maEdits; public: ScDataFormDlg( vcl::Window* pParent, ScTabViewShell* pTabViewShell); virtual ~ScDataFormDlg(); virtual void dispose() SAL_OVERRIDE; void FillCtrls(SCROW nCurrentRow); private: void SetButtonState(); // Handler: DECL_LINK_TYPED(Impl_NewHdl, Button*, void); DECL_LINK_TYPED(Impl_PrevHdl, Button*, void); DECL_LINK_TYPED(Impl_NextHdl, Button*, void); DECL_LINK_TYPED(Impl_RestoreHdl, Button*, void); DECL_LINK_TYPED(Impl_DeleteHdl, Button*, void); DECL_LINK_TYPED(Impl_CloseHdl, Button*, void); DECL_LINK(Impl_ScrollHdl, void *); DECL_LINK( Impl_DataModifyHdl, Edit* ); }; #endif // INCLUDED_SC_SOURCE_UI_INC_DATAFDLG_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */