Kaydet (Commit) d22b63e1 authored tarafından Matthias Freund's avatar Matthias Freund Kaydeden (comit) Thomas Arnhold

fdo#39468 Comment translation GER-ENG in sw/source/ui/uiview (Part 1)

Some translations.

Change-Id: Ic16186c0012c50b278a377d288e4808f8438277c
Reviewed-on: https://gerrit.libreoffice.org/4181Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst 61ba2792
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
#include <paratr.hxx> #include <paratr.hxx>
#include <fmtpdsc.hxx> #include <fmtpdsc.hxx>
#include <fmtrowsplt.hxx> #include <fmtrowsplt.hxx>
#include <swundo.hxx> // fuer die UndoIds #include <swundo.hxx> // for the UndoIds
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
......
...@@ -134,7 +134,7 @@ static void lcl_InvalidateZoomSlots(SfxBindings& rBindings) ...@@ -134,7 +134,7 @@ static void lcl_InvalidateZoomSlots(SfxBindings& rBindings)
rBindings.Invalidate( aInval ); rBindings.Invalidate( aInval );
} }
// erstmal der Zoom-Dialog // At first the zoom dialog
class SwPreViewZoomDlg : public SvxStandardDialog class SwPreViewZoomDlg : public SvxStandardDialog
{ {
NumericField* m_pRowEdit; NumericField* m_pRowEdit;
...@@ -178,8 +178,8 @@ SwPagePreViewWin::SwPagePreViewWin( Window *pParent, SwPagePreView& rPView ) ...@@ -178,8 +178,8 @@ SwPagePreViewWin::SwPagePreViewWin( Window *pParent, SwPagePreView& rPView )
SetMapMode( MapMode(MAP_TWIP) ); SetMapMode( MapMode(MAP_TWIP) );
const SwMasterUsrPref *pUsrPref = SW_MOD()->GetUsrPref(sal_False); const SwMasterUsrPref *pUsrPref = SW_MOD()->GetUsrPref(sal_False);
mnRow = pUsrPref->GetPagePrevRow(); // 1 Zeile mnRow = pUsrPref->GetPagePrevRow(); // 1 row
mnCol = pUsrPref->GetPagePrevCol(); // 1 Spalte mnCol = pUsrPref->GetPagePrevCol(); // 1 column
mnSttPage = USHRT_MAX; mnSttPage = USHRT_MAX;
} }
...@@ -193,9 +193,9 @@ void SwPagePreViewWin::Paint( const Rectangle& rRect ) ...@@ -193,9 +193,9 @@ void SwPagePreViewWin::Paint( const Rectangle& rRect )
if( !mpViewShell || !mpViewShell->GetLayout() ) if( !mpViewShell || !mpViewShell->GetLayout() )
return; return;
if( USHRT_MAX == mnSttPage ) // wurde noch nie berechnet ? (Init-Phase!) if( USHRT_MAX == mnSttPage ) // was never calculated ? (Init-Phase!)
{ {
// das ist die Size, auf die ich mich immer beziehe // This is the size to which I always relate.
if( !maPxWinSize.Height() || !maPxWinSize.Width() ) if( !maPxWinSize.Height() || !maPxWinSize.Width() )
maPxWinSize = GetOutputSizePixel(); maPxWinSize = GetOutputSizePixel();
...@@ -237,12 +237,12 @@ void SwPagePreViewWin::CalcWish( sal_uInt8 nNewRow, sal_uInt8 nNewCol ) ...@@ -237,12 +237,12 @@ void SwPagePreViewWin::CalcWish( sal_uInt8 nNewRow, sal_uInt8 nNewCol )
SetPagePreview(mnRow, mnCol); SetPagePreview(mnRow, mnCol);
maScale = GetMapMode().GetScaleX(); maScale = GetMapMode().GetScaleX();
// falls an der Spaltigkeit gedreht wurde, so muss der Sonderfall // If changes have taken place at the columns, the special case "single column"
// Einspaltig beachtet und ggfs. der Scrollbar korrigiert werden // must be considered and corrected if necessary.
if( (1 == nOldCol) ^ (1 == mnCol) ) if( (1 == nOldCol) ^ (1 == mnCol) )
mrView.ScrollDocSzChg(); mrView.ScrollDocSzChg();
// Sortierung muss eingehalten werden!! // Order must be maintained!
// additional invalidate page status. // additional invalidate page status.
static sal_uInt16 aInval[] = static sal_uInt16 aInval[] =
{ {
...@@ -261,12 +261,10 @@ void SwPagePreViewWin::CalcWish( sal_uInt8 nNewRow, sal_uInt8 nNewCol ) ...@@ -261,12 +261,10 @@ void SwPagePreViewWin::CalcWish( sal_uInt8 nNewRow, sal_uInt8 nNewCol )
mrView.ScrollViewSzChg(); mrView.ScrollViewSzChg();
} }
/*-------------------------------------------------------------------- // mnSttPage is Absolute
Beschreibung:, mnSttPage is Absolute
--------------------------------------------------------------------*/
int SwPagePreViewWin::MovePage( int eMoveMode ) int SwPagePreViewWin::MovePage( int eMoveMode )
{ {
// soviele Seiten hoch // number of pages up
sal_uInt16 nPages = mnRow * mnCol; sal_uInt16 nPages = mnRow * mnCol;
sal_uInt16 nNewSttPage = mnSttPage; sal_uInt16 nNewSttPage = mnSttPage;
sal_uInt16 nPageCount = mrView.GetPageCount(); sal_uInt16 nPageCount = mrView.GetPageCount();
...@@ -367,7 +365,7 @@ int SwPagePreViewWin::MovePage( int eMoveMode ) ...@@ -367,7 +365,7 @@ int SwPagePreViewWin::MovePage( int eMoveMode )
void SwPagePreViewWin::SetWinSize( const Size& rNewSize ) void SwPagePreViewWin::SetWinSize( const Size& rNewSize )
{ {
// die Size wollen wir aber immer in Pixel-Einheiten haben // We always want the size as pixel units.
maPxWinSize = LogicToPixel( rNewSize ); maPxWinSize = LogicToPixel( rNewSize );
if( USHRT_MAX == mnSttPage ) if( USHRT_MAX == mnSttPage )
...@@ -521,9 +519,8 @@ void SwPagePreViewWin::MouseButtonDown( const MouseEvent& rMEvt ) ...@@ -521,9 +519,8 @@ void SwPagePreViewWin::MouseButtonDown( const MouseEvent& rMEvt )
} }
} }
/****************************************************************************** // Set user prefs or view options
* Beschreibung: Userprefs bzw Viewoptions setzen
******************************************************************************/
void SwPagePreViewWin::SetPagePreview( sal_uInt8 nRow, sal_uInt8 nCol ) void SwPagePreViewWin::SetPagePreview( sal_uInt8 nRow, sal_uInt8 nCol )
{ {
SwMasterUsrPref *pOpt = (SwMasterUsrPref *)SW_MOD()->GetUsrPref(sal_False); SwMasterUsrPref *pOpt = (SwMasterUsrPref *)SW_MOD()->GetUsrPref(sal_False);
...@@ -534,7 +531,7 @@ void SwPagePreViewWin::SetPagePreview( sal_uInt8 nRow, sal_uInt8 nCol ) ...@@ -534,7 +531,7 @@ void SwPagePreViewWin::SetPagePreview( sal_uInt8 nRow, sal_uInt8 nCol )
pOpt->SetPagePrevCol( nCol ); pOpt->SetPagePrevCol( nCol );
pOpt->SetModified(); pOpt->SetModified();
//Scrollbar updaten! // Update scrollbar!
mrView.ScrollViewSzChg(); mrView.ScrollViewSzChg();
} }
} }
...@@ -575,12 +572,12 @@ void SwPagePreViewWin::DataChanged( const DataChangedEvent& rDCEvt ) ...@@ -575,12 +572,12 @@ void SwPagePreViewWin::DataChanged( const DataChangedEvent& rDCEvt )
switch( rDCEvt.GetType() ) switch( rDCEvt.GetType() )
{ {
case DATACHANGED_SETTINGS: case DATACHANGED_SETTINGS:
// ScrollBars neu anordnen bzw. Resize ausloesen, da sich // Rearrange the scrollbars or trigger resize, because the
// ScrollBar-Groesse geaendert haben kann. Dazu muss dann im // size of the scrollbars may have be changed. Also the
// Resize-Handler aber auch die Groesse der ScrollBars aus // size of the scrollbars has to be retrieved from the settings
// den Settings abgefragt werden. // out of the resize handler.
if( rDCEvt.GetFlags() & SETTINGS_STYLE ) if( rDCEvt.GetFlags() & SETTINGS_STYLE )
mrView.InvalidateBorder(); //Scrollbarbreiten mrView.InvalidateBorder(); // Scrollbar widths
// zoom has to be disabled if Accessibility support is switched on // zoom has to be disabled if Accessibility support is switched on
lcl_InvalidateZoomSlots(mrView.GetViewFrame()->GetBindings()); lcl_InvalidateZoomSlots(mrView.GetViewFrame()->GetBindings());
break; break;
...@@ -589,7 +586,7 @@ void SwPagePreViewWin::DataChanged( const DataChangedEvent& rDCEvt ) ...@@ -589,7 +586,7 @@ void SwPagePreViewWin::DataChanged( const DataChangedEvent& rDCEvt )
case DATACHANGED_DISPLAY: case DATACHANGED_DISPLAY:
case DATACHANGED_FONTS: case DATACHANGED_FONTS:
case DATACHANGED_FONTSUBSTITUTION: case DATACHANGED_FONTSUBSTITUTION:
mrView.GetDocShell()->UpdateFontList(); //Fontwechsel mrView.GetDocShell()->UpdateFontList(); // Font change
if ( mpViewShell->GetWin() ) if ( mpViewShell->GetWin() )
mpViewShell->GetWin()->Invalidate(); mpViewShell->GetWin()->Invalidate();
break; break;
...@@ -672,7 +669,7 @@ void SwPagePreView::_ExecPgUpAndPgDown( const bool _bPgUp, ...@@ -672,7 +669,7 @@ void SwPagePreView::_ExecPgUpAndPgDown( const bool _bPgUp,
_pReq->Done(); _pReq->Done();
} }
// dann mal alles fuer die SwPagePreView // Then all for the SwPagePreView
void SwPagePreView::Execute( SfxRequest &rReq ) void SwPagePreView::Execute( SfxRequest &rReq )
{ {
int eMvMode; int eMvMode;
...@@ -888,7 +885,7 @@ MOVEPAGE: ...@@ -888,7 +885,7 @@ MOVEPAGE:
case FN_PRINT_PAGEPREVIEW: case FN_PRINT_PAGEPREVIEW:
{ {
const SwPagePreViewPrtData* pPPVPD = aViewWin.GetViewShell()->GetDoc()->GetPreViewPrtData(); const SwPagePreViewPrtData* pPPVPD = aViewWin.GetViewShell()->GetDoc()->GetPreViewPrtData();
// die Sache mit der Orientation // The thing with the orientation
if(pPPVPD) if(pPPVPD)
{ {
SfxPrinter* pPrinter = GetPrinter( sal_True ); SfxPrinter* pPrinter = GetPrinter( sal_True );
...@@ -1029,7 +1026,7 @@ void SwPagePreView::GetState( SfxItemSet& rSet ) ...@@ -1029,7 +1026,7 @@ void SwPagePreView::GetState( SfxItemSet& rSet )
} }
break; break;
case FN_SHOW_MULTIPLE_PAGES: case FN_SHOW_MULTIPLE_PAGES:
//should never be disabled // should never be disabled
break; break;
case FN_SHOW_BOOKVIEW: case FN_SHOW_BOOKVIEW:
{ {
...@@ -1044,7 +1041,7 @@ void SwPagePreView::GetState( SfxItemSet& rSet ) ...@@ -1044,7 +1041,7 @@ void SwPagePreView::GetState( SfxItemSet& rSet )
break; break;
case FN_PRINT_PAGEPREVIEW: case FN_PRINT_PAGEPREVIEW:
// hat den gleichen Status wie das normale Drucken // has the same status like the normal printing
{ {
const SfxPoolItem* pItem; const SfxPoolItem* pItem;
SfxItemSet aSet( *rSet.GetPool(), SID_PRINTDOC, SID_PRINTDOC ); SfxItemSet aSet( *rSet.GetPool(), SID_PRINTDOC, SID_PRINTDOC );
...@@ -1093,9 +1090,9 @@ void SwPagePreView::Init(const SwViewOption * pPrefs) ...@@ -1093,9 +1090,9 @@ void SwPagePreView::Init(const SwViewOption * pPrefs)
bNormalPrint = sal_True; bNormalPrint = sal_True;
// Die DocSize erfragen und verarbeiten. Ueber die Handler konnte // Check and process the DocSize. The shell could not be found via
// die Shell nicht gefunden werden, weil die Shell innerhalb CTOR-Phase // the handler, because the shell is unknown to the SFX management
// nicht in der SFX-Verwaltung bekannt ist. // within the CTOR phase.
if( !pPrefs ) if( !pPrefs )
pPrefs = SW_MOD()->GetUsrPref(sal_False); pPrefs = SW_MOD()->GetUsrPref(sal_False);
...@@ -1103,9 +1100,9 @@ void SwPagePreView::Init(const SwViewOption * pPrefs) ...@@ -1103,9 +1100,9 @@ void SwPagePreView::Init(const SwViewOption * pPrefs)
mbHScrollbarEnabled = pPrefs->IsViewHScrollBar(); mbHScrollbarEnabled = pPrefs->IsViewHScrollBar();
mbVScrollbarEnabled = pPrefs->IsViewVScrollBar(); mbVScrollbarEnabled = pPrefs->IsViewVScrollBar();
// die Felder aktualisieren // Update the fields
// ACHTUNG: hochcasten auf die EditShell, um die SS zu nutzen. // ATTENTION: Do cast the EditShell up, to use the SS.
// In den Methoden wird auf die akt. Shell abgefragt! // At the methodes the current shell will be queried!
SwEditShell* pESh = (SwEditShell*)GetViewShell(); SwEditShell* pESh = (SwEditShell*)GetViewShell();
sal_Bool bIsModified = pESh->IsModified(); sal_Bool bIsModified = pESh->IsModified();
...@@ -1170,7 +1167,7 @@ SwPagePreView::SwPagePreView(SfxViewFrame *pViewFrame, SfxViewShell* pOldSh): ...@@ -1170,7 +1167,7 @@ SwPagePreView::SwPagePreView(SfxViewFrame *pViewFrame, SfxViewShell* pOldSh):
SfxObjectShell* pObjShell = pViewFrame->GetObjectShell(); SfxObjectShell* pObjShell = pViewFrame->GetObjectShell();
if ( !pOldSh ) if ( !pOldSh )
{ {
//Gibt es schon eine Sicht auf das Dokument? // Exists already a view on the document?
SfxViewFrame *pF = SfxViewFrame::GetFirst( pObjShell ); SfxViewFrame *pF = SfxViewFrame::GetFirst( pObjShell );
if ( pF == pViewFrame ) if ( pF == pViewFrame )
pF = SfxViewFrame::GetNext( *pF, pObjShell ); pF = SfxViewFrame::GetNext( *pF, pObjShell );
...@@ -1194,7 +1191,7 @@ SwPagePreView::SwPagePreView(SfxViewFrame *pViewFrame, SfxViewShell* pOldSh): ...@@ -1194,7 +1191,7 @@ SwPagePreView::SwPagePreView(SfxViewFrame *pViewFrame, SfxViewShell* pOldSh):
pVS = GetDocShell()->GetWrtShell(); pVS = GetDocShell()->GetWrtShell();
if( pVS ) if( pVS )
{ {
// setze die akt. Seite als die erste // Set the current page as the first.
sal_uInt16 nPhysPg, nVirtPg; sal_uInt16 nPhysPg, nVirtPg;
((SwCrsrShell*)pVS)->GetPageNum( nPhysPg, nVirtPg, sal_True, sal_False ); ((SwCrsrShell*)pVS)->GetPageNum( nPhysPg, nVirtPg, sal_True, sal_False );
if( 1 != aViewWin.GetCol() && 1 == nPhysPg ) if( 1 != aViewWin.GetCol() && 1 == nPhysPg )
...@@ -1245,7 +1242,7 @@ int SwPagePreView::_CreateScrollbar( sal_Bool bHori ) ...@@ -1245,7 +1242,7 @@ int SwPagePreView::_CreateScrollbar( sal_Bool bHori )
Window *pMDI = &GetViewFrame()->GetWindow(); Window *pMDI = &GetViewFrame()->GetWindow();
SwScrollbar** ppScrollbar = bHori ? &pHScrollbar : &pVScrollbar; SwScrollbar** ppScrollbar = bHori ? &pHScrollbar : &pVScrollbar;
OSL_ENSURE( !*ppScrollbar, "vorher abpruefen!" ); OSL_ENSURE( !*ppScrollbar, "check beforehand!" );
if( !bHori ) if( !bHori )
{ {
...@@ -1275,9 +1272,8 @@ int SwPagePreView::_CreateScrollbar( sal_Bool bHori ) ...@@ -1275,9 +1272,8 @@ int SwPagePreView::_CreateScrollbar( sal_Bool bHori )
return 1; return 1;
} }
/* // Button-Handler
* Button-Handler
*/
IMPL_LINK_INLINE_START( SwPagePreView, BtnPage, Button *, pButton ) IMPL_LINK_INLINE_START( SwPagePreView, BtnPage, Button *, pButton )
{ {
// use new helper method to perform page up // use new helper method to perform page up
...@@ -1297,7 +1293,7 @@ int SwPagePreView::ChgPage( int eMvMode, int bUpdateScrollbar ) ...@@ -1297,7 +1293,7 @@ int SwPagePreView::ChgPage( int eMvMode, int bUpdateScrollbar )
if( bChg ) if( bChg )
{ {
// Statusleiste updaten // Update statusbar
OUString aStr = sPageStr + aViewWin.GetStatusStr( mnPageCount ); OUString aStr = sPageStr + aViewWin.GetStatusStr( mnPageCount );
SfxBindings& rBindings = GetViewFrame()->GetBindings(); SfxBindings& rBindings = GetViewFrame()->GetBindings();
...@@ -1317,7 +1313,7 @@ int SwPagePreView::ChgPage( int eMvMode, int bUpdateScrollbar ) ...@@ -1317,7 +1313,7 @@ int SwPagePreView::ChgPage( int eMvMode, int bUpdateScrollbar )
return bChg; return bChg;
} }
// ab hier alles aus der SwView uebernommen // From here, everything was taken from the SwView.
void SwPagePreView::CalcAndSetBorderPixel( SvBorder &rToFill, sal_Bool /*bInner*/ ) void SwPagePreView::CalcAndSetBorderPixel( SvBorder &rToFill, sal_Bool /*bInner*/ )
{ {
const StyleSettings &rSet = aViewWin.GetSettings().GetStyleSettings(); const StyleSettings &rSet = aViewWin.GetSettings().GetStyleSettings();
...@@ -1341,8 +1337,8 @@ void SwPagePreView::InnerResizePixel( const Point &rOfst, const Size &rSize ) ...@@ -1341,8 +1337,8 @@ void SwPagePreView::InnerResizePixel( const Point &rOfst, const Size &rSize )
*pVScrollbar, *pHScrollbar, pPageUpBtn, pPageDownBtn, 0, *pVScrollbar, *pHScrollbar, pPageUpBtn, pPageDownBtn, 0,
*pScrollFill ); *pScrollFill );
//EditWin niemals einstellen! // Never set EditWin !
//VisArea niemals einstellen! // Never set VisArea !
} }
void SwPagePreView::OuterResizePixel( const Point &rOfst, const Size &rSize ) void SwPagePreView::OuterResizePixel( const Point &rOfst, const Size &rSize )
...@@ -1350,14 +1346,15 @@ void SwPagePreView::OuterResizePixel( const Point &rOfst, const Size &rSize ) ...@@ -1350,14 +1346,15 @@ void SwPagePreView::OuterResizePixel( const Point &rOfst, const Size &rSize )
SvBorder aBorder; SvBorder aBorder;
CalcAndSetBorderPixel( aBorder, sal_False ); CalcAndSetBorderPixel( aBorder, sal_False );
//EditWin niemals einstellen! // Never set EditWin !
Size aTmpSize( aViewWin.GetOutputSizePixel() ); Size aTmpSize( aViewWin.GetOutputSizePixel() );
Point aBottomRight( aViewWin.PixelToLogic( Point( aTmpSize.Width(), aTmpSize.Height() ) ) ); Point aBottomRight( aViewWin.PixelToLogic( Point( aTmpSize.Width(), aTmpSize.Height() ) ) );
SetVisArea( Rectangle( Point(), aBottomRight ) ); SetVisArea( Rectangle( Point(), aBottomRight ) );
//Aufruf der DocSzChgd-Methode der Scrollbars ist noetig, da vom maximalen // Call of the DocSzChgd-Methode of the scrollbars is necessary,
//Scrollrange immer die halbe Hoehe der VisArea abgezogen wird. // because from the maximum scoll range half the height of the
// VisArea is always deducted.
if ( pVScrollbar && aTmpSize.Width() > 0 && aTmpSize.Height() > 0 ) if ( pVScrollbar && aTmpSize.Width() > 0 && aTmpSize.Height() > 0 )
{ {
ScrollDocSzChg(); ScrollDocSzChg();
...@@ -1378,7 +1375,7 @@ void SwPagePreView::SetVisArea( const Rectangle &rRect, sal_Bool bUpdateScrollba ...@@ -1378,7 +1375,7 @@ void SwPagePreView::SetVisArea( const Rectangle &rRect, sal_Bool bUpdateScrollba
if(aLR == aVisArea) if(aLR == aVisArea)
return; return;
// keine negative Position, keine neg. Groesse // No negative position, no negative size
if(aLR.Top() < 0) if(aLR.Top() < 0)
{ {
...@@ -1394,23 +1391,23 @@ void SwPagePreView::SetVisArea( const Rectangle &rRect, sal_Bool bUpdateScrollba ...@@ -1394,23 +1391,23 @@ void SwPagePreView::SetVisArea( const Rectangle &rRect, sal_Bool bUpdateScrollba
if(aLR.Right() < 0) aLR.Right() = 0; if(aLR.Right() < 0) aLR.Right() = 0;
if(aLR.Bottom() < 0) aLR.Bottom() = 0; if(aLR.Bottom() < 0) aLR.Bottom() = 0;
if(aLR == aVisArea || if(aLR == aVisArea ||
// Leeres Rechteck nicht beachten // Ignore empty rectangle
( 0 == aLR.Bottom() - aLR.Top() && 0 == aLR.Right() - aLR.Left() ) ) ( 0 == aLR.Bottom() - aLR.Top() && 0 == aLR.Right() - aLR.Left() ) )
return; return;
if( aLR.Left() > aLR.Right() || aLR.Top() > aLR.Bottom() ) if( aLR.Left() > aLR.Right() || aLR.Top() > aLR.Bottom() )
return; return;
//Bevor die Daten veraendert werden ggf. ein Update rufen. Dadurch wird // Before the data can be changed call an update if necessary.
//sichergestellt, da? anliegende Paints korrekt in Dokumentkoordinaten // Thereby ensured, that adjacent paints are correctly converted into
//umgerechnet werden. // document coordinates.
//Vorsichtshalber tun wir das nur wenn an der Shell eine Action laeuft, // As a precaution, we do this only when at the shell runs an action,
//denn dann wir nicht wirklich gepaintet sondern die Rechtecke werden // because then we do not really paint but the rectangles are just
//lediglich (in Dokumentkoordinaten) vorgemerkt. // bookmarked (in document coordinates).
if( GetViewShell()->ActionPend() ) if( GetViewShell()->ActionPend() )
aViewWin.Update(); aViewWin.Update();
// setze am View-Win die aktuelle Size // Set at View-Win the current size
aVisArea = aLR; aVisArea = aLR;
aViewWin.SetWinSize( aLR.GetSize() ); aViewWin.SetWinSize( aLR.GetSize() );
ChgPage( SwPagePreViewWin::MV_NEWWINSIZE, bUpdateScrollbar ); ChgPage( SwPagePreViewWin::MV_NEWWINSIZE, bUpdateScrollbar );
...@@ -1427,7 +1424,7 @@ IMPL_LINK( SwPagePreView, ScrollHdl, SwScrollbar *, pScrollbar ) ...@@ -1427,7 +1424,7 @@ IMPL_LINK( SwPagePreView, ScrollHdl, SwScrollbar *, pScrollbar )
Help::IsQuickHelpEnabled() && Help::IsQuickHelpEnabled() &&
GetViewShell()->PagePreviewLayout()->DoesPreviewLayoutRowsFitIntoWindow()) GetViewShell()->PagePreviewLayout()->DoesPreviewLayoutRowsFitIntoWindow())
{ {
// wieviele Seiten scrollen ?? // Scroll how many pages??
String sStateStr(sPageStr); String sStateStr(sPageStr);
sal_uInt16 nThmbPos = (sal_uInt16)pScrollbar->GetThumbPos(); sal_uInt16 nThmbPos = (sal_uInt16)pScrollbar->GetThumbPos();
if( 1 == aViewWin.GetCol() || !nThmbPos ) if( 1 == aViewWin.GetCol() || !nThmbPos )
...@@ -1465,7 +1462,7 @@ IMPL_LINK( SwPagePreView, EndScrollHdl, SwScrollbar *, pScrollbar ) ...@@ -1465,7 +1462,7 @@ IMPL_LINK( SwPagePreView, EndScrollHdl, SwScrollbar *, pScrollbar )
Help::ShowQuickHelp(pScrollbar, Rectangle(), aEmptyStr, 0); Help::ShowQuickHelp(pScrollbar, Rectangle(), aEmptyStr, 0);
if ( GetViewShell()->PagePreviewLayout()->DoesPreviewLayoutRowsFitIntoWindow() ) if ( GetViewShell()->PagePreviewLayout()->DoesPreviewLayoutRowsFitIntoWindow() )
{ {
// wieviele Seiten scrollen ?? // Scroll how many pages ??
sal_uInt16 nThmbPos = (sal_uInt16)pScrollbar->GetThumbPos(); sal_uInt16 nThmbPos = (sal_uInt16)pScrollbar->GetThumbPos();
// adjust to new preview functionality // adjust to new preview functionality
if( nThmbPos != aViewWin.SelectedPage() ) if( nThmbPos != aViewWin.SelectedPage() )
...@@ -1666,7 +1663,7 @@ void SwPagePreView::ScrollDocSzChg() ...@@ -1666,7 +1663,7 @@ void SwPagePreView::ScrollDocSzChg()
ScrollViewSzChg(); ScrollViewSzChg();
} }
// alles zum Thema Drucken // All about printing
SfxPrinter* SwPagePreView::GetPrinter( sal_Bool bCreate ) SfxPrinter* SwPagePreView::GetPrinter( sal_Bool bCreate )
{ {
return aViewWin.GetViewShell()->getIDocumentDeviceAccess()->getPrinter( bCreate ); return aViewWin.GetViewShell()->getIDocumentDeviceAccess()->getPrinter( bCreate );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment