ReactOS 0.4.15-dev-7842-g558ab78
XMLStorage::StyleSheet Struct Reference

XML Stylesheet entry. More...

#include <xmlstorage.h>

Public Member Functions

 StyleSheet ()
 
 StyleSheet (const std::string &href, const std::string &type="text/xsl", bool alternate=false)
 
bool empty () const
 
void print (std::ostream &out) const
 

Public Attributes

std::string _href
 
std::string _type
 
std::string _title
 
std::string _media
 
std::string _charset
 
bool _alternate
 

Detailed Description

XML Stylesheet entry.

Definition at line 725 of file xmlstorage.h.

Constructor & Destructor Documentation

◆ StyleSheet() [1/2]

XMLStorage::StyleSheet::StyleSheet ( )
inline

Definition at line 734 of file xmlstorage.h.

734: _alternate(false) {}

◆ StyleSheet() [2/2]

XMLStorage::StyleSheet::StyleSheet ( const std::string &  href,
const std::string &  type = "text/xsl",
bool  alternate = false 
)
inline

Definition at line 736 of file xmlstorage.h.

737 : _href(href),
738 _type(type),
739 _alternate(alternate)
740 {
741 }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545

Member Function Documentation

◆ empty()

bool XMLStorage::StyleSheet::empty ( ) const
inline

Definition at line 743 of file xmlstorage.h.

743{return _href.empty();}

◆ print()

void XMLStorage::StyleSheet::print ( std::ostream &  out) const

Definition at line 786 of file xmlstorage.cpp.

787{
788 out << "<?xml-stylesheet"
789 " href=\"" << _href << "\""
790 " type=\"" << _type << "\"";
791
792 if (!_title.empty())
793 out << " title=\"" << _title << "\"";
794
795 if (!_media.empty())
796 out << " media=\"" << _media << "\"";
797
798 if (!_charset.empty())
799 out << " charset=\"" << _charset << "\"";
800
801 if (_alternate)
802 out << " alternate=\"yes\"";
803
804 out << "?>";
805}
static FILE * out
Definition: regtests2xml.c:44
std::string _charset
Definition: xmlstorage.h:731

Member Data Documentation

◆ _alternate

bool XMLStorage::StyleSheet::_alternate

Definition at line 732 of file xmlstorage.h.

Referenced by print().

◆ _charset

std::string XMLStorage::StyleSheet::_charset

Definition at line 731 of file xmlstorage.h.

Referenced by XMLStorage::XMLReaderBase::parse(), and print().

◆ _href

std::string XMLStorage::StyleSheet::_href

Definition at line 727 of file xmlstorage.h.

Referenced by empty(), and print().

◆ _media

std::string XMLStorage::StyleSheet::_media

Definition at line 730 of file xmlstorage.h.

Referenced by XMLStorage::XMLReaderBase::parse(), and print().

◆ _title

std::string XMLStorage::StyleSheet::_title

Definition at line 729 of file xmlstorage.h.

Referenced by XMLStorage::XMLReaderBase::parse(), and print().

◆ _type

std::string XMLStorage::StyleSheet::_type

Definition at line 728 of file xmlstorage.h.

Referenced by print().


The documentation for this struct was generated from the following files: