if (aTruthValue && (aProperty == kRDF_type)) { rv = GetSynthesizedType(aSource, aTarget); return rv; } else if (aTruthValue && isBookmarkCommand(aSource) && (aProperty == kNC_Name)) { nsAutoString    name; if (aSource == kNC_BookmarkCommand_NewBookmark) getLocaleString("NewBookmark", name); else if (aSource == kNC_BookmarkCommand_NewFolder) getLocaleString("NewFolder", name); else if (aSource == kNC_BookmarkCommand_NewSeparator) getLocaleString("NewSeparator", name); else if (aSource == kNC_BookmarkCommand_DeleteBookmark) getLocaleString("DeleteBookmark", name); else if (aSource == kNC_BookmarkCommand_DeleteBookmarkFolder) getLocaleString("DeleteFolder", name); else if (aSource == kNC_BookmarkCommand_DeleteBookmarkSeparator) getLocaleString("DeleteSeparator", name); else if (aSource == kNC_BookmarkCommand_SetNewBookmarkFolder) getLocaleString("SetNewBookmarkFolder", name); else if (aSource == kNC_BookmarkCommand_SetPersonalToolbarFolder) getLocaleString("SetPersonalToolbarFolder", name); else if (aSource == kNC_BookmarkCommand_SetNewSearchFolder) getLocaleString("SetNewSearchFolder", name); else if (aSource == kNC_BookmarkCommand_Import) getLocaleString("Import", name); else if (aSource == kNC_BookmarkCommand_Export) getLocaleString("Export", name);
nsAutoString	ncURI(uri); if (ncURI.Find("NC:", PR_TRUE) == 0) { return(NS_RDF_NO_VALUE); }
nsBookmarksService::GetTarget(nsIRDFResource* aSource,                              nsIRDFResource* aProperty,                              PRBool aTruthValue,                              nsIRDFNode** aTarget){    *aTarget = nsnull;    nsresult    rv;    if (aTruthValue && (aProperty == kRDF_type))    {        rv = GetSynthesizedType(aSource, aTarget);        return rv;    }    else if (aTruthValue && isBookmarkCommand(aSource) && (aProperty == kNC_Name))    {        nsAutoString    name;        if (aSource == kNC_BookmarkCommand_NewBookmark)            getLocaleString("NewBookmark", name);        else if (aSource == kNC_BookmarkCommand_NewFolder)            getLocaleString("NewFolder", name);        else if (aSource == kNC_BookmarkCommand_NewSeparator)            getLocaleString("NewSeparator", name);        else if (aSource == kNC_BookmarkCommand_DeleteBookmark)            getLocaleString("DeleteBookmark", name);        else if (aSource == kNC_BookmarkCommand_DeleteBookmarkFolder)            getLocaleString("DeleteFolder", name);        else if (aSource == kNC_BookmarkCommand_DeleteBookmarkSeparator)            getLocaleString("DeleteSeparator", name);        else if (aSource == kNC_BookmarkCommand_SetNewBookmarkFolder)            getLocaleString("SetNewBookmarkFolder", name);        else if (aSource == kNC_BookmarkCommand_SetPersonalToolbarFolder)            getLocaleString("SetPersonalToolbarFolder", name);        else if (aSource == kNC_BookmarkCommand_SetNewSearchFolder)            getLocaleString("SetNewSearchFolder", name);        else if (aSource == kNC_BookmarkCommand_Import)            getLocaleString("Import", name);        else if (aSource == kNC_BookmarkCommand_Export)            getLocaleString("Export", name);        if (!name.IsEmpty())        {            *aTarget = nsnull;            nsCOMPtr<nsIRDFLiteral> literal;            if (NS_FAILED(rv = gRDF->GetLiteral(name.get(), getter_AddRefs(literal))))                return rv;            *aTarget = literal;            NS_IF_ADDREF(*aTarget);            return rv;        }    }    else if (aProperty == kNC_Icon)    {        rv = ProcessCachedBookmarkIcon(aSource, nsnull, aTarget);        return rv;    }    rv = mInner->GetTarget(aSource, aProperty, aTruthValue, aTarget);    return rv;}