1
//////////////////////////////////////////////////////////////////////////
3
// pgAdmin III - PostgreSQL Tools
4
// RCS-ID: $Id: pgTextSearchConfiguration.h 7758 2009-03-26 20:49:59Z dpage $
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
6
// This software is released under the BSD Licence
8
// pgTextSearchConfiguration.h PostgreSQL Text Search Configuration
10
//////////////////////////////////////////////////////////////////////////
12
#ifndef PG_TSCONFIGURATION_H
13
#define PG_TSCONFIGURATION_H
19
class pgTextSearchConfigurationFactory : public pgSchemaObjFactory
22
pgTextSearchConfigurationFactory();
23
virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
24
virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
26
extern pgTextSearchConfigurationFactory textSearchConfigurationFactory;
28
class pgTextSearchConfiguration : public pgSchemaObject
31
pgTextSearchConfiguration(pgSchema *newSchema, const wxString& newName = wxT(""));
32
~pgTextSearchConfiguration();
34
void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
35
virtual wxString GetQuotedIdentifier() const { return GetName(); }
36
bool CanDropCascaded() { return GetSchema()->GetMetaType() != PGM_CATALOG; }
38
wxString GetParser() const { return parser; }
39
void iSetParser(const wxString& s) { parser=s; }
40
wxString GetCopy() const { return copy; }
41
void iSetCopy(const wxString& s) { copy=s; }
42
OID GetParserOid() const { return parserOid; }
43
void iSetParserOid(const OID o) { parserOid=o; }
44
wxString GetParserOidStr() const {return NumToStr(GetParserOid()) + wxT("::oid"); }
45
wxArrayString& GetTokens() { return tokens; }
47
bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
48
wxString GetSql(ctlTree *browser);
49
pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
51
bool HasStats() { return false; }
52
bool HasDepends() { return true; }
53
bool HasReferences() { return true; }
56
wxString parser, copy;