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
07f4021c
Kaydet (Commit)
07f4021c
authored
Nis 25, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move some functions from tblrwcl.hxx into cxx files
üst
1df74354
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
29 deletions
+21
-29
gctable.cxx
sw/source/core/doc/gctable.cxx
+7
-5
tblrwcl.cxx
sw/source/core/doc/tblrwcl.cxx
+14
-13
tblrwcl.hxx
sw/source/core/inc/tblrwcl.hxx
+0
-11
No files found.
sw/source/core/doc/gctable.cxx
Dosyayı görüntüle @
07f4021c
...
@@ -336,7 +336,9 @@ struct _GCLinePara
...
@@ -336,7 +336,9 @@ struct _GCLinePara
{}
{}
};
};
sal_Bool
lcl_MergeGCBox
(
const
SwTableBox
*&
rpTblBox
,
void
*
pPara
)
static
bool
lcl_MergeGCLine
(
const
SwTableLine
*&
rpLine
,
void
*
const
pPara
);
static
bool
lcl_MergeGCBox
(
const
SwTableBox
*&
rpTblBox
,
void
*
const
pPara
)
{
{
SwTableBox
*&
rpBox
=
(
SwTableBox
*&
)
rpTblBox
;
SwTableBox
*&
rpBox
=
(
SwTableBox
*&
)
rpTblBox
;
sal_uInt16
n
,
nLen
=
rpBox
->
GetTabLines
().
Count
();
sal_uInt16
n
,
nLen
=
rpBox
->
GetTabLines
().
Count
();
...
@@ -364,13 +366,13 @@ sal_Bool lcl_MergeGCBox( const SwTableBox*& rpTblBox, void* pPara )
...
@@ -364,13 +366,13 @@ sal_Bool lcl_MergeGCBox( const SwTableBox*& rpTblBox, void* pPara )
// Delete the old Box with the Line
// Delete the old Box with the Line
pInsLine
->
GetTabBoxes
().
DeleteAndDestroy
(
nInsPos
);
pInsLine
->
GetTabBoxes
().
DeleteAndDestroy
(
nInsPos
);
return
sal_F
alse
;
// set up anew
return
f
alse
;
// set up anew
}
}
}
}
return
sal_T
rue
;
return
t
rue
;
}
}
s
al_Bool
lcl_MergeGCLine
(
const
SwTableLine
*&
rpLine
,
void
*
pPara
)
s
tatic
bool
lcl_MergeGCLine
(
const
SwTableLine
*&
rpLine
,
void
*
const
pPara
)
{
{
SwTableLine
*
pLn
=
(
SwTableLine
*
)
rpLine
;
SwTableLine
*
pLn
=
(
SwTableLine
*
)
rpLine
;
sal_uInt16
nLen
=
pLn
->
GetTabBoxes
().
Count
();
sal_uInt16
nLen
=
pLn
->
GetTabBoxes
().
Count
();
...
@@ -431,7 +433,7 @@ sal_Bool lcl_MergeGCLine( const SwTableLine*& rpLine, void* pPara )
...
@@ -431,7 +433,7 @@ sal_Bool lcl_MergeGCLine( const SwTableLine*& rpLine, void* pPara )
if
(
!
lcl_MergeGCBox
(
*
(
pLn
->
GetTabBoxes
().
GetData
()
+
nLen
),
pPara
))
if
(
!
lcl_MergeGCBox
(
*
(
pLn
->
GetTabBoxes
().
GetData
()
+
nLen
),
pPara
))
--
nLen
;
--
nLen
;
}
}
return
sal_T
rue
;
return
t
rue
;
}
}
// Clean structure a bit
// Clean structure a bit
...
...
sw/source/core/doc/tblrwcl.cxx
Dosyayı görüntüle @
07f4021c
...
@@ -326,7 +326,9 @@ struct _CpyPara
...
@@ -326,7 +326,9 @@ struct _CpyPara
void
SetBoxWidth
(
SwTableBox
*
pBox
);
void
SetBoxWidth
(
SwTableBox
*
pBox
);
};
};
sal_Bool
lcl_CopyCol
(
_FndBox
&
rFndBox
,
_CpyPara
*
pCpyPara
)
static
void
lcl_CopyRow
(
_FndLine
&
rFndLine
,
_CpyPara
*
const
pCpyPara
);
static
void
lcl_CopyCol
(
_FndBox
&
rFndBox
,
_CpyPara
*
const
pCpyPara
)
{
{
// Look up the Frame Format in the Frame Format Array
// Look up the Frame Format in the Frame Format Array
SwTableBox
*
pBox
=
rFndBox
.
GetBox
();
SwTableBox
*
pBox
=
rFndBox
.
GetBox
();
...
@@ -452,10 +454,9 @@ sal_Bool lcl_CopyCol( _FndBox & rFndBox, _CpyPara* pCpyPara )
...
@@ -452,10 +454,9 @@ sal_Bool lcl_CopyCol( _FndBox & rFndBox, _CpyPara* pCpyPara )
}
}
}
}
}
}
return
sal_True
;
}
}
s
al_Bool
lcl_CopyRow
(
_FndLine
&
rFndLine
,
_CpyPara
*
pCpyPara
)
s
tatic
void
lcl_CopyRow
(
_FndLine
&
rFndLine
,
_CpyPara
*
const
pCpyPara
)
{
{
SwTableLine
*
pNewLine
=
new
SwTableLine
(
SwTableLine
*
pNewLine
=
new
SwTableLine
(
(
SwTableLineFmt
*
)
rFndLine
.
GetLine
()
->
GetFrmFmt
(),
(
SwTableLineFmt
*
)
rFndLine
.
GetLine
()
->
GetFrmFmt
(),
...
@@ -478,7 +479,6 @@ sal_Bool lcl_CopyRow( _FndLine& rFndLine, _CpyPara* pCpyPara )
...
@@ -478,7 +479,6 @@ sal_Bool lcl_CopyRow( _FndLine& rFndLine, _CpyPara* pCpyPara )
}
}
pCpyPara
->
nDelBorderFlag
&=
0xf8
;
pCpyPara
->
nDelBorderFlag
&=
0xf8
;
return
sal_True
;
}
}
void
lcl_InsCol
(
_FndLine
*
pFndLn
,
_CpyPara
&
rCpyPara
,
sal_uInt16
nCpyCnt
,
void
lcl_InsCol
(
_FndLine
*
pFndLn
,
_CpyPara
&
rCpyPara
,
sal_uInt16
nCpyCnt
,
...
@@ -1484,7 +1484,9 @@ struct _InsULPara
...
@@ -1484,7 +1484,9 @@ struct _InsULPara
{
bUL_LR
=
sal_True
;
bUL
=
sal_False
;
if
(
pLine
)
pInsLine
=
pLine
;
}
{
bUL_LR
=
sal_True
;
bUL
=
sal_False
;
if
(
pLine
)
pInsLine
=
pLine
;
}
};
};
sal_Bool
lcl_Merge_MoveBox
(
_FndBox
&
rFndBox
,
_InsULPara
*
pULPara
)
static
void
lcl_Merge_MoveLine
(
_FndLine
&
rFndLine
,
_InsULPara
*
const
pULPara
);
static
void
lcl_Merge_MoveBox
(
_FndBox
&
rFndBox
,
_InsULPara
*
const
pULPara
)
{
{
SwTableBoxes
*
pBoxes
;
SwTableBoxes
*
pBoxes
;
...
@@ -1543,10 +1545,9 @@ sal_Bool lcl_Merge_MoveBox( _FndBox & rFndBox, _InsULPara* pULPara )
...
@@ -1543,10 +1545,9 @@ sal_Bool lcl_Merge_MoveBox( _FndBox & rFndBox, _InsULPara* pULPara )
else
else
delete
pBox
;
delete
pBox
;
}
}
return
sal_True
;
}
}
s
al_Bool
lcl_Merge_MoveLine
(
_FndLine
&
rFndLine
,
_InsULPara
*
pULPara
)
s
tatic
void
lcl_Merge_MoveLine
(
_FndLine
&
rFndLine
,
_InsULPara
*
const
pULPara
)
{
{
SwTableLines
*
pLines
;
SwTableLines
*
pLines
;
...
@@ -1722,8 +1723,6 @@ sal_Bool lcl_Merge_MoveLine( _FndLine& rFndLine, _InsULPara* pULPara )
...
@@ -1722,8 +1723,6 @@ sal_Bool lcl_Merge_MoveLine( _FndLine& rFndLine, _InsULPara* pULPara )
}
}
else
else
delete
pNewLine
;
delete
pNewLine
;
return
sal_True
;
}
}
sal_Bool
SwTable
::
OldMerge
(
SwDoc
*
pDoc
,
const
SwSelBoxes
&
rBoxes
,
sal_Bool
SwTable
::
OldMerge
(
SwDoc
*
pDoc
,
const
SwSelBoxes
&
rBoxes
,
...
@@ -1981,7 +1980,10 @@ void lcl_CalcNewWidths( const _FndLines& rFndLines, _CpyPara& rPara )
...
@@ -1981,7 +1980,10 @@ void lcl_CalcNewWidths( const _FndLines& rFndLines, _CpyPara& rPara )
}
}
}
}
sal_Bool
lcl_CopyBoxToDoc
(
_FndBox
const
&
rFndBox
,
_CpyPara
*
const
pCpyPara
)
static
void
lcl_CopyLineToDoc
(
_FndLine
const
&
rpFndLn
,
_CpyPara
*
const
pCpyPara
);
static
void
lcl_CopyBoxToDoc
(
_FndBox
const
&
rFndBox
,
_CpyPara
*
const
pCpyPara
)
{
{
// Calculation of new size
// Calculation of new size
sal_uLong
nRealSize
;
sal_uLong
nRealSize
;
...
@@ -2103,10 +2105,10 @@ sal_Bool lcl_CopyBoxToDoc( _FndBox const& rFndBox, _CpyPara *const pCpyPara )
...
@@ -2103,10 +2105,10 @@ sal_Bool lcl_CopyBoxToDoc( _FndBox const& rFndBox, _CpyPara *const pCpyPara )
}
}
}
}
while
(
nSize
);
while
(
nSize
);
return
sal_True
;
}
}
sal_Bool
lcl_CopyLineToDoc
(
const
_FndLine
&
rFndLine
,
_CpyPara
*
pCpyPara
)
static
void
lcl_CopyLineToDoc
(
const
_FndLine
&
rFndLine
,
_CpyPara
*
const
pCpyPara
)
{
{
// Find the Frame Format in the list of all Frame Formats
// Find the Frame Format in the list of all Frame Formats
_CpyTabFrm
aFindFrm
(
(
SwTableBoxFmt
*
)
rFndLine
.
GetLine
()
->
GetFrmFmt
()
);
_CpyTabFrm
aFindFrm
(
(
SwTableBoxFmt
*
)
rFndLine
.
GetLine
()
->
GetFrmFmt
()
);
...
@@ -2165,7 +2167,6 @@ sal_Bool lcl_CopyLineToDoc( const _FndLine& rFndLine, _CpyPara* pCpyPara )
...
@@ -2165,7 +2167,6 @@ sal_Bool lcl_CopyLineToDoc( const _FndLine& rFndLine, _CpyPara* pCpyPara )
lcl_CopyBoxToDoc
(
*
it
,
&
aPara
);
lcl_CopyBoxToDoc
(
*
it
,
&
aPara
);
if
(
pCpyPara
->
pTblNd
->
GetTable
().
IsNewModel
()
)
if
(
pCpyPara
->
pTblNd
->
GetTable
().
IsNewModel
()
)
++
pCpyPara
->
nLnIdx
;
++
pCpyPara
->
nLnIdx
;
return
sal_True
;
}
}
sal_Bool
SwTable
::
CopyHeadlineIntoTable
(
SwTableNode
&
rTblNd
)
sal_Bool
SwTable
::
CopyHeadlineIntoTable
(
SwTableNode
&
rTblNd
)
...
...
sw/source/core/inc/tblrwcl.hxx
Dosyayı görüntüle @
07f4021c
...
@@ -50,17 +50,6 @@ class SwFmtFrmSize;
...
@@ -50,17 +50,6 @@ class SwFmtFrmSize;
class
_CpyPara
;
class
_CpyPara
;
class
_InsULPara
;
class
_InsULPara
;
sal_Bool
lcl_CopyRow
(
_FndLine
&
rFndLine
,
_CpyPara
*
pCpyPara
);
sal_Bool
lcl_MergeGCBox
(
const
SwTableBox
*&
rpBox
,
void
*
pPara
);
sal_Bool
lcl_MergeGCLine
(
const
SwTableLine
*&
rpLine
,
void
*
pPara
);
sal_Bool
lcl_Merge_MoveBox
(
_FndBox
&
rFndBox
,
_InsULPara
*
pULPara
);
sal_Bool
lcl_Merge_MoveLine
(
_FndLine
&
rFndLine
,
_InsULPara
*
pULPara
);
sal_Bool
lcl_CopyBoxToDoc
(
const
_FndBox
*&
rpFndBox
,
void
*
pPara
);
sal_Bool
lcl_CopyLineToDoc
(
const
_FndLine
&
rpFndLn
,
_CpyPara
*
pPara
);
sal_Bool
lcl_BoxSetHeadCondColl
(
const
SwTableBox
*&
rpBox
,
void
*
pPara
);
sal_Bool
lcl_BoxSetHeadCondColl
(
const
SwTableBox
*&
rpBox
,
void
*
pPara
);
sal_Bool
lcl_LineSetHeadCondColl
(
const
SwTableLine
*&
rpLine
,
void
*
pPara
);
sal_Bool
lcl_LineSetHeadCondColl
(
const
SwTableLine
*&
rpLine
,
void
*
pPara
);
...
...
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