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
157b2fa6
Kaydet (Commit)
157b2fa6
authored
Mar 19, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Fridrich Štrba
Mar 22, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert tools/table.hxx usage to std::map in ScEEImport class
üst
000bb6af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
eeimport.hxx
sc/source/filter/inc/eeimport.hxx
+4
-2
htmlpars.hxx
sc/source/filter/inc/htmlpars.hxx
+1
-0
eeimpars.cxx
sc/source/filter/rtf/eeimpars.cxx
+7
-11
No files found.
sc/source/filter/inc/eeimport.hxx
Dosyayı görüntüle @
157b2fa6
...
@@ -32,15 +32,17 @@
...
@@ -32,15 +32,17 @@
#include "address.hxx"
#include "address.hxx"
#include "filter.hxx"
#include "filter.hxx"
#include "scdllapi.h"
#include "scdllapi.h"
#include <map>
class
ScDocument
;
class
ScDocument
;
class
ScEEParser
;
class
ScEEParser
;
class
ScTabEditEngine
;
class
ScTabEditEngine
;
class
SvStream
;
class
SvStream
;
class
Table
;
struct
ScEEParseEntry
;
struct
ScEEParseEntry
;
typedef
std
::
map
<
SCROW
,
long
>
RowHeightMap
;
class
ScEEImport
:
public
ScEEAbsImport
class
ScEEImport
:
public
ScEEAbsImport
{
{
protected
:
protected
:
...
@@ -48,7 +50,7 @@ protected:
...
@@ -48,7 +50,7 @@ protected:
ScDocument
*
mpDoc
;
ScDocument
*
mpDoc
;
ScEEParser
*
mpParser
;
ScEEParser
*
mpParser
;
ScTabEditEngine
*
mpEngine
;
ScTabEditEngine
*
mpEngine
;
Table
*
mp
RowHeights
;
RowHeightMap
ma
RowHeights
;
sal_Bool
GraphicSize
(
SCCOL
nCol
,
SCROW
nRow
,
SCTAB
nTab
,
sal_Bool
GraphicSize
(
SCCOL
nCol
,
SCROW
nRow
,
SCTAB
nTab
,
ScEEParseEntry
*
);
ScEEParseEntry
*
);
...
...
sc/source/filter/inc/htmlpars.hxx
Dosyayı görüntüle @
157b2fa6
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include "rangelst.hxx"
#include "rangelst.hxx"
#include "eeparser.hxx"
#include "eeparser.hxx"
#include "tools/table.hxx"
const
sal_uInt32
SC_HTML_FONTSIZES
=
7
;
// wie Export, HTML-Options
const
sal_uInt32
SC_HTML_FONTSIZES
=
7
;
// wie Export, HTML-Options
...
...
sc/source/filter/rtf/eeimpars.cxx
Dosyayı görüntüle @
157b2fa6
...
@@ -52,7 +52,6 @@
...
@@ -52,7 +52,6 @@
#include <unotools/syslocale.hxx>
#include <unotools/syslocale.hxx>
#include <unotools/charclass.hxx>
#include <unotools/charclass.hxx>
#include <comphelper/string.hxx>
#include <comphelper/string.hxx>
#include <tools/table.hxx>
#include "eeimport.hxx"
#include "eeimport.hxx"
#include "global.hxx"
#include "global.hxx"
...
@@ -79,8 +78,7 @@ extern void ScLimitSizeOnDrawPage( Size& rSize, Point& rPos, const Size& rPage )
...
@@ -79,8 +78,7 @@ extern void ScLimitSizeOnDrawPage( Size& rSize, Point& rPos, const Size& rPage )
ScEEImport
::
ScEEImport
(
ScDocument
*
pDocP
,
const
ScRange
&
rRange
)
:
ScEEImport
::
ScEEImport
(
ScDocument
*
pDocP
,
const
ScRange
&
rRange
)
:
maRange
(
rRange
),
maRange
(
rRange
),
mpDoc
(
pDocP
),
mpDoc
(
pDocP
),
mpParser
(
NULL
),
mpParser
(
NULL
)
mpRowHeights
(
new
Table
)
{
{
const
ScPatternAttr
*
pPattern
=
mpDoc
->
GetPattern
(
const
ScPatternAttr
*
pPattern
=
mpDoc
->
GetPattern
(
maRange
.
aStart
.
Col
(),
maRange
.
aStart
.
Row
(),
maRange
.
aStart
.
Tab
()
);
maRange
.
aStart
.
Col
(),
maRange
.
aStart
.
Row
(),
maRange
.
aStart
.
Tab
()
);
...
@@ -95,7 +93,6 @@ ScEEImport::~ScEEImport()
...
@@ -95,7 +93,6 @@ ScEEImport::~ScEEImport()
// Reihenfolge wichtig, sonst knallt's irgendwann irgendwo in irgendeinem Dtor!
// Reihenfolge wichtig, sonst knallt's irgendwann irgendwo in irgendeinem Dtor!
// Ist gewaehrleistet, da ScEEImport Basisklasse ist
// Ist gewaehrleistet, da ScEEImport Basisklasse ist
delete
mpEngine
;
// nach Parser!
delete
mpEngine
;
// nach Parser!
delete
mpRowHeights
;
}
}
...
@@ -458,11 +455,12 @@ void ScEEImport::WriteToDocument( sal_Bool bSizeColsRows, double nOutputFactor,
...
@@ -458,11 +455,12 @@ void ScEEImport::WriteToDocument( sal_Bool bSizeColsRows, double nOutputFactor,
mpDoc
->
SetOptimalHeight
(
0
,
nEndRow
,
0
,
mpDoc
->
SetOptimalHeight
(
0
,
nEndRow
,
0
,
static_cast
<
sal_uInt16
>
(
ScGlobal
::
nLastRowHeightExtra
),
&
aVirtDev
,
static_cast
<
sal_uInt16
>
(
ScGlobal
::
nLastRowHeightExtra
),
&
aVirtDev
,
nPPTX
,
nPPTY
,
aZoom
,
aZoom
,
false
);
nPPTX
,
nPPTY
,
aZoom
,
aZoom
,
false
);
if
(
mpRowHeights
->
Count
()
)
if
(
!
maRowHeights
.
empty
()
)
{
{
for
(
SCROW
nRow
=
nStartRow
;
nRow
<=
nEndRow
;
nRow
++
)
for
(
SCROW
nRow
=
nStartRow
;
nRow
<=
nEndRow
;
nRow
++
)
{
{
sal_uInt16
nHeight
=
(
sal_uInt16
)(
sal_uLong
)
mpRowHeights
->
Get
(
nRow
);
RowHeightMap
::
const_iterator
it
=
maRowHeights
.
find
(
nRow
);
sal_uInt16
nHeight
=
it
==
maRowHeights
.
end
()
?
0
:
it
->
second
;
if
(
nHeight
>
mpDoc
->
GetRowHeight
(
nRow
,
nTab
)
)
if
(
nHeight
>
mpDoc
->
GetRowHeight
(
nRow
,
nTab
)
)
mpDoc
->
SetRowHeight
(
nRow
,
nTab
,
nHeight
);
mpDoc
->
SetRowHeight
(
nRow
,
nTab
,
nHeight
);
}
}
...
@@ -541,13 +539,11 @@ sal_Bool ScEEImport::GraphicSize( SCCOL nCol, SCROW nRow, SCTAB /*nTab*/, ScEEPa
...
@@ -541,13 +539,11 @@ sal_Bool ScEEImport::GraphicSize( SCCOL nCol, SCROW nRow, SCTAB /*nTab*/, ScEEPa
nHeight
=
1
;
// fuer eindeutigen Vergleich
nHeight
=
1
;
// fuer eindeutigen Vergleich
for
(
SCROW
nR
=
nRow
;
nR
<
nRow
+
nRowSpan
;
nR
++
)
for
(
SCROW
nR
=
nRow
;
nR
<
nRow
+
nRowSpan
;
nR
++
)
{
{
long
nRowHeight
=
(
long
)
mpRowHeights
->
Get
(
nR
);
RowHeightMap
::
const_iterator
it2
=
maRowHeights
.
find
(
nR
);
long
nRowHeight
=
it2
==
maRowHeights
.
end
()
?
0
:
it2
->
second
;
if
(
nHeight
>
nRowHeight
)
if
(
nHeight
>
nRowHeight
)
{
{
if
(
nRowHeight
)
maRowHeights
[
nR
]
=
nHeight
;
mpRowHeights
->
Replace
(
nR
,
(
void
*
)
nHeight
);
else
mpRowHeights
->
Insert
(
nR
,
(
void
*
)
nHeight
);
}
}
}
}
return
bHasGraphics
;
return
bHasGraphics
;
...
...
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