• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdehtml
 

tdehtml

  • DOM
  • MediaList
Public Member Functions | Protected Attributes | List of all members
DOM::MediaList Class Reference

#include <css_stylesheet.h>

Public Member Functions

 MediaList (const MediaList &other)
 
 MediaList (MediaListImpl *impl)
 
MediaList & operator= (const MediaList &other)
 
DOM::DOMString mediaText () const
 
void setMediaText (const DOM::DOMString &value)
 
unsigned long length () const
 
DOM::DOMString item (unsigned long index) const
 
void deleteMedium (const DOM::DOMString &oldMedium)
 
void appendMedium (const DOM::DOMString &newMedium)
 
MediaListImpl * handle () const
 
bool isNull () const
 

Protected Attributes

MediaListImpl * impl
 

Detailed Description

The MediaList interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented.

All media are lowercase strings.

Definition at line 363 of file css_stylesheet.h.

Constructor & Destructor Documentation

◆ MediaList() [1/3]

MediaList::MediaList ( )

Definition at line 260 of file css_stylesheet.cpp.

◆ MediaList() [2/3]

MediaList::MediaList ( const MediaList &  other)

Definition at line 265 of file css_stylesheet.cpp.

◆ MediaList() [3/3]

MediaList::MediaList ( MediaListImpl *  impl)

Definition at line 271 of file css_stylesheet.cpp.

◆ ~MediaList()

MediaList::~MediaList ( )

Definition at line 287 of file css_stylesheet.cpp.

Member Function Documentation

◆ appendMedium()

void MediaList::appendMedium ( const DOM::DOMString &  newMedium)

Adds the medium newMedium to the end of the list.

If the newMedium is already used, it is first removed.

Parameters
newMediumThe new medium to add.
Exceptions
DOMExceptionINVALID_CHARACTER_ERR: If the medium contains characters that are invalid in the underlying style language.

NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly.

Definition at line 322 of file css_stylesheet.cpp.

◆ deleteMedium()

void MediaList::deleteMedium ( const DOM::DOMString &  oldMedium)

Deletes the medium indicated by oldMedium from the list.

Parameters
oldMediumThe medium to delete in the media list.
Exceptions
DOMExceptionNO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly.

NOT_FOUND_ERR: Raised if oldMedium is not in the list.

Definition at line 316 of file css_stylesheet.cpp.

◆ handle()

MediaListImpl * MediaList::handle ( ) const

Definition at line 328 of file css_stylesheet.cpp.

◆ isNull()

bool MediaList::isNull ( ) const

Definition at line 333 of file css_stylesheet.cpp.

◆ item()

DOM::DOMString MediaList::item ( unsigned long  index) const

Returns the indexth in the list.

If index is greater than or equal to the number of media in the list, this returns null.

Parameters
indexIndex into the collection.
Returns
The medium at the indexth position in the MediaList, or null if that is not a valid index.

Definition at line 310 of file css_stylesheet.cpp.

◆ length()

unsigned long MediaList::length ( ) const

The number of media in the list.

The range of valid media is 0 to length-1 inclusive.

Definition at line 304 of file css_stylesheet.cpp.

◆ mediaText()

DOM::DOMString MediaList::mediaText ( ) const

The parsable textual representation of the media list.

This is a comma-separated list of media.

Exceptions
DOMExceptionSYNTAX_ERR: Raised if the specified string value has a syntax error and is unparsable.

NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is readonly.

Definition at line 292 of file css_stylesheet.cpp.

◆ operator=()

MediaList & MediaList::operator= ( const MediaList &  other)

Definition at line 277 of file css_stylesheet.cpp.

◆ setMediaText()

void MediaList::setMediaText ( const DOM::DOMString &  value)

see mediaText

Definition at line 298 of file css_stylesheet.cpp.

Member Data Documentation

◆ impl

MediaListImpl* DOM::MediaList::impl
protected

Definition at line 442 of file css_stylesheet.h.


The documentation for this class was generated from the following files:
  • css_stylesheet.h
  • css_stylesheet.cpp

tdehtml

Skip menu "tdehtml"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdehtml

Skip menu "tdehtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdehtml by doxygen 1.9.4
This website is maintained by Timothy Pearson.