views.h revision 92eb663500564c06258bc74260952f9fe89258d1
#ifndef SEEN_VIEWS_H
#define SEEN_VIEWS_H
/**
* @file
* Phoebe DOM Implementation.
*
* This is a C++ approximation of the W3C DOM model, which follows
* fairly closely the specifications in the various .idl files, copies of
* which are provided for reference. Most important is this one:
*
*/
/*
* Authors:
* Bob Jamison
*
* Copyright (C) 2005-2008 Bob Jamison
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* =========================================================================
* NOTES
*
* This is the Level 2 Views definition, which is very minimalist. It is
* described here:
*
* Note that SVG uses the DOM Core and Events Level 3, but Level 2 CSS and Views.
*
* The level 3 version is much larger:
* Be prepared in the future to adjust to this, if SVG ever switches .
*/
#include <cstdlib>
#include "dom.h"
{
{
{
{
//local aliases
//forward declarations
/*#########################################################################
## AbstractView
#########################################################################*/
/**
* A base interface that all views shall derive from.
*/
{
/**
* The source DocumentView of which this is an AbstractView.
*/
{
return documentView;
}
//##################
//# Non-API methods
//##################
/**
*
*/
{ documentView = NULL; }
/**
*
*/
{
}
/**
*
*/
{
return *this;
}
/**
*
*/
virtual ~AbstractView() {}
{
if (documentView != NULL)
{
}
}
};
/*#########################################################################
## DocumentView
#########################################################################*/
/**
* The DocumentView interface is implemented by Document objects in DOM
* implementations supporting DOM Views. It provides an attribute to retrieve the
* default view of a document.
*/
{
/**
* The default AbstractView for this Document, or null if none available.
*/
{
return defaultView;
}
//##################
//# Non-API methods
//##################
/**
*
*/
/**
*
*/
{
}
/**
*
*/
{
return *this;
}
/**
*
*/
virtual ~DocumentView() {}
{
if (defaultView != NULL)
{
}
}
};
} //namespace views
} //namespace dom
} //namespace w3c
} //namespace org
#endif // SEEN_VIEWS_H
/*#########################################################################
## E N D O F F I L E
#########################################################################*/