1 /* This file is part of Shapes.
3 * Shapes is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
8 * Shapes is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with Shapes. If not, see <http://www.gnu.org/licenses/>.
16 * Copyright 2008 Henrik Tidefelt
19 #include "pagecontentstates.h"
21 using namespace Shapes
;
24 Kernel::PageContentStates::PageContentStates( RefCountPtr
< SimplePDF::PDF_Resources
> & resources
, bool setDefaults
)
25 : graphics_( true ), text_( true ), resources_( resources
)
29 throw Exceptions::InternalError( strrefdup( "setDefaults must be true in PageContentStates::PageContentStates." ) );
32 text_
.font_
= NullPtr
< const Lang::Font
>( );
33 text_
.size_
= Concrete::Length( std::numeric_limits
< double >::signaling_NaN( ) );
34 text_
.setLeading( Concrete::Length( 0 ) );
37 // Use default constructors for the members.
38 Kernel::PageContentStates::PageContentStates( RefCountPtr
< SimplePDF::PDF_Resources
> & resources
)
39 : resources_( resources
)
42 Kernel::PageContentStates::~PageContentStates( )