Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d4c265f2
Kaydet (Commit)
d4c265f2
authored
Ock 03, 2012
tarafından
Tim Hardeck
Kaydeden (comit)
Jan Holesovsky
Ock 09, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
translated German comments in valueset.cxx
Translated German comments in svtools/source/control/valueset.cxx.
üst
2fa19ed7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
53 deletions
+48
-53
valueset.cxx
svtools/source/control/valueset.cxx
+48
-53
No files found.
svtools/source/control/valueset.cxx
Dosyayı görüntüle @
d4c265f2
...
@@ -202,7 +202,7 @@ void ValueSet::ImplInitScrollBar()
...
@@ -202,7 +202,7 @@ void ValueSet::ImplInitScrollBar()
}
}
else
else
{
{
//
Wegen Einstellungsaenderungen passen wir hier die Breite an
//
adapt the width because of the changed settings
long
nScrBarWidth
=
GetSettings
().
GetStyleSettings
().
GetScrollBarSize
();
long
nScrBarWidth
=
GetSettings
().
GetStyleSettings
().
GetScrollBarSize
();
mpScrBar
->
SetPosSizePixel
(
0
,
0
,
nScrBarWidth
,
0
,
WINDOW_POSSIZE_WIDTH
);
mpScrBar
->
SetPosSizePixel
(
0
,
0
,
nScrBarWidth
,
0
,
WINDOW_POSSIZE_WIDTH
);
}
}
...
@@ -347,21 +347,20 @@ void ValueSet::Format()
...
@@ -347,21 +347,20 @@ void ValueSet::Format()
long
nNoneSpace
;
long
nNoneSpace
;
ScrollBar
*
pDelScrBar
=
NULL
;
ScrollBar
*
pDelScrBar
=
NULL
;
//
Scrolling beruecksichtigen
//
consider the scrolling
if
(
nStyle
&
WB_VSCROLL
)
if
(
nStyle
&
WB_VSCROLL
)
ImplInitScrollBar
();
ImplInitScrollBar
();
else
else
{
{
if
(
mpScrBar
)
if
(
mpScrBar
)
{
{
// ScrollBar erst spaeter zerstoeren, damit keine rekursiven
// delete ScrollBar not until later, to prevent recursive calls
// Aufrufe entstehen koennen
pDelScrBar
=
mpScrBar
;
pDelScrBar
=
mpScrBar
;
mpScrBar
=
NULL
;
mpScrBar
=
NULL
;
}
}
}
}
//
Item-Offset berechnen
//
calculate item offset
if
(
nStyle
&
WB_ITEMBORDER
)
if
(
nStyle
&
WB_ITEMBORDER
)
{
{
if
(
nStyle
&
WB_DOUBLEBORDER
)
if
(
nStyle
&
WB_DOUBLEBORDER
)
...
@@ -373,7 +372,7 @@ void ValueSet::Format()
...
@@ -373,7 +372,7 @@ void ValueSet::Format()
nOff
=
0
;
nOff
=
0
;
nSpace
=
mnSpacing
;
nSpace
=
mnSpacing
;
//
Groesse beruecksichtigen, wenn NameField vorhanden
//
consider size, if NameField does exist
if
(
nStyle
&
WB_NAMEFIELD
)
if
(
nStyle
&
WB_NAMEFIELD
)
{
{
mnTextOffset
=
aWinSize
.
Height
()
-
nTxtHeight
-
NAME_OFFSET
;
mnTextOffset
=
aWinSize
.
Height
()
-
nTxtHeight
-
NAME_OFFSET
;
...
@@ -388,7 +387,7 @@ void ValueSet::Format()
...
@@ -388,7 +387,7 @@ void ValueSet::Format()
else
else
mnTextOffset
=
0
;
mnTextOffset
=
0
;
//
Offset und Groesse beruecksichtigen, wenn NoneField vorhanden
//
consider offset and size, if NoneField does exist
if
(
nStyle
&
WB_NONEFIELD
)
if
(
nStyle
&
WB_NONEFIELD
)
{
{
nNoneHeight
=
nTxtHeight
+
nOff
;
nNoneHeight
=
nTxtHeight
+
nOff
;
...
@@ -408,12 +407,12 @@ void ValueSet::Format()
...
@@ -408,12 +407,12 @@ void ValueSet::Format()
}
}
}
}
//
Breite vom ScrollBar berechnen
//
calculate ScrollBar width
long
nScrBarWidth
=
0
;
long
nScrBarWidth
=
0
;
if
(
mpScrBar
)
if
(
mpScrBar
)
nScrBarWidth
=
mpScrBar
->
GetSizePixel
().
Width
()
+
SCRBAR_OFFSET
;
nScrBarWidth
=
mpScrBar
->
GetSizePixel
().
Width
()
+
SCRBAR_OFFSET
;
//
Spaltenanzahl berechnen
//
calculate number of columns
if
(
!
mnUserCols
)
if
(
!
mnUserCols
)
{
{
if
(
mnUserItemWidth
)
if
(
mnUserItemWidth
)
...
@@ -428,7 +427,7 @@ void ValueSet::Format()
...
@@ -428,7 +427,7 @@ void ValueSet::Format()
else
else
mnCols
=
mnUserCols
;
mnCols
=
mnUserCols
;
//
Zeilenanzahl berechnen
//
calculate number of rows
mbScroll
=
sal_False
;
mbScroll
=
sal_False
;
mnLines
=
(
long
)
mpImpl
->
mpItemList
->
size
()
/
mnCols
;
mnLines
=
(
long
)
mpImpl
->
mpItemList
->
size
()
/
mnCols
;
if
(
mpImpl
->
mpItemList
->
size
()
%
mnCols
)
if
(
mpImpl
->
mpItemList
->
size
()
%
mnCols
)
...
@@ -457,7 +456,7 @@ void ValueSet::Format()
...
@@ -457,7 +456,7 @@ void ValueSet::Format()
mnFirstLine
=
(
sal_uInt16
)(
mnLines
-
mnVisLines
);
mnFirstLine
=
(
sal_uInt16
)(
mnLines
-
mnVisLines
);
}
}
//
Itemgroessen berechnen
//
calculate item size
long
nColSpace
=
(
mnCols
-
1
)
*
nSpace
;
long
nColSpace
=
(
mnCols
-
1
)
*
nSpace
;
long
nLineSpace
=
((
mnVisLines
-
1
)
*
nSpace
)
+
nNoneSpace
;
long
nLineSpace
=
((
mnVisLines
-
1
)
*
nSpace
)
+
nNoneSpace
;
long
nItemWidth
;
long
nItemWidth
;
...
@@ -487,7 +486,7 @@ void ValueSet::Format()
...
@@ -487,7 +486,7 @@ void ValueSet::Format()
maVirDev
.
SetBackground
(
GetBackground
()
);
maVirDev
.
SetBackground
(
GetBackground
()
);
maVirDev
.
SetOutputSizePixel
(
aWinSize
,
sal_True
);
maVirDev
.
SetOutputSizePixel
(
aWinSize
,
sal_True
);
//
Bei zu kleinen Items machen wir nicht
s
//
nothing is changed in case of too small item
s
long
nMinHeight
=
2
;
long
nMinHeight
=
2
;
if
(
nStyle
&
WB_ITEMBORDER
)
if
(
nStyle
&
WB_ITEMBORDER
)
nMinHeight
=
4
;
nMinHeight
=
4
;
...
@@ -513,15 +512,15 @@ void ValueSet::Format()
...
@@ -513,15 +512,15 @@ void ValueSet::Format()
}
}
else
else
{
{
//
Frame-Style ermitteln
//
determine Frame-Style
if
(
nStyle
&
WB_DOUBLEBORDER
)
if
(
nStyle
&
WB_DOUBLEBORDER
)
mnFrameStyle
=
FRAME_DRAW_DOUBLEIN
;
mnFrameStyle
=
FRAME_DRAW_DOUBLEIN
;
else
else
mnFrameStyle
=
FRAME_DRAW_IN
;
mnFrameStyle
=
FRAME_DRAW_IN
;
//
Selektionsfarben und -breiten ermitteln
//
determine selected color and width
//
Gegebenenfalls die Farben anpassen, damit man die Selektion besser
//
if necessary change the colors, to make the selection
//
erkennen kann
//
better detectable
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
Color
aHighColor
(
rStyleSettings
.
GetHighlightColor
()
);
Color
aHighColor
(
rStyleSettings
.
GetHighlightColor
()
);
if
(
((
aHighColor
.
GetRed
()
>
0x80
)
||
(
aHighColor
.
GetGreen
()
>
0x80
)
||
if
(
((
aHighColor
.
GetRed
()
>
0x80
)
||
(
aHighColor
.
GetGreen
()
>
0x80
)
||
...
@@ -532,15 +531,14 @@ void ValueSet::Format()
...
@@ -532,15 +531,14 @@ void ValueSet::Format()
else
else
mbBlackSel
=
sal_False
;
mbBlackSel
=
sal_False
;
// Wenn die Items groesser sind, dann die Selektion doppelt so breit
// draw the selection with double width if the items are bigger
// zeichnen
if
(
(
nStyle
&
WB_DOUBLEBORDER
)
&&
if
(
(
nStyle
&
WB_DOUBLEBORDER
)
&&
((
nItemWidth
>=
25
)
&&
(
nItemHeight
>=
20
))
)
((
nItemWidth
>=
25
)
&&
(
nItemHeight
>=
20
))
)
mbDoubleSel
=
sal_True
;
mbDoubleSel
=
sal_True
;
else
else
mbDoubleSel
=
sal_False
;
mbDoubleSel
=
sal_False
;
//
C
alculate offsets
//
c
alculate offsets
long
nStartX
;
long
nStartX
;
long
nStartY
;
long
nStartY
;
if
(
mbFullMode
)
if
(
mbFullMode
)
...
@@ -556,12 +554,12 @@ void ValueSet::Format()
...
@@ -556,12 +554,12 @@ void ValueSet::Format()
nStartY
=
0
;
nStartY
=
0
;
}
}
//
Items berechnen und zeichnen
//
calculate and draw items
maVirDev
.
SetLineColor
();
maVirDev
.
SetLineColor
();
long
x
=
nStartX
;
long
x
=
nStartX
;
long
y
=
nStartY
;
long
y
=
nStartY
;
//
NoSelection-Field erzeugen und anzeigen
//
create NoSelection field and show it
if
(
nStyle
&
WB_NONEFIELD
)
if
(
nStyle
&
WB_NONEFIELD
)
{
{
if
(
!
mpNoneItem
)
if
(
!
mpNoneItem
)
...
@@ -636,7 +634,7 @@ void ValueSet::Format()
...
@@ -636,7 +634,7 @@ void ValueSet::Format()
}
}
}
}
//
ScrollBar anordnen, Werte setzen und anzeigen
//
arrange ScrollBar, set values and show it
if
(
mpScrBar
)
if
(
mpScrBar
)
{
{
Point
aPos
(
aWinSize
.
Width
()
-
nScrBarWidth
+
SCRBAR_OFFSET
,
0
);
Point
aPos
(
aWinSize
.
Width
()
-
nScrBarWidth
+
SCRBAR_OFFSET
,
0
);
...
@@ -659,10 +657,10 @@ void ValueSet::Format()
...
@@ -659,10 +657,10 @@ void ValueSet::Format()
}
}
}
}
//
Jetzt haben wir formatiert und warten auf das naechste
//
waiting for the next since the formatting is finished
mbFormat
=
sal_False
;
mbFormat
=
sal_False
;
//
ScrollBar loeschen
//
delete ScrollBar
delete
pDelScrBar
;
delete
pDelScrBar
;
}
}
...
@@ -677,7 +675,7 @@ void ValueSet::ImplDrawItemText( const XubString& rText )
...
@@ -677,7 +675,7 @@ void ValueSet::ImplDrawItemText( const XubString& rText )
long
nTxtWidth
=
GetTextWidth
(
rText
);
long
nTxtWidth
=
GetTextWidth
(
rText
);
long
nTxtOffset
=
mnTextOffset
;
long
nTxtOffset
=
mnTextOffset
;
//
Rechteck loeschen und Text ausgeben
//
delete rectangle and show text
if
(
GetStyle
()
&
WB_FLATVALUESET
)
if
(
GetStyle
()
&
WB_FLATVALUESET
)
{
{
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
...
@@ -741,7 +739,7 @@ void ValueSet::ImplDrawSelect()
...
@@ -741,7 +739,7 @@ void ValueSet::ImplDrawSelect()
if
(
pItem
->
maRect
.
IsEmpty
()
)
if
(
pItem
->
maRect
.
IsEmpty
()
)
continue
;
continue
;
//
Selection male
n
//
draw selectio
n
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
Rectangle
aRect
=
pItem
->
maRect
;
Rectangle
aRect
=
pItem
->
maRect
;
Control
::
SetFillColor
();
Control
::
SetFillColor
();
...
@@ -770,7 +768,7 @@ void ValueSet::ImplDrawSelect()
...
@@ -770,7 +768,7 @@ void ValueSet::ImplDrawSelect()
}
}
}
}
//
Selectionsausgabe festlegen
//
specify selection output
WinBits
nStyle
=
GetStyle
();
WinBits
nStyle
=
GetStyle
();
if
(
nStyle
&
WB_MENUSTYLEVALUESET
)
if
(
nStyle
&
WB_MENUSTYLEVALUESET
)
{
{
...
@@ -912,15 +910,15 @@ void ValueSet::ImplHighlightItem( sal_uInt16 nItemId, sal_Bool bIsSelection )
...
@@ -912,15 +910,15 @@ void ValueSet::ImplHighlightItem( sal_uInt16 nItemId, sal_Bool bIsSelection )
{
{
if
(
mnHighItemId
!=
nItemId
)
if
(
mnHighItemId
!=
nItemId
)
{
{
//
Alten merken, um vorherige Selektion zu entferne
n
//
remember the old item to delete the previous selectio
n
sal_uInt16
nOldItem
=
mnHighItemId
;
sal_uInt16
nOldItem
=
mnHighItemId
;
mnHighItemId
=
nItemId
;
mnHighItemId
=
nItemId
;
//
Wenn keiner selektiert ist, dann Selektion nicht malen
//
don't draw the selection if nothing is selected
if
(
!
bIsSelection
&&
mbNoSelection
)
if
(
!
bIsSelection
&&
mbNoSelection
)
mbDrawSelection
=
sal_False
;
mbDrawSelection
=
sal_False
;
//
Neu ausgeben und alte Selection wegnehmen
//
remove the old selection and draw the new one
ImplHideSelect
(
nOldItem
);
ImplHideSelect
(
nOldItem
);
ImplDrawSelect
();
ImplDrawSelect
();
mbDrawSelection
=
sal_True
;
mbDrawSelection
=
sal_True
;
...
@@ -958,7 +956,7 @@ void ValueSet::ImplDraw()
...
@@ -958,7 +956,7 @@ void ValueSet::ImplDraw()
else
else
DrawOutDev
(
aDefPos
,
aSize
,
aDefPos
,
aSize
,
maVirDev
);
DrawOutDev
(
aDefPos
,
aSize
,
aDefPos
,
aSize
,
maVirDev
);
//
Trennlinie zum Namefield zeichnen
//
draw parting line to the Namefield
if
(
GetStyle
()
&
WB_NAMEFIELD
)
if
(
GetStyle
()
&
WB_NAMEFIELD
)
{
{
if
(
!
(
GetStyle
()
&
WB_FLATVALUESET
)
)
if
(
!
(
GetStyle
()
&
WB_FLATVALUESET
)
)
...
@@ -1055,9 +1053,8 @@ size_t ValueSet::ImplGetItem( const Point& rPos, sal_Bool bMove ) const
...
@@ -1055,9 +1053,8 @@ size_t ValueSet::ImplGetItem( const Point& rPos, sal_Bool bMove ) const
}
}
}
}
// Wenn Spacing gesetzt ist, wird der vorher selektierte
// return the previously selected item if spacing is set and
// Eintrag zurueckgegeben, wenn die Maus noch nicht das Fenster
// the mouse hasn't left the window yet
// verlassen hat
if
(
bMove
&&
mnSpacing
&&
mnHighItemId
)
if
(
bMove
&&
mnSpacing
&&
mnHighItemId
)
{
{
return
GetItemPos
(
mnHighItemId
);
return
GetItemPos
(
mnHighItemId
);
...
@@ -1206,7 +1203,7 @@ void ValueSet::ImplEndTracking( const Point& rPos, sal_Bool bCancel )
...
@@ -1206,7 +1203,7 @@ void ValueSet::ImplEndTracking( const Point& rPos, sal_Bool bCancel )
{
{
ValueSetItem
*
pItem
;
ValueSetItem
*
pItem
;
//
Bei Abbruch, den alten Status wieder herstelle
n
//
restore the old status in case of terminatio
n
if
(
bCancel
)
if
(
bCancel
)
pItem
=
NULL
;
pItem
=
NULL
;
else
else
...
@@ -1275,7 +1272,7 @@ void ValueSet::MouseButtonDown( const MouseEvent& rMEvt )
...
@@ -1275,7 +1272,7 @@ void ValueSet::MouseButtonDown( const MouseEvent& rMEvt )
void
ValueSet
::
MouseButtonUp
(
const
MouseEvent
&
rMEvt
)
void
ValueSet
::
MouseButtonUp
(
const
MouseEvent
&
rMEvt
)
{
{
//
Wegen
SelectionMode
//
because of
SelectionMode
if
(
rMEvt
.
IsLeft
()
&&
mbSelection
)
if
(
rMEvt
.
IsLeft
()
&&
mbSelection
)
ImplEndTracking
(
rMEvt
.
GetPosPixel
(),
sal_False
);
ImplEndTracking
(
rMEvt
.
GetPosPixel
(),
sal_False
);
else
else
...
@@ -1286,7 +1283,7 @@ void ValueSet::MouseButtonUp( const MouseEvent& rMEvt )
...
@@ -1286,7 +1283,7 @@ void ValueSet::MouseButtonUp( const MouseEvent& rMEvt )
void
ValueSet
::
MouseMove
(
const
MouseEvent
&
rMEvt
)
void
ValueSet
::
MouseMove
(
const
MouseEvent
&
rMEvt
)
{
{
//
Wegen
SelectionMode
//
because of
SelectionMode
if
(
mbSelection
||
(
GetStyle
()
&
WB_MENUSTYLEVALUESET
)
)
if
(
mbSelection
||
(
GetStyle
()
&
WB_MENUSTYLEVALUESET
)
)
ImplTracking
(
rMEvt
.
GetPosPixel
(),
sal_False
);
ImplTracking
(
rMEvt
.
GetPosPixel
(),
sal_False
);
Control
::
MouseMove
(
rMEvt
);
Control
::
MouseMove
(
rMEvt
);
...
@@ -1857,7 +1854,7 @@ void ValueSet::RemoveItem( sal_uInt16 nItemId )
...
@@ -1857,7 +1854,7 @@ void ValueSet::RemoveItem( sal_uInt16 nItemId )
mpImpl
->
mpItemList
->
erase
(
it
);
mpImpl
->
mpItemList
->
erase
(
it
);
}
}
//
Variablen zuruecksetzen
//
reset variables
if
(
(
mnHighItemId
==
nItemId
)
||
(
mnSelItemId
==
nItemId
)
)
if
(
(
mnHighItemId
==
nItemId
)
||
(
mnSelItemId
==
nItemId
)
)
{
{
mnCurCol
=
0
;
mnCurCol
=
0
;
...
@@ -1878,7 +1875,7 @@ void ValueSet::Clear()
...
@@ -1878,7 +1875,7 @@ void ValueSet::Clear()
{
{
ImplDeleteItems
();
ImplDeleteItems
();
//
Variablen zuruecksetzen
//
reset variables
mnFirstLine
=
0
;
mnFirstLine
=
0
;
mnCurCol
=
0
;
mnCurCol
=
0
;
mnOldItemId
=
0
;
mnOldItemId
=
0
;
...
@@ -2029,7 +2026,7 @@ void ValueSet::SelectItem( sal_uInt16 nItemId )
...
@@ -2029,7 +2026,7 @@ void ValueSet::SelectItem( sal_uInt16 nItemId )
bNewOut
=
sal_False
;
bNewOut
=
sal_False
;
bNewLine
=
sal_False
;
bNewLine
=
sal_False
;
//
Gegebenenfalls in den sichtbaren Bereich scrollen
//
if necessary scroll to the visible area
if
(
mbScroll
&&
nItemId
)
if
(
mbScroll
&&
nItemId
)
{
{
sal_uInt16
nNewLine
=
(
sal_uInt16
)(
nItemPos
/
mnCols
);
sal_uInt16
nNewLine
=
(
sal_uInt16
)(
nItemPos
/
mnCols
);
...
@@ -2049,14 +2046,13 @@ void ValueSet::SelectItem( sal_uInt16 nItemId )
...
@@ -2049,14 +2046,13 @@ void ValueSet::SelectItem( sal_uInt16 nItemId )
{
{
if
(
bNewLine
)
if
(
bNewLine
)
{
{
// Falls sich der sichtbare Bereich geaendert hat,
// redraw everything if the visible area has changed
// alles neu ausgeben
mbFormat
=
sal_True
;
mbFormat
=
sal_True
;
ImplDraw
();
ImplDraw
();
}
}
else
else
{
{
//
alte Selection wegnehmen und neue ausgeben
//
remove old selection and draw the new one
ImplHideSelect
(
nOldItem
);
ImplHideSelect
(
nOldItem
);
ImplDrawSelect
();
ImplDrawSelect
();
}
}
...
@@ -2356,25 +2352,24 @@ sal_Bool ValueSet::StartDrag( const CommandEvent& rCEvt, Region& rRegion )
...
@@ -2356,25 +2352,24 @@ sal_Bool ValueSet::StartDrag( const CommandEvent& rCEvt, Region& rRegion )
if
(
rCEvt
.
GetCommand
()
!=
COMMAND_STARTDRAG
)
if
(
rCEvt
.
GetCommand
()
!=
COMMAND_STARTDRAG
)
return
sal_False
;
return
sal_False
;
//
Gegebenenfalls eine vorhandene Aktion abbreche
n
//
if necessary abort an existing actio
n
EndSelection
();
EndSelection
();
// Testen, ob angeklickte Seite selektiert ist. Falls dies nicht
// Check out if the the clicked on page is selected. If this is not the
// der Fall ist, setzen wir ihn als aktuellen Eintrag. Falls Drag and
// case set it as the current item. We only check mouse actions since
// Drop auch mal ueber Tastatur ausgeloest werden kann, testen wir
// drag-and-drop can also be triggered by the keyboard
// dies nur bei einer Mausaktion.
sal_uInt16
nSelId
;
sal_uInt16
nSelId
;
if
(
rCEvt
.
IsMouseEvent
()
)
if
(
rCEvt
.
IsMouseEvent
()
)
nSelId
=
GetItemId
(
rCEvt
.
GetMousePosPixel
()
);
nSelId
=
GetItemId
(
rCEvt
.
GetMousePosPixel
()
);
else
else
nSelId
=
mnSelItemId
;
nSelId
=
mnSelItemId
;
//
Falls kein Eintrag angeklickt wurde, starten wir kein Dragging
//
don't activate dragging if no item was clicked on
if
(
!
nSelId
)
if
(
!
nSelId
)
return
sal_False
;
return
sal_False
;
//
Testen, ob Seite selektiertiert ist. Falls nicht, als aktuelle
//
Check out if the page was selected. If not set as current page and
//
Seite setzen und Select rufen
.
//
call select
.
if
(
nSelId
!=
mnSelItemId
)
if
(
nSelId
!=
mnSelItemId
)
{
{
SelectItem
(
nSelId
);
SelectItem
(
nSelId
);
...
@@ -2384,7 +2379,7 @@ sal_Bool ValueSet::StartDrag( const CommandEvent& rCEvt, Region& rRegion )
...
@@ -2384,7 +2379,7 @@ sal_Bool ValueSet::StartDrag( const CommandEvent& rCEvt, Region& rRegion )
Region
aRegion
;
Region
aRegion
;
//
Region zuweise
n
//
assign regio
n
rRegion
=
aRegion
;
rRegion
=
aRegion
;
return
sal_True
;
return
sal_True
;
...
@@ -2467,7 +2462,7 @@ Size ValueSet::CalcWindowSizePixel( const Size& rItemSize, sal_uInt16 nDesireCol
...
@@ -2467,7 +2462,7 @@ Size ValueSet::CalcWindowSizePixel( const Size& rItemSize, sal_uInt16 nDesireCol
aSize
.
Height
()
+=
8
;
aSize
.
Height
()
+=
8
;
}
}
//
Evt. ScrollBar-Breite aufaddieren
//
sum possible ScrollBar width
aSize
.
Width
()
+=
GetScrollWidth
();
aSize
.
Width
()
+=
GetScrollWidth
();
return
aSize
;
return
aSize
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment