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
f1904906
Kaydet (Commit)
f1904906
authored
Eyl 08, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused function params
Change-Id: I0db4352ab7a14b4a62bebb650d1956c4a177b67f
üst
bd53697b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
41 deletions
+6
-41
tablerenderer.hxx
include/svtools/table/tablerenderer.hxx
+0
-23
gridtablerenderer.hxx
svtools/inc/table/gridtablerenderer.hxx
+0
-3
gridtablerenderer.cxx
svtools/source/table/gridtablerenderer.cxx
+3
-9
tablecontrol_impl.cxx
svtools/source/table/tablecontrol_impl.cxx
+1
-1
tabledatawindow.cxx
svtools/source/table/tabledatawindow.cxx
+2
-5
No files found.
include/svtools/table/tablerenderer.hxx
Dosyayı görüntüle @
f1904906
...
...
@@ -221,22 +221,6 @@ namespace svt { namespace table
/** checks whether a given cell content fits into a given target area on a given device.
@param i_colPos
denotes the column which the cell content would be painted into. Your renderer implementation
would only need this parameter if rendering is done differently for different columns.
@param i_rowPos
denotes the row which the cell content would be painted into. Your renderer implementation
would only need this parameter if rendering is done differently for different rows.
@param i_active
is <TRUE/> if and only if the renderer should assume the cell content would be painted for the active
cell.
@param i_selected
is <TRUE/> if and only if the renderer should assume the cell content would be painted for a selected
cell.
@param i_targetDevice
denotes the target device for the assumed rendering operation
...
...
@@ -249,8 +233,6 @@ namespace svt { namespace table
*/
virtual
bool
FitsIntoCell
(
::
com
::
sun
::
star
::
uno
::
Any
const
&
i_cellContent
,
ColPos
const
i_colPos
,
RowPos
const
i_rowPos
,
bool
const
i_active
,
bool
const
i_selected
,
OutputDevice
&
i_targetDevice
,
Rectangle
const
&
i_targetArea
)
const
=
0
;
...
...
@@ -258,10 +240,6 @@ namespace svt { namespace table
@param i_cellValue
the value for which an attempt for a string conversion should be made
@param i_colPos
the column position of the cell in question
@param i_rowPos
the row position of the cell in question
@param o_cellString
the cell content, formatted as string
@return
...
...
@@ -269,7 +247,6 @@ namespace svt { namespace table
*/
virtual
bool
GetFormattedCellString
(
::
com
::
sun
::
star
::
uno
::
Any
const
&
i_cellValue
,
ColPos
const
i_colPos
,
RowPos
const
i_rowPos
,
OUString
&
o_cellString
)
const
=
0
;
...
...
svtools/inc/table/gridtablerenderer.hxx
Dosyayı görüntüle @
f1904906
...
...
@@ -87,13 +87,10 @@ namespace svt { namespace table
virtual
void
HideCellCursor
(
vcl
::
Window
&
_rView
,
const
Rectangle
&
_rCursorRect
)
SAL_OVERRIDE
;
virtual
bool
FitsIntoCell
(
::
com
::
sun
::
star
::
uno
::
Any
const
&
i_cellContent
,
ColPos
const
i_colPos
,
RowPos
const
i_rowPos
,
bool
const
i_active
,
bool
const
i_selected
,
OutputDevice
&
i_targetDevice
,
Rectangle
const
&
i_targetArea
)
const
SAL_OVERRIDE
;
virtual
bool
GetFormattedCellString
(
::
com
::
sun
::
star
::
uno
::
Any
const
&
i_cellValue
,
ColPos
const
i_colPos
,
RowPos
const
i_rowPos
,
OUString
&
o_cellString
)
const
SAL_OVERRIDE
;
...
...
svtools/source/table/gridtablerenderer.cxx
Dosyayı görüntüle @
f1904906
...
...
@@ -558,8 +558,8 @@ namespace svt { namespace table
}
bool
GridTableRenderer
::
FitsIntoCell
(
Any
const
&
i_cellContent
,
ColPos
const
i_colPos
,
RowPos
const
i_rowPos
,
bool
const
i_active
,
bool
const
i_selected
,
OutputDevice
&
i_targetDevice
,
Rectangle
const
&
i_targetArea
)
const
bool
GridTableRenderer
::
FitsIntoCell
(
Any
const
&
i_cellContent
,
OutputDevice
&
i_targetDevice
,
Rectangle
const
&
i_targetArea
)
const
{
if
(
!
i_cellContent
.
hasValue
()
)
return
true
;
...
...
@@ -593,20 +593,14 @@ namespace svt { namespace table
if
(
nTextWidth
>
aTargetArea
.
GetWidth
()
)
return
false
;
OSL_UNUSED
(
i_active
);
OSL_UNUSED
(
i_selected
);
OSL_UNUSED
(
i_rowPos
);
OSL_UNUSED
(
i_colPos
);
return
true
;
}
bool
GridTableRenderer
::
GetFormattedCellString
(
Any
const
&
i_cellValue
,
ColPos
const
i_colPos
,
RowPos
const
i_rowPos
,
OUString
&
o_cellString
)
const
bool
GridTableRenderer
::
GetFormattedCellString
(
Any
const
&
i_cellValue
,
OUString
&
o_cellString
)
const
{
o_cellString
=
m_pImpl
->
aStringConverter
.
convertToString
(
i_cellValue
);
OSL_UNUSED
(
i_colPos
);
OSL_UNUSED
(
i_rowPos
);
return
true
;
}
...
...
svtools/source/table/tablecontrol_impl.cxx
Dosyayı görüntüle @
f1904906
...
...
@@ -2041,7 +2041,7 @@ namespace svt { namespace table
m_pModel
->
getCellContent
(
i_col
,
i_row
,
aCellValue
);
OUString
sCellStringContent
;
m_pModel
->
getRenderer
()
->
GetFormattedCellString
(
aCellValue
,
i_col
,
i_row
,
sCellStringContent
);
m_pModel
->
getRenderer
()
->
GetFormattedCellString
(
aCellValue
,
sCellStringContent
);
return
sCellStringContent
;
}
...
...
svtools/source/table/tabledatawindow.cxx
Dosyayı görüntüle @
f1904906
...
...
@@ -97,19 +97,16 @@ namespace svt { namespace table
pTableModel
->
getCellContent
(
hitCol
,
hitRow
,
aCellToolTip
);
// use the cell content as tool tip only if it doesn't fit into the cell.
bool
const
activeCell
=
(
hitRow
==
m_rTableControl
.
getCurrentRow
()
)
&&
(
hitCol
==
m_rTableControl
.
getCurrentColumn
()
);
bool
const
selectedCell
=
m_rTableControl
.
isRowSelected
(
hitRow
);
Rectangle
const
aWindowRect
(
Point
(
0
,
0
),
GetOutputSizePixel
()
);
TableCellGeometry
const
aCell
(
m_rTableControl
,
aWindowRect
,
hitCol
,
hitRow
);
Rectangle
const
aCellRect
(
aCell
.
getRect
()
);
PTableRenderer
const
pRenderer
=
pTableModel
->
getRenderer
();
if
(
pRenderer
->
FitsIntoCell
(
aCellToolTip
,
hitCol
,
hitRow
,
activeCell
,
selectedCell
,
*
this
,
aCellRect
)
)
if
(
pRenderer
->
FitsIntoCell
(
aCellToolTip
,
*
this
,
aCellRect
)
)
aCellToolTip
.
clear
();
}
pTableModel
->
getRenderer
()
->
GetFormattedCellString
(
aCellToolTip
,
hitCol
,
hitRow
,
sHelpText
);
pTableModel
->
getRenderer
()
->
GetFormattedCellString
(
aCellToolTip
,
sHelpText
);
if
(
sHelpText
.
indexOf
(
'\n'
)
>=
0
)
nHelpStyle
=
QuickHelpFlags
::
TipStyleBalloon
;
...
...
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