2 * Copyright (C) 2007 Sergey Yanovich <ynvich@gmail.com>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef AA_TREEVIEWRULE_H
21 #define AA_TREEVIEWRULE_H
23 #define AA_TREEVIEWRULE_CID \
24 { 0x29e2cb02, 0x53e1, 0x48cd, { 0x87, 0x65, 0x32, 0xd7, 0xf3, 0xcb, 0xee, 0xfa } }
25 #define AA_TREEVIEWRULE_CONTRACT "@aasii.org/view/tree-rule;1"
27 #include "aaTreeView.h"
31 class aaTreeViewRule
: public aaTreeView
{
34 virtual ~aaTreeViewRule();
35 NS_DECL_ISUPPORTS_INHERITED
39 NS_IMETHOD
Update(nsISupports
*aParam
);
42 NS_IMETHOD
convertSortColumnToString(nsITreeColumn
* col
, nsACString
& name
);
44 virtual nsresult
doGetCellText(PRInt32 row
, nsITreeColumn
*col
, nsAString
& _retval
);
46 nsresult
doSortRules(nsIArray
* pInput
, nsITreeColumn
* pColumn
, const nsAString
& param
, nsIArray
** _retval
);
47 nsresult
doFilterRules(nsIArray
* pInput
, nsITreeColumn
* pColumn
, const nsAString
& param
, nsIArray
** _retval
);
50 #endif //AA_TREEVIEWRULE_H