1
//////////////////////////////////////////////////////////////////////////
3
// pgAdmin III - PostgreSQL Tools
4
// RCS-ID: $Id: pgTextSearchParser.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
// pgTextSearchParser.h PostgreSQL Text Search Parser
10
//////////////////////////////////////////////////////////////////////////
19
class pgTextSearchParserFactory : public pgSchemaObjFactory
22
pgTextSearchParserFactory();
23
virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
24
virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
26
extern pgTextSearchParserFactory textSearchParserFactory;
28
class pgTextSearchParser : public pgSchemaObject
31
pgTextSearchParser(pgSchema *newSchema, const wxString& newName = wxT(""));
32
~pgTextSearchParser();
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 GetStart() const { return start; }
39
void iSetStart(const wxString& s) { start=s; }
40
wxString GetGettoken() const { return gettoken; }
41
void iSetGettoken(const wxString& s) { gettoken=s; }
42
wxString GetEnd() const { return end; }
43
void iSetEnd(const wxString& s) { end=s; }
44
wxString GetLextypes() const { return lextypes; }
45
void iSetLextypes(const wxString& s) { lextypes=s; }
46
wxString GetHeadline() const { return headline; }
47
void iSetHeadline(const wxString& s) { headline=s; }
49
bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
50
wxString GetSql(ctlTree *browser);
51
pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
53
bool HasStats() { return false; }
54
bool HasDepends() { return true; }
55
bool HasReferences() { return true; }
58
wxString start, gettoken, end, lextypes, headline;