LibreOffice Module canvas (master)  1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
canvas::PageManager Class Reference

#include <pagemanager.hxx>

Public Member Functions

 PageManager (const std::shared_ptr< canvas::IRenderModule > &rRenderModule)
 
::basegfx::B2ISize getPageSize () const
 
const std::shared_ptr< canvas::IRenderModule > & getRenderModule () const
 
FragmentSharedPtr allocateSpace (const ::basegfx::B2ISize &rSize)
 
void free (const FragmentSharedPtr &pFragment)
 
void nakedFragment (const FragmentSharedPtr &pFragment)
 
void validatePages ()
 

Private Types

typedef std::vector< FragmentSharedPtrFragmentContainer_t
 

Private Member Functions

bool relocate (const FragmentSharedPtr &pFragment)
 

Private Attributes

std::shared_ptr< canvas::IRenderModulempRenderModule
 
FragmentContainer_t maFragments
 
std::vector< PageSharedPtrmaPages
 

Detailed Description

Definition at line 32 of file pagemanager.hxx.

Member Typedef Documentation

Definition at line 60 of file pagemanager.hxx.

Constructor & Destructor Documentation

canvas::PageManager::PageManager ( const std::shared_ptr< canvas::IRenderModule > &  rRenderModule)
inlineexplicit

Definition at line 35 of file pagemanager.hxx.

Member Function Documentation

FragmentSharedPtr canvas::PageManager::allocateSpace ( const ::basegfx::B2ISize rSize)

Definition at line 26 of file pagemanager.cxx.

References maFragments, maPages, and mpRenderModule.

void canvas::PageManager::free ( const FragmentSharedPtr pFragment)

Definition at line 64 of file pagemanager.cxx.

References maFragments.

basegfx::B2ISize canvas::PageManager::getPageSize ( ) const

Definition at line 146 of file pagemanager.cxx.

References mpRenderModule.

const std::shared_ptr<canvas::IRenderModule>& canvas::PageManager::getRenderModule ( ) const
inline

Definition at line 44 of file pagemanager.hxx.

References mpRenderModule.

void canvas::PageManager::nakedFragment ( const FragmentSharedPtr pFragment)

Definition at line 80 of file pagemanager.cxx.

References maFragments, maPages, and relocate().

bool canvas::PageManager::relocate ( const FragmentSharedPtr pFragment)
private

Definition at line 119 of file pagemanager.cxx.

References maPages.

Referenced by nakedFragment().

void canvas::PageManager::validatePages ( )

Definition at line 140 of file pagemanager.cxx.

References maPages.

Member Data Documentation

FragmentContainer_t canvas::PageManager::maFragments
private

Definition at line 61 of file pagemanager.hxx.

Referenced by allocateSpace(), free(), and nakedFragment().

std::vector<PageSharedPtr> canvas::PageManager::maPages
private

Definition at line 65 of file pagemanager.hxx.

Referenced by allocateSpace(), nakedFragment(), relocate(), and validatePages().

std::shared_ptr<canvas::IRenderModule> canvas::PageManager::mpRenderModule
private

Definition at line 56 of file pagemanager.hxx.

Referenced by allocateSpace(), getPageSize(), and getRenderModule().


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