view: update quote tree for implement convert method
[abstract.git] / view / aaViewModule.cpp
blobbb58c569235b0c74c3c395b7bf3939db74bc82eb
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent tw=79 ft=cpp: */
3 /*
4 * Copyright (C) 2007,2008 Sergey Yanovich <ynvich@gmail.com>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #include "xpcom-config.h"
24 #include "nsCOMPtr.h"
25 #include "nsIGenericFactory.h"
26 #include "nsISHistory.h"
27 #include "nsMemory.h"
28 #include "nsIClassInfoImpl.h"
30 /* Unfrozen API */
31 #include "nsISHistoryInternal.h"
32 #include "nsIWebNavigation.h"
33 #include "nsISHEntry.h"
34 #include "nsISHContainer.h"
36 /* Project includes */
37 #include "aaParamFactory.h"
38 #include "aaSessionHistory.h"
39 #include "aaTreeView.h"
40 #include "aaTreeViewEntity.h"
41 #include "aaTreeViewResource.h"
42 #include "aaTreeViewFlow.h"
43 #include "aaTreeViewLedger.h"
44 #include "aaTreeViewBalance.h"
45 #include "aaTreeViewTranscript.h"
46 #include "aaTreeViewQuote.h"
47 #include "aaTreeViewRule.h"
48 #include "aaPageView.h"
50 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(aaSessionHistory, Init)
51 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaTreeViewEntity)
52 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaTreeViewResource)
53 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaTreeViewFlow)
54 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaTreeViewLedger)
55 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaTreeViewBalance)
56 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaTreeViewTranscript)
57 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaTreeViewQuote)
58 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaTreeViewRule)
59 NS_GENERIC_FACTORY_CONSTRUCTOR_PARAM(aaPageView)
61 NS_DECL_CLASSINFO(aaSessionHistory)
63 static const nsModuleComponentInfo kComponents[] =
66 "SessionHistory",
67 AA_SESSIONHISTORY_CID,
68 AA_SESSIONHISTORY_CONTRACT,
69 aaSessionHistoryConstructor
70 ,NULL, NULL, NULL,
71 NS_CI_INTERFACE_GETTER_NAME(aaSessionHistory),
72 NULL,
73 &NS_CLASSINFO_NAME(aaSessionHistory)
76 "TreeViewEntity",
77 AA_TREEVIEWENTITY_CID,
78 AA_TREEVIEWENTITY_CONTRACT,
79 aaTreeViewEntityConstructor
82 "TreeViewResource",
83 AA_TREEVIEWRESOURCE_CID,
84 AA_TREEVIEWRESOURCE_CONTRACT,
85 aaTreeViewResourceConstructor
88 "TreeViewFlow",
89 AA_TREEVIEWFLOW_CID,
90 AA_TREEVIEWFLOW_CONTRACT,
91 aaTreeViewFlowConstructor
94 "TreeViewLedger",
95 AA_TREEVIEWLEDGER_CID,
96 AA_TREEVIEWLEDGER_CONTRACT,
97 aaTreeViewLedgerConstructor
100 "TreeViewBalance",
101 AA_TREEVIEWBALANCE_CID,
102 AA_TREEVIEWBALANCE_CONTRACT,
103 aaTreeViewBalanceConstructor
106 "TreeViewTranscript",
107 AA_TREEVIEWTRANSCRIPT_CID,
108 AA_TREEVIEWTRANSCRIPT_CONTRACT,
109 aaTreeViewTranscriptConstructor
112 "TreeViewQuote",
113 AA_TREEVIEWQUOTE_CID,
114 AA_TREEVIEWQUOTE_CONTRACT,
115 aaTreeViewQuoteConstructor
118 "TreeViewRule",
119 AA_TREEVIEWRULE_CID,
120 AA_TREEVIEWRULE_CONTRACT,
121 aaTreeViewRuleConstructor
124 "Page View",
125 AA_PAGEVIEW_CID,
126 AA_PAGEVIEW_CONTRACT,
127 aaPageViewConstructor
130 NS_IMPL_NSGETMODULE(aaview, kComponents)