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
ff9fad57
Kaydet (Commit)
ff9fad57
authored
Şub 11, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#34065 remove unused InsertBlockMark and PAINT_INVERT flag
üst
9b0001fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
93 deletions
+3
-93
global.hxx
sc/inc/global.hxx
+3
-4
tabview.hxx
sc/source/ui/inc/tabview.hxx
+0
-3
tabview3.cxx
sc/source/ui/view/tabview3.cxx
+0
-83
tabvwsh5.cxx
sc/source/ui/view/tabvwsh5.cxx
+0
-3
No files found.
sc/inc/global.hxx
Dosyayı görüntüle @
ff9fad57
...
@@ -165,10 +165,9 @@ const SCSIZE PIVOT_MAXPAGEFIELD = 10;
...
@@ -165,10 +165,9 @@ const SCSIZE PIVOT_MAXPAGEFIELD = 10;
#define PAINT_TOP 2
#define PAINT_TOP 2
#define PAINT_LEFT 4
#define PAINT_LEFT 4
#define PAINT_EXTRAS 8
#define PAINT_EXTRAS 8
#define PAINT_INVERT 16
#define PAINT_MARKS 16
#define PAINT_MARKS 32
#define PAINT_OBJECTS 32
#define PAINT_OBJECTS 64
#define PAINT_SIZE 64
#define PAINT_SIZE 128
#define PAINT_ALL ( PAINT_GRID | PAINT_TOP | PAINT_LEFT | PAINT_EXTRAS | PAINT_OBJECTS | PAINT_SIZE )
#define PAINT_ALL ( PAINT_GRID | PAINT_TOP | PAINT_LEFT | PAINT_EXTRAS | PAINT_OBJECTS | PAINT_SIZE )
...
...
sc/source/ui/inc/tabview.hxx
Dosyayı görüntüle @
ff9fad57
...
@@ -402,9 +402,6 @@ public:
...
@@ -402,9 +402,6 @@ public:
// Zeichnen
// Zeichnen
void
InvertBlockMark
(
SCCOL
nBlockStartX
,
SCROW
nBlockStartY
,
SCCOL
nBlockEndX
,
SCROW
nBlockEndY
);
void
PaintArea
(
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nEndCol
,
SCROW
nEndRow
,
void
PaintArea
(
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nEndCol
,
SCROW
nEndRow
,
ScUpdateMode
eMode
=
SC_UPDATE_ALL
);
ScUpdateMode
eMode
=
SC_UPDATE_ALL
);
...
...
sc/source/ui/view/tabview3.cxx
Dosyayı görüntüle @
ff9fad57
...
@@ -2220,89 +2220,6 @@ void ScTabView::PaintLeftArea( SCROW nStartRow, SCROW nEndRow )
...
@@ -2220,89 +2220,6 @@ void ScTabView::PaintLeftArea( SCROW nStartRow, SCROW nEndRow )
}
}
}
}
// InvertBlockMark - Block invertieren
void
ScTabView
::
InvertBlockMark
(
SCCOL
nStartX
,
SCROW
nStartY
,
SCCOL
nEndX
,
SCROW
nEndY
)
{
if
(
!
aViewData
.
IsActive
()
)
return
;
// invertiert wird nur auf aktiver View
PutInOrder
(
nStartX
,
nEndX
);
PutInOrder
(
nStartY
,
nEndY
);
ScMarkData
&
rMark
=
aViewData
.
GetMarkData
();
ScDocShell
*
pDocSh
=
aViewData
.
GetDocShell
();
ScDocument
*
pDoc
=
pDocSh
->
GetDocument
();
SCTAB
nTab
=
aViewData
.
GetTabNo
();
if
(
pDocSh
->
GetLockCount
()
)
{
// if paint is locked, avoid repeated inverting
// add repaint areas to paint lock data instead
pDocSh
->
PostPaint
(
nStartX
,
nStartY
,
nTab
,
nEndX
,
nEndY
,
nTab
,
PAINT_GRID
);
return
;
}
BOOL
bSingle
=
rMark
.
IsMultiMarked
();
BOOL
bMerge
=
pDoc
->
HasAttrib
(
nStartX
,
nStartY
,
nTab
,
nEndX
,
nEndY
,
nTab
,
HASATTR_MERGED
|
HASATTR_OVERLAPPED
);
USHORT
i
;
if
(
bMerge
||
bSingle
)
{
for
(
i
=
0
;
i
<
4
;
i
++
)
if
(
pGridWin
[
i
])
if
(
pGridWin
[
i
]
->
IsVisible
())
pGridWin
[
i
]
->
InvertSimple
(
nStartX
,
nStartY
,
nEndX
,
nEndY
,
bMerge
,
bBlockNeg
);
}
else
{
for
(
i
=
0
;
i
<
4
;
i
++
)
if
(
pGridWin
[
i
])
if
(
pGridWin
[
i
]
->
IsVisible
())
{
ScSplitPos
ePos
=
(
ScSplitPos
)
i
;
Point
aStartPoint
=
aViewData
.
GetScrPos
(
nStartX
,
nStartY
,
ePos
);
Point
aEndPoint
=
aViewData
.
GetScrPos
(
nEndX
+
1
,
nEndY
+
1
,
ePos
);
if
(
pDoc
->
IsLayoutRTL
(
nTab
)
)
{
long
nTemp
=
aStartPoint
.
X
();
aStartPoint
.
X
()
=
aEndPoint
.
X
()
+
1
;
// +1 - excluding start of nEndX+1
aEndPoint
.
X
()
=
nTemp
;
}
else
aEndPoint
.
X
()
-=
1
;
aEndPoint
.
Y
()
-=
1
;
if
(
aEndPoint
.
X
()
>=
aStartPoint
.
X
()
&&
aEndPoint
.
Y
()
>=
aStartPoint
.
Y
()
)
{
MapMode
aOld
=
pGridWin
[
ePos
]
->
GetMapMode
();
pGridWin
[
ePos
]
->
SetMapMode
(
MAP_PIXEL
);
pGridWin
[
ePos
]
->
Invert
(
Rectangle
(
aStartPoint
,
aEndPoint
),
INVERT_HIGHLIGHT
);
pGridWin
[
ePos
]
->
SetMapMode
(
aOld
);
pGridWin
[
ePos
]
->
CheckInverted
();
}
}
}
//
// wenn Controls betroffen, neu malen
//
BOOL
bHide
=
TRUE
;
// wird Teil der Markierung aufgehoben ?
if
(
rMark
.
IsMarked
())
{
ScRange
aMarkRange
;
rMark
.
GetMarkArea
(
aMarkRange
);
if
(
aMarkRange
.
aStart
.
Col
()
<=
nStartX
&&
aMarkRange
.
aEnd
.
Col
()
>=
nEndX
&&
aMarkRange
.
aStart
.
Row
()
<=
nStartY
&&
aMarkRange
.
aEnd
.
Row
()
>=
nEndY
)
{
bHide
=
FALSE
;
// der ganze Bereich ist markiert
}
}
}
BOOL
ScTabView
::
PaintExtras
()
BOOL
ScTabView
::
PaintExtras
()
{
{
BOOL
bRet
=
FALSE
;
BOOL
bRet
=
FALSE
;
...
...
sc/source/ui/view/tabvwsh5.cxx
Dosyayı görüntüle @
ff9fad57
...
@@ -175,9 +175,6 @@ void ScTabViewShell::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
...
@@ -175,9 +175,6 @@ void ScTabViewShell::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
PaintLeftArea
(
pHint
->
GetStartRow
(),
pHint
->
GetEndRow
()
);
PaintLeftArea
(
pHint
->
GetStartRow
(),
pHint
->
GetEndRow
()
);
if
(
nParts
&
PAINT_TOP
)
if
(
nParts
&
PAINT_TOP
)
PaintTopArea
(
pHint
->
GetStartCol
(),
pHint
->
GetEndCol
()
);
PaintTopArea
(
pHint
->
GetStartCol
(),
pHint
->
GetEndCol
()
);
if
(
nParts
&
PAINT_INVERT
)
InvertBlockMark
(
pHint
->
GetStartCol
(),
pHint
->
GetStartRow
(),
pHint
->
GetEndCol
(),
pHint
->
GetEndRow
()
);
// #i84689# call UpdateAllOverlays here instead of in ScTabView::PaintArea
// #i84689# call UpdateAllOverlays here instead of in ScTabView::PaintArea
if
(
nParts
&
(
PAINT_LEFT
|
PAINT_TOP
))
// only if widths or heights changed
if
(
nParts
&
(
PAINT_LEFT
|
PAINT_TOP
))
// only if widths or heights changed
...
...
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