+
+ const std::set<std::string>& aPTypes = theCreator->pageTypes();
+ for (anIt = aPTypes.begin(), aLast = aPTypes.end(); anIt != aLast; anIt++) {
+ std::string aKey = *anIt;
+ if (!myPageToCreator.contains(aKey))
+ myPageToCreator[aKey] = theCreator;
+ else {
+ Events_Error::send("The" + aKey + " page XML definition has been already \
+used by another widget creator");
+ }
+ }
+}
+
+bool ModuleBase_WidgetCreatorFactory::hasPageWidget(const std::string& theType)
+{
+ return myPageToCreator.contains(theType);