summaryrefslogtreecommitdiff
path: root/cui/source/tabpages
diff options
context:
space:
mode:
authorRob Snelders <programming@ertai.nl>2012-07-05 20:45:15 +0200
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-07-06 14:04:01 +0400
commitb8c5f6577911ebb15ad7eb7f60ad5bb9d8d37f0b (patch)
treed18a731c30a34975fc415a7d51c303538d142058 /cui/source/tabpages
parent5eb74b1fcad83c605cc00e377460e0ae313d7277 (diff)
fdo#42986 - UI wide screen format (16:10): Add Page size
Change-Id: Ie769c9a65e85f91395b3495fadb6f5e688cbe9af
Diffstat (limited to 'cui/source/tabpages')
-rw-r--r--cui/source/tabpages/page.cxx4
-rw-r--r--cui/source/tabpages/page.h1
-rw-r--r--cui/source/tabpages/page.src1
3 files changed, 4 insertions, 2 deletions
diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx
index 0c5ea75b806f..ecdc05f13c6d 100644
--- a/cui/source/tabpages/page.cxx
+++ b/cui/source/tabpages/page.cxx
@@ -997,7 +997,7 @@ IMPL_LINK( SvxPageDescPage, PaperSizeSelect_Impl, ListBox *, pBox )
{
// Draw: if paper format the margin shall be 1 cm
long nTmp = 0;
- sal_Bool bScreen = (( PAPER_SCREEN_4_3 == ePaper )|| ( PAPER_SCREEN_16_9 == ePaper));
+ sal_Bool bScreen = (( PAPER_SCREEN_4_3 == ePaper )||( PAPER_SCREEN_16_9 == ePaper)||( PAPER_SCREEN_16_10 == ePaper));
if ( !bScreen )
// no margin if screen
@@ -1408,7 +1408,7 @@ int SvxPageDescPage::DeactivatePage( SfxItemSet* _pSet )
sal_uInt16 nPos = aPaperSizeBox.GetSelectEntryPos();
Paper ePaper = (Paper)(sal_uLong)aPaperSizeBox.GetEntryData( nPos );
- if ( ePaper != PAPER_SCREEN_4_3 && ePaper != PAPER_SCREEN_16_9 && IsMarginOutOfRange() )
+ if ( ePaper != PAPER_SCREEN_4_3 && ePaper != PAPER_SCREEN_16_9 && ePaper != PAPER_SCREEN_16_10 && IsMarginOutOfRange() )
{
if ( QueryBox( this, WB_YES_NO | WB_DEF_NO, aPrintRangeQueryText ).Execute() == RET_NO )
{
diff --git a/cui/source/tabpages/page.h b/cui/source/tabpages/page.h
index 58ebb4eba01f..7630200081c0 100644
--- a/cui/source/tabpages/page.h
+++ b/cui/source/tabpages/page.h
@@ -66,6 +66,7 @@
#define PAPERSIZE_POSTCARD_JP 46
#define PAPERSIZE_A6 56
#define PAPERSIZE_SCREEN_16_9 78
+#define PAPERSIZE_SCREEN_16_10 79
#endif
diff --git a/cui/source/tabpages/page.src b/cui/source/tabpages/page.src
index 0397b2d8c810..0026f9a6dd1a 100644
--- a/cui/source/tabpages/page.src
+++ b/cui/source/tabpages/page.src
@@ -470,6 +470,7 @@ StringArray RID_SVXSTRARY_PAPERSIZE_DRAW
< "Dia Slide" ; PAPERSIZE_DIA ; > ;
< "Screen 4:3" ; PAPERSIZE_SCREEN_4_3 ; > ;
< "Screen 16:9" ; PAPERSIZE_SCREEN_16_9 ; > ;
+ < "Screen 16:10" ; PAPERSIZE_SCREEN_16_10 ; > ;
< "Japanese Postcard" ; PAPERSIZE_POSTCARD_JP; > ;
};
};