31 for(
const auto& pPage :
maPages )
68 FragmentContainer_t::iterator it(
77 pFragment->free(pFragment);
94 auto aCurrMax( aEnd );
95 sal_uInt32 nCurrMaxArea = 0;
96 for(
auto aCurr =
maFragments.begin(); aCurr != aEnd; ++aCurr )
98 if( *aCurr && !( ( *aCurr )->isNaked() ) )
100 const ::basegfx::B2ISize& rSize( ( *aCurr )->getSize() );
101 sal_uInt32 nArea( rSize.getWidth() * rSize.getHeight() );
103 if( nCurrMaxArea < nArea )
106 nCurrMaxArea = nArea;
112 if( aCurrMax != aEnd )
113 ( *aCurrMax )->free( *aCurrMax );
125 for(
const auto& pPage :
maPages )
130 if( pPage->nakedFragment( pFragment ) )
133 pFragment->select(
true);
142 for(
const auto& rPagePtr :
maPages )
143 rPagePtr->validate();
void nakedFragment(const FragmentSharedPtr &pFragment)
bool relocate(const FragmentSharedPtr &pFragment)
FragmentSharedPtr allocateSpace(const ::basegfx::B2ISize &rSize)
FragmentContainer_t maFragments
::basegfx::B2ISize getPageSize() const
std::vector< PageSharedPtr > maPages
std::shared_ptr< canvas::IRenderModule > mpRenderModule
void free(const FragmentSharedPtr &pFragment)
std::shared_ptr< PageFragment > FragmentSharedPtr
std::shared_ptr< Page > PageSharedPtr