LibreOffice Module sw (master)  1
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
SwPageDescs Class Referencefinal

#include <pagedesc.hxx>

Public Types

typedef ByPos::const_iterator const_iterator
 
typedef SwPageDescsBase::size_type size_type
 
typedef SwPageDescsBase::value_type value_type
 

Public Member Functions

 SwPageDescs ()
 
 ~SwPageDescs ()
 
void clear ()
 
bool empty () const
 
size_t size () const
 
std::pair< const_iterator, bool > push_back (const value_type &x)
 
void erase (const value_type &x)
 
void erase (size_type index)
 
void erase (const_iterator const &position)
 
const_iterator find (const OUString &name) const
 
const value_typeoperator[] (size_t index_) const
 
const value_typefront () const
 
const value_typeback () const
 
const_iterator begin () const
 
const_iterator end () const
 
bool contains (const value_type &x) const
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Types

typedef SwPageDescsBase::nth_index< 0 >::type ByPos
 
typedef SwPageDescsBase::nth_index< 1 >::type ByName
 
typedef ByPos::iterator iterator
 

Private Member Functions

iterator find_ (const OUString &name) const
 

Private Attributes

SwPageDescsBase m_Array
 
ByPosm_PosIndex
 
ByNamem_NameIndex
 

Friends

bool SwPageDesc::SetName (const OUString &rNewName)
 

Detailed Description

Definition at line 392 of file pagedesc.hxx.

Member Typedef Documentation

typedef SwPageDescsBase::nth_index<1>::type SwPageDescs::ByName
private

Definition at line 398 of file pagedesc.hxx.

typedef SwPageDescsBase::nth_index<0>::type SwPageDescs::ByPos
private

Definition at line 397 of file pagedesc.hxx.

typedef ByPos::const_iterator SwPageDescs::const_iterator

Definition at line 408 of file pagedesc.hxx.

typedef ByPos::iterator SwPageDescs::iterator
private

Definition at line 399 of file pagedesc.hxx.

typedef SwPageDescsBase::size_type SwPageDescs::size_type

Definition at line 409 of file pagedesc.hxx.

typedef SwPageDescsBase::value_type SwPageDescs::value_type

Definition at line 410 of file pagedesc.hxx.

Constructor & Destructor Documentation

SwPageDescs::SwPageDescs ( )

Definition at line 565 of file pagedesc.cxx.

SwPageDescs::~SwPageDescs ( )

Definition at line 571 of file pagedesc.cxx.

References begin(), and end().

Member Function Documentation

const value_type& SwPageDescs::back ( ) const
inline

Definition at line 431 of file pagedesc.hxx.

const_iterator SwPageDescs::begin ( ) const
inline

Definition at line 432 of file pagedesc.hxx.

Referenced by erase(), lcl_FindPageDesc(), and ~SwPageDescs().

void SwPageDescs::clear ( )
inline

Definition at line 417 of file pagedesc.hxx.

bool SwPageDescs::contains ( const value_type x) const
inline

Definition at line 435 of file pagedesc.hxx.

void SwPageDescs::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 621 of file pagedesc.cxx.

References m_PosIndex.

Referenced by SwDoc::dumpAsXml().

bool SwPageDescs::empty ( ) const
inline

Definition at line 418 of file pagedesc.hxx.

Referenced by SwDoc::SwDoc().

const_iterator SwPageDescs::end ( ) const
inline

Definition at line 433 of file pagedesc.hxx.

Referenced by erase(), lcl_FindPageDesc(), SwPageDesc::SetName(), and ~SwPageDescs().

void SwPageDescs::erase ( const value_type x)

Definition at line 594 of file pagedesc.cxx.

References end(), find_(), m_PosIndex, and SAL_WARN.

Referenced by SwDoc::ClearDoc(), and erase().

void SwPageDescs::erase ( size_type  index)

Definition at line 616 of file pagedesc.cxx.

References begin(), and erase().

void SwPageDescs::erase ( const_iterator const &  position)

Definition at line 607 of file pagedesc.cxx.

References m_PosIndex.

const_iterator SwPageDescs::find ( const OUString &  name) const
inline

Definition at line 426 of file pagedesc.hxx.

References find_().

Referenced by lcl_FindPageDesc().

SwPageDescs::iterator SwPageDescs::find_ ( const OUString &  name) const
private

Definition at line 577 of file pagedesc.cxx.

References m_Array, and m_NameIndex.

Referenced by erase(), find(), and SwPageDesc::SetName().

const value_type& SwPageDescs::front ( ) const
inline

Definition at line 430 of file pagedesc.hxx.

const value_type& SwPageDescs::operator[] ( size_t  index_) const
inline

Definition at line 428 of file pagedesc.hxx.

std::pair< SwPageDescs::const_iterator, bool > SwPageDescs::push_back ( const value_type x)

Definition at line 583 of file pagedesc.cxx.

References m_PosIndex.

size_t SwPageDescs::size ( ) const
inline

Definition at line 419 of file pagedesc.hxx.

Referenced by SwDoc::GetPageDescCnt(), and SwDoc::ReplaceStyles().

Friends And Related Function Documentation

bool SwPageDesc::SetName ( const OUString &  rNewName)
friend

Member Data Documentation

SwPageDescsBase SwPageDescs::m_Array
private

Definition at line 403 of file pagedesc.hxx.

Referenced by find_().

ByName& SwPageDescs::m_NameIndex
private

Definition at line 405 of file pagedesc.hxx.

Referenced by find_().

ByPos& SwPageDescs::m_PosIndex
private

Definition at line 404 of file pagedesc.hxx.

Referenced by dumpAsXml(), erase(), push_back(), and SwPageDesc::SetName().


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