This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 1edb91d5f0 Cleanup
1edb91d5f0 is described below
commit 1edb91d5f0a839a21514e3ae2a371af964e55aa1
Author: mseidel <[email protected]>
AuthorDate: Sat Feb 14 00:14:56 2026 +0100
Cleanup
---
main/sw/source/ui/inc/scroll.hxx | 29 +++++++++++++-------------
main/sw/source/ui/uiview/pview.src | 2 --
main/sw/source/ui/uiview/scroll.cxx | 41 +++++++++++++++----------------------
main/sw/source/ui/uiview/view.src | 2 --
4 files changed, 31 insertions(+), 43 deletions(-)
diff --git a/main/sw/source/ui/inc/scroll.hxx b/main/sw/source/ui/inc/scroll.hxx
index 51fd6f1574..b1e2e2cf4a 100644
--- a/main/sw/source/ui/inc/scroll.hxx
+++ b/main/sw/source/ui/inc/scroll.hxx
@@ -19,7 +19,6 @@
*
*************************************************************/
-
#ifndef _SCROLL_HXX
#define _SCROLL_HXX
#ifndef _SCRBAR_HXX //autogen
@@ -28,40 +27,40 @@
class SwScrollbar: public ScrollBar
{
- Size aDocSz;
+ Size aDocSz;
sal_Bool bHori :1; // Horizontal =
sal_True, sonst Vertikal
- sal_Bool bAuto :1; // fuer Scrollingmode
+ sal_Bool bAuto :1; // für Scrollingmode
sal_Bool bThumbEnabled:1;
sal_Bool bVisible :1; // Show/Hide sollen nur
noch dieses Flag setzen
- sal_Bool bSizeSet :1; // wurde die Groesse
bereits gesetzt?
+ sal_Bool bSizeSet :1; // wurde die Größe
bereits gesetzt?
void AutoShow();
- using Window::Hide;
- using Window::SetPosSizePixel;
- using Window::IsVisible;
+ using Window::Hide;
+ using Window::SetPosSizePixel;
+ using Window::IsVisible;
public:
- void ExtendedShow( sal_Bool bVisible = sal_True );
+ void ExtendedShow( sal_Bool bVisible = sal_True );
void Hide() { Show( sal_False ); }
void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize );
sal_Bool IsVisible(sal_Bool bReal) const { return bReal ?
ScrollBar::IsVisible() : bVisible; }
- // Aenderung der Dokumentgroesse
+ // Änderung der Dokumentgröße
void DocSzChgd(const Size &rNewSize);
- // Aenderung des sichtbaren Bereiches
+ // Änderung des sichtbaren Bereiches
void ViewPortChgd(const Rectangle &rRectangle);
- // was fuer einer ist es denn ??
- sal_Bool IsHoriScroll() const { return bHori; }
+ // was für einer ist es denn?
+ sal_Bool IsHoriScroll() const { return bHori; }
void SetAuto(sal_Bool bSet);
sal_Bool IsAuto() { return bAuto;}
- SwScrollbar(Window *pParent, sal_Bool bHori = sal_True );
+ SwScrollbar(Window *pParent, sal_Bool bHori = sal_True );
~SwScrollbar();
};
-
-
#endif
+
+/* vim: set noet sw=4 ts=4: */
diff --git a/main/sw/source/ui/uiview/pview.src
b/main/sw/source/ui/uiview/pview.src
index 4bd4bfa362..1690462027 100644
--- a/main/sw/source/ui/uiview/pview.src
+++ b/main/sw/source/ui/uiview/pview.src
@@ -19,8 +19,6 @@
*
*************************************************************/
-
-
#include <svx/svxids.hrc>
#include "pview.hrc"
#include "helpid.h"
diff --git a/main/sw/source/ui/uiview/scroll.cxx
b/main/sw/source/ui/uiview/scroll.cxx
index 4c4e9337bb..f7512c1538 100644
--- a/main/sw/source/ui/uiview/scroll.cxx
+++ b/main/sw/source/ui/uiview/scroll.cxx
@@ -19,39 +19,33 @@
*
*************************************************************/
-
-
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sw.hxx"
-
-
#include "swtypes.hxx"
#include "swrect.hxx"
#include "scroll.hxx"
#define SCROLL_LINE_SIZE 250
-
SwScrollbar::SwScrollbar( Window *pWin, sal_Bool bHoriz ) :
ScrollBar( pWin,
- WinBits( WB_3DLOOK | WB_HIDE | ( bHoriz ? WB_HSCROLL : WB_VSCROLL) ) ),
+ WinBits( WB_3DLOOK | WB_HIDE | ( bHoriz ? WB_HSCROLL : WB_VSCROLL) ) ),
bHori( bHoriz ),
bAuto( sal_False ),
bThumbEnabled( sal_True ),
bVisible(sal_False),
bSizeSet(sal_False)
{
- // SSA: --- RTL --- no mirroring for horizontal scrollbars
- if( bHoriz )
- EnableRTL( sal_False );
+ // SSA: --- RTL --- no mirroring for horizontal scrollbars
+ if( bHoriz )
+ EnableRTL( sal_False );
}
-
SwScrollbar::~SwScrollbar() {}
/*------------------------------------------------------------------------
- Beschreibung: wird nach einer Aenderung der Dokumentgroesse gerufen, um den
+ Beschreibung: wird nach einer Änderung der Dokumentgröße gerufen, um den
Range des Scrollbars neu einzustellen.
------------------------------------------------------------------------*/
@@ -60,20 +54,19 @@ void SwScrollbar::DocSzChgd( const Size &rSize )
aDocSz = rSize;
SetRange( Range( 0, bHori ? rSize.Width() : rSize.Height()) );
const sal_uLong nVisSize = GetVisibleSize();
- SetLineSize( SCROLL_LINE_SIZE );
-// SetLineSize( nVisSize * 10 / 100 );
+ SetLineSize( SCROLL_LINE_SIZE );
+// SetLineSize( nVisSize * 10 / 100 );
SetPageSize( nVisSize * 77 / 100 );
}
/*------------------------------------------------------------------------
- Beschreibung: wird nach einer Veraenderung des sichtbaren Ausschnittes
+ Beschreibung: wird nach einer Veränderung des sichtbaren Ausschnitts
gerufen.
------------------------------------------------------------------------*/
-
void SwScrollbar::ViewPortChgd( const Rectangle &rRect )
{
- long nThumb, nVisible;
+ long nThumb, nVisible;
if( bHori )
{
nThumb = rRect.Left();
@@ -111,25 +104,24 @@ void SwScrollbar::SetPosSizePixel( const Point& rNewPos,
const Size& rNewSize )
ScrollBar::SetPosSizePixel(rNewPos, rNewSize);
bSizeSet = sal_True;
if(bVisible)
- ExtendedShow();
+ ExtendedShow();
}
-
/*-----------------14.04.98 11:38-------------------
--------------------------------------------------*/
void SwScrollbar::SetAuto(sal_Bool bSet)
{
- if(bAuto != bSet)
+ if(bAuto != bSet)
{
bAuto = bSet;
// automatisch versteckt - dann anzeigen
if(!bAuto && bVisible && !ScrollBar::IsVisible())
- ExtendedShow(sal_True);
+ ExtendedShow(sal_True);
else if(bAuto)
- AutoShow(); // oder automatisch verstecken
+ AutoShow(); // oder automatisch verstecken
}
}
/*-----------------14.04.98 11:43-------------------
@@ -146,11 +138,12 @@ void SwScrollbar::AutoShow()
ScrollBar::Show(sal_False);
}
else if ( !ScrollBar::IsVisible() &&
- (!bHori || nVis) ) //Optimierung
fuer Browser.
-
//Horizontaler Scrollbar per
-
//default aus.
+ (!bHori || nVis) ) // Optimierung
für Browser.
+
// Horizontaler Scrollbar per default aus.
{
ScrollBar::Show(sal_True);
}
}
}
+
+/* vim: set noet sw=4 ts=4: */
diff --git a/main/sw/source/ui/uiview/view.src
b/main/sw/source/ui/uiview/view.src
index 1605bd5d42..b858b68f63 100644
--- a/main/sw/source/ui/uiview/view.src
+++ b/main/sw/source/ui/uiview/view.src
@@ -19,8 +19,6 @@
*
*************************************************************/
-
-
#include <svx/svxids.hrc>
#include <svx/globlmn.hrc>
#include "view.hrc"