LCOV - code coverage report
Current view: top level - libreoffice/sc/source/ui/inc - instbdlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 5 0.0 %
Date: 2012-12-27 Functions: 0 5 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #ifndef SC_INSTBDLG_HXX
      21             : #define SC_INSTBDLG_HXX
      22             : 
      23             : #include "address.hxx"
      24             : 
      25             : #include <vcl/button.hxx>
      26             : #include <vcl/group.hxx>
      27             : #include <vcl/lstbox.hxx>
      28             : #include <vcl/edit.hxx>
      29             : #include <vcl/fixed.hxx>
      30             : #include <vcl/dialog.hxx>
      31             : 
      32             : #include <sfx2/objsh.hxx>
      33             : #include <vcl/field.hxx>
      34             : #include "expftext.hxx"
      35             : 
      36             : class ScViewData;
      37             : class ScDocument;
      38             : class ScDocShell;
      39             : 
      40             : namespace sfx2 { class DocumentInserter; }
      41             : namespace sfx2 { class FileDialogHelper; }
      42             : 
      43             : //------------------------------------------------------------------------
      44             : 
      45             : class ScInsertTableDlg : public ModalDialog
      46             : {
      47             : public:
      48             :             ScInsertTableDlg( Window* pParent, ScViewData& rViewData, SCTAB nTabCount, bool bFromFile );
      49             :             ~ScInsertTableDlg();
      50             : 
      51             :     virtual short   Execute();      // overloaded to set parent dialog
      52             : 
      53           0 :     sal_Bool            GetTablesFromFile() { return aBtnFromFile.IsChecked(); }
      54           0 :     sal_Bool            GetTablesAsLink()   { return aBtnLink.IsChecked(); }
      55             : 
      56             :     const String*   GetFirstTable( sal_uInt16* pN = NULL );
      57             :     const String*   GetNextTable( sal_uInt16* pN = NULL );
      58           0 :     ScDocShell*     GetDocShellTables() { return pDocShTables; }
      59           0 :     sal_Bool            IsTableBefore() { return aBtnBefore.IsChecked(); }
      60           0 :     SCTAB           GetTableCount() { return nTableCount;}
      61             : 
      62             : private:
      63             :     FixedLine               aFlPos;
      64             :     RadioButton             aBtnBefore;
      65             :     RadioButton             aBtnBehind;
      66             :     FixedLine               aFlTable;
      67             :     RadioButton             aBtnNew;
      68             :     RadioButton             aBtnFromFile;
      69             :     FixedText               aFtCount;
      70             :     NumericField            aNfCount;
      71             :     FixedText               aFtName;
      72             :     Edit                    aEdName;
      73             :     MultiListBox            aLbTables;
      74             :     ScExpandedFixedText     aFtPath;
      75             :     PushButton              aBtnBrowse;
      76             :     CheckBox                aBtnLink;
      77             :     OKButton                aBtnOk;
      78             :     CancelButton            aBtnCancel;
      79             :     HelpButton              aBtnHelp;
      80             : 
      81             :     Timer                   aBrowseTimer;
      82             :     ScViewData&             rViewData;
      83             :     ScDocument&             rDoc;
      84             :     ScDocShell*             pDocShTables;
      85             :     sfx2::DocumentInserter* pDocInserter;
      86             :     SfxObjectShellRef       aDocShTablesRef;
      87             : 
      88             :     bool                bMustClose;
      89             :     sal_uInt16              nSelTabIndex;   // for GetFirstTable() / GetNextTable()
      90             :     String              aStrCurSelTable;
      91             :     SCTAB               nTableCount;
      92             : 
      93             : #ifdef SC_INSTBDLG_CXX
      94             :     void    Init_Impl( bool bFromFile );
      95             :     void    SetNewTable_Impl();
      96             :     void    SetFromTo_Impl();
      97             :     void    FillTables_Impl( ScDocument* pSrcDoc );
      98             :     void    DoEnable_Impl();
      99             : 
     100             :     DECL_LINK(BrowseHdl_Impl, void *);
     101             :     DECL_LINK(ChoiceHdl_Impl, void *);
     102             :     DECL_LINK(SelectHdl_Impl, void *);
     103             :     DECL_LINK(CountHdl_Impl, void *);
     104             :     DECL_LINK(DoEnterHdl, void *);
     105             :     DECL_LINK(BrowseTimeoutHdl, void *);
     106             :     DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper* );
     107             : #endif
     108             : };
     109             : 
     110             : #endif // SC_INSTBDLG_HXX
     111             : 
     112             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10