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
1e29007c
Kaydet (Commit)
1e29007c
authored
Ara 06, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
No need to have RowData as a template
Change-Id: Id93b97b69d1f9d44e5e5314698e7a3a0790e51e3
üst
95d27f46
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
22 deletions
+19
-22
TableData.hxx
writerfilter/source/dmapper/TableData.hxx
+17
-20
TableManager.cxx
writerfilter/source/dmapper/TableManager.cxx
+1
-1
TableManager.hxx
writerfilter/source/dmapper/TableManager.hxx
+1
-1
No files found.
writerfilter/source/dmapper/TableData.hxx
Dosyayı görüntüle @
1e29007c
...
...
@@ -115,14 +115,12 @@ public:
bool
isOpen
()
const
{
return
mbOpen
;
}
};
template
<
typename
T
,
typename
PropertiesPointer
>
/**
Class to handle data of a table row.
*/
class
RowData
{
typedef
typename
CellData
<
T
,
PropertiesPointer
>::
Pointer_t
CellDataPointer_t
;
typedef
CellData
<
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
,
TablePropertyMapPtr
>::
Pointer_t
CellDataPointer_t
;
typedef
::
std
::
vector
<
CellDataPointer_t
>
Cells
;
/**
...
...
@@ -133,14 +131,14 @@ class RowData
/**
the properties of the row
*/
mutable
PropertiesPointe
r
mpProperties
;
mutable
TablePropertyMapPt
r
mpProperties
;
public
:
typedef
boost
::
shared_ptr
<
RowData
<
T
,
PropertiesPointer
>
>
Pointer_t
;
typedef
boost
::
shared_ptr
<
RowData
>
Pointer_t
;
RowData
()
{}
RowData
(
const
RowData
<
T
,
PropertiesPointer
>
&
rRowData
)
RowData
(
const
RowData
&
rRowData
)
:
mCells
(
rRowData
.
mCells
),
mpProperties
(
rRowData
.
mpProperties
)
{
}
...
...
@@ -154,14 +152,13 @@ public:
@param end the end handle of the cell
@param pProps the properties of the cell
*/
void
addCell
(
const
T
&
start
,
PropertiesPointe
r
pProps
)
void
addCell
(
const
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>&
start
,
TablePropertyMapPt
r
pProps
)
{
CellDataPointer_t
pCellData
(
new
CellData
<
T
,
PropertiesPointer
>
(
start
,
pProps
));
CellDataPointer_t
pCellData
(
new
CellData
<
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
,
TablePropertyMapPtr
>
(
start
,
pProps
));
mCells
.
push_back
(
pCellData
);
}
void
endCell
(
const
T
&
end
)
void
endCell
(
const
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
&
end
)
{
if
(
mCells
.
size
()
>
0
)
mCells
.
back
()
->
setEnd
(
end
);
...
...
@@ -177,7 +174,7 @@ public:
@param pProperties the properties to set
*/
void
insertProperties
(
PropertiesPointe
r
pProperties
)
void
insertProperties
(
TablePropertyMapPt
r
pProperties
)
{
if
(
pProperties
.
get
()
)
{
...
...
@@ -194,7 +191,7 @@ public:
@param i index of the cell
@param pProps the properties to add
*/
void
insertCellProperties
(
unsigned
int
i
,
PropertiesPointe
r
pProps
)
void
insertCellProperties
(
unsigned
int
i
,
TablePropertyMapPt
r
pProps
)
{
mCells
[
i
]
->
insertProperties
(
pProps
);
}
...
...
@@ -202,9 +199,9 @@ public:
/**
Add properties to the last cell of the row.
*/
void
insertCellProperties
(
PropertiesPointe
r
pProps
)
void
insertCellProperties
(
TablePropertyMapPt
r
pProps
)
{
if
(
!
mCells
.
empty
())
if
(
!
mCells
.
empty
())
mCells
.
back
()
->
insertProperties
(
pProps
);
}
...
...
@@ -221,7 +218,7 @@ public:
@param i index of the cell
*/
const
T
&
getCellStart
(
unsigned
int
i
)
const
const
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
&
getCellStart
(
unsigned
int
i
)
const
{
return
mCells
[
i
]
->
getStart
();
}
...
...
@@ -231,7 +228,7 @@ public:
@param i index of the cell
*/
const
T
&
getCellEnd
(
unsigned
int
i
)
const
const
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
&
getCellEnd
(
unsigned
int
i
)
const
{
return
mCells
[
i
]
->
getEnd
();
}
...
...
@@ -241,7 +238,7 @@ public:
@param i index of the cell
*/
PropertiesPointe
r
getCellProperties
(
unsigned
int
i
)
const
TablePropertyMapPt
r
getCellProperties
(
unsigned
int
i
)
const
{
return
mCells
[
i
]
->
getProperties
();
}
...
...
@@ -249,7 +246,7 @@ public:
/**
Return properties of the row.
*/
PropertiesPointe
r
getProperties
()
TablePropertyMapPt
r
getProperties
()
{
return
mpProperties
;
}
...
...
@@ -269,7 +266,7 @@ public:
*/
class
TableData
{
typedef
RowData
<
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
,
TablePropertyMapPtr
>
::
Pointer_t
RowPointer_t
;
typedef
RowData
::
Pointer_t
RowPointer_t
;
typedef
::
std
::
vector
<
RowPointer_t
>
Rows
;
/**
...
...
@@ -295,7 +292,7 @@ class TableData
/**
initialize mpRow
*/
void
newRow
()
{
mpRow
=
RowPointer_t
(
new
RowData
<
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
,
TablePropertyMapPtr
>
());
}
void
newRow
()
{
mpRow
=
RowPointer_t
(
new
RowData
());
}
public
:
typedef
boost
::
shared_ptr
<
TableData
>
Pointer_t
;
...
...
writerfilter/source/dmapper/TableManager.cxx
Dosyayı görüntüle @
1e29007c
...
...
@@ -312,7 +312,7 @@ void TableManager::resolveCurrentTable()
for
(
unsigned
int
nRow
=
0
;
nRow
<
nRows
;
++
nRow
)
{
RowData
<
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
,
TablePropertyMapPtr
>
::
Pointer_t
pRowData
=
pTableData
->
getRow
(
nRow
);
RowData
::
Pointer_t
pRowData
=
pTableData
->
getRow
(
nRow
);
unsigned
int
nCells
=
pRowData
->
getCellCount
();
...
...
writerfilter/source/dmapper/TableManager.hxx
Dosyayı görüntüle @
1e29007c
...
...
@@ -405,7 +405,7 @@ private:
for each level of nested tables there is one frame in the stack
*/
std
::
stack
<
TableData
::
Pointer_t
>
mTableDataStack
;
RowData
<
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
,
TablePropertyMapPtr
>
::
Pointer_t
mpUnfinishedRow
;
RowData
::
Pointer_t
mpUnfinishedRow
;
bool
mbKeepUnfinishedRow
;
typedef
TableDataHandler
<
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>
,
TablePropertyMapPtr
>::
Pointer_t
TableDataHandlerPointer_t
;
...
...
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