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 (std::shared_ptr< canvas::IRenderModule > xRenderModule)
 
::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 31 of file pagemanager.hxx.

Member Typedef Documentation

◆ FragmentContainer_t

Definition at line 59 of file pagemanager.hxx.

Constructor & Destructor Documentation

◆ PageManager()

canvas::PageManager::PageManager ( std::shared_ptr< canvas::IRenderModule xRenderModule)
inlineexplicit

Definition at line 34 of file pagemanager.hxx.

Member Function Documentation

◆ allocateSpace()

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

Definition at line 26 of file pagemanager.cxx.

References maFragments, maPages, and mpRenderModule.

◆ free()

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

Definition at line 64 of file pagemanager.cxx.

References maFragments.

◆ getPageSize()

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

Definition at line 146 of file pagemanager.cxx.

References mpRenderModule.

◆ getRenderModule()

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

Definition at line 43 of file pagemanager.hxx.

References mpRenderModule.

◆ nakedFragment()

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

Definition at line 80 of file pagemanager.cxx.

References maFragments, maPages, and relocate().

◆ relocate()

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

Definition at line 119 of file pagemanager.cxx.

References maPages.

Referenced by nakedFragment().

◆ validatePages()

void canvas::PageManager::validatePages ( )

Definition at line 140 of file pagemanager.cxx.

References maPages.

Member Data Documentation

◆ maFragments

FragmentContainer_t canvas::PageManager::maFragments
private

Definition at line 60 of file pagemanager.hxx.

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

◆ maPages

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

Definition at line 64 of file pagemanager.hxx.

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

◆ mpRenderModule

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

Definition at line 55 of file pagemanager.hxx.

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


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