remove unused NONE from ScrollRangeCheck enum
Change-Id: I9d83cc38a9fa477a61ec7e2ec3d9786318187085
This commit is contained in:
parent
2f358c6392
commit
1c3de19e98
@ -133,6 +133,10 @@ for d in definitionSet:
|
||||
"sc/source/ui/docshell/impex.cxx", # SylkVersion
|
||||
"include/rsc/rsc-vcl-shared-types.hxx", # KeyFuncType
|
||||
"include/i18nutil/paper.hxx", # Paper
|
||||
"cppcanvas/source/mtfrenderer/emfplus.cxx", # EmfPlusCombineMode
|
||||
"cppcanvas/source/mtfrenderer/emfpbrush.hxx", # EmfPlusHatchStyle
|
||||
"include/filter/msfilter/svdfppt.hxx", # PptPlaceholder, PptSlideLayout
|
||||
"include/filter/msfilter/escherex.hxx", # various
|
||||
# Windows or OSX only
|
||||
"include/canvas/rendering/icolorbuffer.hxx",
|
||||
"include/vcl/commandevent.hxx",
|
||||
@ -162,6 +166,9 @@ for d in definitionSet:
|
||||
"sc/source/ui/inc/scuitphfedit.hxx", # ScHFEntryId (from UI)
|
||||
"include/i18nlangtag/languagetag.hxx", # LanguageTag::ScriptType
|
||||
"extensions/source/scanner/grid.hxx", # ResetType (from UI)
|
||||
"dbaccess/source/inc/dsntypes.hxx", # dbaccess::DATASOURCE_TYPE (from UI)
|
||||
"cui/source/tabpages/tparea.cxx", # FillType (from UI)
|
||||
"include/editeng/svxenum.hxx", # css::style::NumberingType
|
||||
# represents constants from an external API
|
||||
"opencl/inc/opencl_device_selection.h",
|
||||
"vcl/inc/sft.hxx",
|
||||
|
@ -1096,7 +1096,7 @@ Pair ImpEditView::Scroll( long ndX, long ndY, ScrollRangeCheck nRangeCheck )
|
||||
long nDiff = pEditEngine->pImpEditEngine->GetTextHeight() - aNewVisArea.Bottom(); // negative
|
||||
aNewVisArea.Move( 0, nDiff ); // could end up in the negative area...
|
||||
}
|
||||
if ( ( aNewVisArea.Top() < 0 ) && ( nRangeCheck != ScrollRangeCheck::NONE ) )
|
||||
if ( aNewVisArea.Top() < 0 )
|
||||
aNewVisArea.Move( 0, -aNewVisArea.Top() );
|
||||
|
||||
// Horizontal:
|
||||
@ -1115,7 +1115,7 @@ Pair ImpEditView::Scroll( long ndX, long ndY, ScrollRangeCheck nRangeCheck )
|
||||
long nDiff = pEditEngine->pImpEditEngine->CalcTextWidth( false ) - aNewVisArea.Right(); // negative
|
||||
aNewVisArea.Move( nDiff, 0 ); // could end up in the negative area...
|
||||
}
|
||||
if ( ( aNewVisArea.Left() < 0 ) && ( nRangeCheck != ScrollRangeCheck::NONE ) )
|
||||
if ( aNewVisArea.Left() < 0 )
|
||||
aNewVisArea.Move( -aNewVisArea.Left(), 0 );
|
||||
|
||||
// The difference must be alignt on pixel (due to scroll!)
|
||||
|
@ -73,7 +73,6 @@ namespace linguistic2 {
|
||||
|
||||
enum class ScrollRangeCheck
|
||||
{
|
||||
NONE = 0, // No correction of VisArea when scrolling
|
||||
NoNegative = 1, // No negative VisArea when scrolling
|
||||
PaperWidthTextSize = 2, // VisArea must be within paper width, Text Size
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user