Lines 40-47
Link Here
|
40 |
#include <editeng/fontitem.hxx> |
40 |
#include <editeng/fontitem.hxx> |
41 |
#include <svx/pageitem.hxx> |
41 |
#include <svx/pageitem.hxx> |
42 |
#include <editeng/postitem.hxx> |
42 |
#include <editeng/postitem.hxx> |
|
|
43 |
#include <editeng/sizeitem.hxx> |
43 |
#include <editeng/udlnitem.hxx> |
44 |
#include <editeng/udlnitem.hxx> |
44 |
#include <editeng/wghtitem.hxx> |
45 |
#include <editeng/wghtitem.hxx> |
|
|
46 |
#include <editeng/paperinf.hxx> |
45 |
#include <svl/itemset.hxx> |
47 |
#include <svl/itemset.hxx> |
46 |
#include <svl/zforlist.hxx> |
48 |
#include <svl/zforlist.hxx> |
47 |
#include <unotools/charclass.hxx> |
49 |
#include <unotools/charclass.hxx> |
Lines 496-501
Link Here
|
496 |
pSet->Put( *pFooterItem ); |
498 |
pSet->Put( *pFooterItem ); |
497 |
DELETEZ( pTxtObj ); |
499 |
DELETEZ( pTxtObj ); |
498 |
|
500 |
|
|
|
501 |
// Landscape |
502 |
pSheet = (ScStyleSheet*) &Make( SCSTR( STR_STYLENAME_LANDSCAPE ), |
503 |
SFX_STYLE_FAMILY_PAGE, |
504 |
SCSTYLEBIT_STANDARD ); |
505 |
pSheet->SetParent( aStrStandard ); |
506 |
pSet = &pSheet->GetItemSet(); |
507 |
pSheet->SetHelpId( aHelpFile, HID_SC_SHEET_PAGE_LANDSCAPE ); |
508 |
|
509 |
SvxPageItem aPageItem( (const SvxPageItem&)pSet->Get( ATTR_PAGE ) ); |
510 |
aPageItem.SetLandscape( sal_True ); |
511 |
pSet->Put( aPageItem ); |
512 |
Size aSize( SvxPaperInfo::GetDefaultPaperSize() ); |
513 |
LandscapeSwap( aSize ); |
514 |
pSet->Put( SvxSizeItem( ATTR_PAGE_SIZE, aSize ) ); |
515 |
|
499 |
//---------------------------------------------------- |
516 |
//---------------------------------------------------- |
500 |
DELETEZ( pEmptyTxtObj ); |
517 |
DELETEZ( pEmptyTxtObj ); |
501 |
DELETEZ( pHeaderItem ); |
518 |
DELETEZ( pHeaderItem ); |