page.cxx (2e03cc80) page.cxx (635e0213)
1/**************************************************************
1/**************************************************************
2 *
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
19 *
20 *************************************************************/
21
22// MARKER(update_precomp.py): autogen include statement, do not remove
23#include "precompiled_cui.hxx"
24
25// include ---------------------------------------------------------------
26#include <sfx2/app.hxx>
27#include <sfx2/objsh.hxx>

--- 395 unchanged lines hidden (view full) ---

423 aRightMarginEdit.SetMax(aDrawinglayerOpt.GetMaximumPaperRightMargin());
424 aRightMarginEdit.SetLast(aDrawinglayerOpt.GetMaximumPaperRightMargin());
425 aTopMarginEdit.SetMax(aDrawinglayerOpt.GetMaximumPaperTopMargin());
426 aTopMarginEdit.SetLast(aDrawinglayerOpt.GetMaximumPaperTopMargin());
427 aBottomMarginEdit.SetMax(aDrawinglayerOpt.GetMaximumPaperBottomMargin());
428 aBottomMarginEdit.SetLast(aDrawinglayerOpt.GetMaximumPaperBottomMargin());
429
430 aPortraitBtn.SetAccessibleRelationMemberOf(&aOrientationFT);
20 *************************************************************/
21
22// MARKER(update_precomp.py): autogen include statement, do not remove
23#include "precompiled_cui.hxx"
24
25// include ---------------------------------------------------------------
26#include <sfx2/app.hxx>
27#include <sfx2/objsh.hxx>

--- 395 unchanged lines hidden (view full) ---

423 aRightMarginEdit.SetMax(aDrawinglayerOpt.GetMaximumPaperRightMargin());
424 aRightMarginEdit.SetLast(aDrawinglayerOpt.GetMaximumPaperRightMargin());
425 aTopMarginEdit.SetMax(aDrawinglayerOpt.GetMaximumPaperTopMargin());
426 aTopMarginEdit.SetLast(aDrawinglayerOpt.GetMaximumPaperTopMargin());
427 aBottomMarginEdit.SetMax(aDrawinglayerOpt.GetMaximumPaperBottomMargin());
428 aBottomMarginEdit.SetLast(aDrawinglayerOpt.GetMaximumPaperBottomMargin());
429
430 aPortraitBtn.SetAccessibleRelationMemberOf(&aOrientationFT);
431 aLandscapeBtn.SetAccessibleRelationMemberOf(&aOrientationFT);
431 aLandscapeBtn.SetAccessibleRelationMemberOf(&aOrientationFT);
432}
433
434// -----------------------------------------------------------------------
435
436SvxPageDescPage::~SvxPageDescPage()
437{
438 if(mbDelPrinter)
439 {

--- 627 unchanged lines hidden (view full) ---

1067
1068 RangeHdl_Impl( 0 );
1069 UpdateExample_Impl( true );
1070
1071 if ( eMode == SVX_PAGE_MODE_PRESENTATION )
1072 {
1073 // Draw: bei Papierformat soll der Rand 1cm betragen
1074 long nTmp = 0;
432}
433
434// -----------------------------------------------------------------------
435
436SvxPageDescPage::~SvxPageDescPage()
437{
438 if(mbDelPrinter)
439 {

--- 627 unchanged lines hidden (view full) ---

1067
1068 RangeHdl_Impl( 0 );
1069 UpdateExample_Impl( true );
1070
1071 if ( eMode == SVX_PAGE_MODE_PRESENTATION )
1072 {
1073 // Draw: bei Papierformat soll der Rand 1cm betragen
1074 long nTmp = 0;
1075 sal_Bool bScreen = ( PAPER_SCREEN == ePaper );
1075 sal_Bool bScreen = ( PAPER_SCREEN_4_BY_3 == ePaper ) ||
1076 ( PAPER_SCREEN_16_BY_9 == ePaper ) ||
1077 ( PAPER_SCREEN_16_BY_10 == ePaper );
1076
1077 if ( !bScreen )
1078 // bei Bildschirm keinen Rand
1079 nTmp = 1; // entspr. 1cm
1080
1081 // Abfragen, ob für Ränder 0 gesetzt ist:
1082 if ( bScreen || aRightMarginEdit.GetValue() == 0 )
1083 {

--- 460 unchanged lines hidden (view full) ---

1544int SvxPageDescPage::DeactivatePage( SfxItemSet* _pSet )
1545{
1546 // Abfrage, ob die Seitenränder ausserhalb des Druckbereichs liegen
1547 // Wenn nicht, dann den Anwender fragen, ob sie übernommen werden sollen.
1548 // Wenn nicht, dann auf der TabPage bleiben.
1549 sal_uInt16 nPos = aPaperSizeBox.GetSelectEntryPos();
1550 Paper ePaper = (Paper)(sal_uLong)aPaperSizeBox.GetEntryData( nPos );
1551
1078
1079 if ( !bScreen )
1080 // bei Bildschirm keinen Rand
1081 nTmp = 1; // entspr. 1cm
1082
1083 // Abfragen, ob für Ränder 0 gesetzt ist:
1084 if ( bScreen || aRightMarginEdit.GetValue() == 0 )
1085 {

--- 460 unchanged lines hidden (view full) ---

1546int SvxPageDescPage::DeactivatePage( SfxItemSet* _pSet )
1547{
1548 // Abfrage, ob die Seitenränder ausserhalb des Druckbereichs liegen
1549 // Wenn nicht, dann den Anwender fragen, ob sie übernommen werden sollen.
1550 // Wenn nicht, dann auf der TabPage bleiben.
1551 sal_uInt16 nPos = aPaperSizeBox.GetSelectEntryPos();
1552 Paper ePaper = (Paper)(sal_uLong)aPaperSizeBox.GetEntryData( nPos );
1553
1552 if ( ePaper != PAPER_SCREEN && IsMarginOutOfRange() )
1554 if ( ePaper != PAPER_SCREEN_4_BY_3 && IsMarginOutOfRange() ||
1555 ePaper != PAPER_SCREEN_16_BY_9 && IsMarginOutOfRange() ||
1556 ePaper != PAPER_SCREEN_16_BY_10 && IsMarginOutOfRange() )
1553 {
1554 if ( QueryBox( this, WB_YES_NO | WB_DEF_NO, aPrintRangeQueryText ).Execute() == RET_NO )
1555 {
1556 MetricField* pField = NULL;
1557 if ( IsPrinterRangeOverflow( aLeftMarginEdit, nFirstLeftMargin, nLastLeftMargin, MARGIN_LEFT ) )
1558 pField = &aLeftMarginEdit;
1559 if ( IsPrinterRangeOverflow( aRightMarginEdit, nFirstRightMargin, nLastRightMargin, MARGIN_RIGHT )
1560 && !pField )

--- 311 unchanged lines hidden ---
1557 {
1558 if ( QueryBox( this, WB_YES_NO | WB_DEF_NO, aPrintRangeQueryText ).Execute() == RET_NO )
1559 {
1560 MetricField* pField = NULL;
1561 if ( IsPrinterRangeOverflow( aLeftMarginEdit, nFirstLeftMargin, nLastLeftMargin, MARGIN_LEFT ) )
1562 pField = &aLeftMarginEdit;
1563 if ( IsPrinterRangeOverflow( aRightMarginEdit, nFirstRightMargin, nLastRightMargin, MARGIN_RIGHT )
1564 && !pField )

--- 311 unchanged lines hidden ---