XSLStyleSheetQt.cpp [plain text]
#include "config.h"
#include "XSLStyleSheet.h"
#if ENABLE(XSLT)
#include "DOMWindow.h"
#include "Document.h"
#include "Node.h"
#include "NotImplemented.h"
#include "XSLImportRule.h"
#include "XSLTProcessor.h"
namespace WebCore {
XSLStyleSheet::XSLStyleSheet(Node* parentNode, const String& originalURL, const KURL& finalURL, bool embedded)
: m_ownerNode(parentNode)
, m_originalURL(originalURL)
, m_finalURL(finalURL)
, m_isDisabled(false)
, m_embedded(embedded)
{
}
XSLStyleSheet::~XSLStyleSheet()
{
for (unsigned i = 0; i < m_children.size(); ++i) {
ASSERT(m_children.at(i)->parentStyleSheet() == this);
m_children.at(i)->setParentStyleSheet(0);
}
}
bool XSLStyleSheet::isLoading() const
{
notImplemented();
return false;
}
void XSLStyleSheet::checkLoaded()
{
if (ownerNode())
ownerNode()->sheetLoaded();
}
void XSLStyleSheet::clearDocuments()
{
notImplemented();
}
CachedResourceLoader* XSLStyleSheet::cachedResourceLoader()
{
Document* document = ownerDocument();
if (!document)
return 0;
return document->cachedResourceLoader();
}
bool XSLStyleSheet::parseString(const String& string)
{
m_sheetString = string;
return !m_sheetString.isEmpty();
}
void XSLStyleSheet::loadChildSheets()
{
notImplemented();
}
void XSLStyleSheet::loadChildSheet(const String&)
{
notImplemented();
}
Document* XSLStyleSheet::ownerDocument()
{
Node* node = ownerNode();
return node ? node->document() : 0;
}
void XSLStyleSheet::setParentStyleSheet(XSLStyleSheet*)
{
notImplemented();
}
void XSLStyleSheet::markAsProcessed()
{
notImplemented();
}
}
#endif // ENABLE(XSLT)