Version: 0.6.0
gxssfactory.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxSpreadsheetFactory class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2014 Dmitry Baryshnikov
7 * Copyright (C) 2014 NextGIS
8 *
9 * This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  ****************************************************************************/
22 #pragma once
23 
24 #include "wxgis/catalog/gxobjectfactory.h"
25 #include "wxgis/datasource/datasource.h"
26 
34 class WXDLLIMPEXP_GIS_CLT wxGxSpreadsheetFactory :
35  public wxGxObjectFactory
36 {
37  DECLARE_DYNAMIC_CLASS(wxGxSpreadsheetFactory)
38 public:
40  virtual ~wxGxSpreadsheetFactory(void);
41  //wxGxObjectFactory
42  virtual bool GetChildren(wxGxObject* pParent, char** &pFileNames, wxArrayLong & pChildrenIds);
43  virtual wxString GetName(void) const {return wxString(_("Spreadsheet files"));};
44  virtual wxGxObject* GetGxObject(wxGxObject* pParent, const wxString &soName, const CPLString &szPath, wxGISEnumTableType type, bool bCheckNames);
45 protected:
46  bool m_bHasXLSDriver;
47  bool m_bHasXLSXDriver;
48  bool m_bHasODSDriver;
49 };
Definition: gxssfactory.h:34
A base class for GxObject factory.
Definition: gxobjectfactory.h:32
Definition: gxobject.h:37