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
d4a8a64c
Kaydet (Commit)
d4a8a64c
authored
Haz 01, 2011
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
change to SCTAB from sal_Int16 and sal_Int32 for sheet index
üst
0ef96d2d
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
65 additions
and
65 deletions
+65
-65
appoptio.hxx
sc/inc/appoptio.hxx
+3
-3
sheetdata.hxx
sc/inc/sheetdata.hxx
+8
-8
scflt.hxx
sc/source/filter/inc/scflt.hxx
+3
-3
XMLTableSourceContext.cxx
sc/source/filter/xml/XMLTableSourceContext.cxx
+2
-2
sheetdata.cxx
sc/source/filter/xml/sheetdata.cxx
+12
-12
xmlcoli.cxx
sc/source/filter/xml/xmlcoli.cxx
+4
-4
xmlimprt.cxx
sc/source/filter/xml/xmlimprt.cxx
+1
-1
xmlimprt.hxx
sc/source/filter/xml/xmlimprt.hxx
+2
-2
xmlrowi.cxx
sc/source/filter/xml/xmlrowi.cxx
+4
-4
xmlsceni.cxx
sc/source/filter/xml/xmlsceni.cxx
+1
-1
xmlstyli.cxx
sc/source/filter/xml/xmlstyli.cxx
+2
-2
xmlstyli.hxx
sc/source/filter/xml/xmlstyli.hxx
+3
-3
xmlsubti.cxx
sc/source/filter/xml/xmlsubti.cxx
+10
-10
xmlsubti.hxx
sc/source/filter/xml/xmlsubti.hxx
+3
-3
xmltabi.cxx
sc/source/filter/xml/xmltabi.cxx
+4
-4
vbaquerytable.cxx
sc/source/ui/vba/vbaquerytable.cxx
+3
-3
No files found.
sc/inc/appoptio.hxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -46,8 +46,8 @@ public:
...
@@ -46,8 +46,8 @@ public:
void
SetDefaults
();
void
SetDefaults
();
// Set or get the initial tab count for new spreadsheet, it is used by VBA API currently.
// Set or get the initial tab count for new spreadsheet, it is used by VBA API currently.
void
SetTabCountInNewSpreadsheet
(
sal_Int16
nCount
)
{
nTabCountInNewSpreadsheet
=
nCount
;
}
void
SetTabCountInNewSpreadsheet
(
SCTAB
nCount
)
{
nTabCountInNewSpreadsheet
=
nCount
;
}
sal_Int16
GetTabCountInNewSpreadsheet
()
const
{
return
nTabCountInNewSpreadsheet
;
}
SCTAB
GetTabCountInNewSpreadsheet
()
const
{
return
nTabCountInNewSpreadsheet
;
}
void
SetAppMetric
(
FieldUnit
eUnit
)
{
eMetric
=
eUnit
;
}
void
SetAppMetric
(
FieldUnit
eUnit
)
{
eMetric
=
eUnit
;
}
FieldUnit
GetAppMetric
()
const
{
return
eMetric
;
}
FieldUnit
GetAppMetric
()
const
{
return
eMetric
;
}
...
@@ -92,7 +92,7 @@ public:
...
@@ -92,7 +92,7 @@ public:
const
ScAppOptions
&
operator
=
(
const
ScAppOptions
&
rOpt
);
const
ScAppOptions
&
operator
=
(
const
ScAppOptions
&
rOpt
);
private
:
private
:
sal_Int16
nTabCountInNewSpreadsheet
;
SCTAB
nTabCountInNewSpreadsheet
;
FieldUnit
eMetric
;
FieldUnit
eMetric
;
sal_uInt16
nLRUFuncCount
;
sal_uInt16
nLRUFuncCount
;
sal_uInt16
*
pLRUList
;
sal_uInt16
*
pLRUList
;
...
...
sc/inc/sheetdata.hxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -128,7 +128,7 @@ class ScSheetSaveData
...
@@ -128,7 +128,7 @@ class ScSheetSaveData
std
::
vector
<
bool
>
maBlocked
;
std
::
vector
<
bool
>
maBlocked
;
std
::
vector
<
ScStreamEntry
>
maStreamEntries
;
std
::
vector
<
ScStreamEntry
>
maStreamEntries
;
std
::
vector
<
ScStreamEntry
>
maSaveEntries
;
std
::
vector
<
ScStreamEntry
>
maSaveEntries
;
sal_Int32
mnStartTab
;
SCTAB
mnStartTab
;
sal_Int32
mnStartOffset
;
sal_Int32
mnStartOffset
;
ScNoteStyleEntry
maPreviousNote
;
ScNoteStyleEntry
maPreviousNote
;
...
@@ -149,20 +149,20 @@ public:
...
@@ -149,20 +149,20 @@ public:
void
AddTextStyle
(
const
rtl
::
OUString
&
rName
,
const
ScAddress
&
rCellPos
,
const
ESelection
&
rSelection
);
void
AddTextStyle
(
const
rtl
::
OUString
&
rName
,
const
ScAddress
&
rCellPos
,
const
ESelection
&
rSelection
);
void
BlockSheet
(
sal_Int32
nTab
);
void
BlockSheet
(
SCTAB
nTab
);
bool
IsSheetBlocked
(
sal_Int32
nTab
)
const
;
bool
IsSheetBlocked
(
SCTAB
nTab
)
const
;
void
AddStreamPos
(
sal_Int32
nTab
,
sal_Int32
nStartOffset
,
sal_Int32
nEndOffset
);
void
AddStreamPos
(
SCTAB
nTab
,
sal_Int32
nStartOffset
,
sal_Int32
nEndOffset
);
void
GetStreamPos
(
sal_Int32
nTab
,
sal_Int32
&
rStartOffset
,
sal_Int32
&
rEndOffset
)
const
;
void
GetStreamPos
(
SCTAB
nTab
,
sal_Int32
&
rStartOffset
,
sal_Int32
&
rEndOffset
)
const
;
bool
HasStreamPos
(
sal_Int32
nTab
)
const
;
bool
HasStreamPos
(
SCTAB
nTab
)
const
;
void
StartStreamPos
(
sal_Int32
nTab
,
sal_Int32
nStartOffset
);
void
StartStreamPos
(
SCTAB
nTab
,
sal_Int32
nStartOffset
);
void
EndStreamPos
(
sal_Int32
nEndOffset
);
void
EndStreamPos
(
sal_Int32
nEndOffset
);
bool
HasStartPos
()
const
{
return
mnStartTab
>=
0
;
}
bool
HasStartPos
()
const
{
return
mnStartTab
>=
0
;
}
void
ResetSaveEntries
();
void
ResetSaveEntries
();
void
AddSavePos
(
sal_Int32
nTab
,
sal_Int32
nStartOffset
,
sal_Int32
nEndOffset
);
void
AddSavePos
(
SCTAB
nTab
,
sal_Int32
nStartOffset
,
sal_Int32
nEndOffset
);
void
UseSaveEntries
();
void
UseSaveEntries
();
void
StoreInitialNamespaces
(
const
SvXMLNamespaceMap
&
rNamespaces
);
void
StoreInitialNamespaces
(
const
SvXMLNamespaceMap
&
rNamespaces
);
...
...
sc/source/filter/inc/scflt.hxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -247,7 +247,7 @@ struct Sc10BlockRect
...
@@ -247,7 +247,7 @@ struct Sc10BlockRect
struct
Sc10DataBaseRec
struct
Sc10DataBaseRec
{
{
sal_Char
Name
[
32
];
sal_Char
Name
[
32
];
sal_Int16
Tab
;
SCTAB
Tab
;
Sc10BlockRect
Block
;
Sc10BlockRect
Block
;
sal_uInt8
RowHeader
;
sal_uInt8
RowHeader
;
sal_Int16
SortField0
;
sal_Int16
SortField0
;
...
@@ -319,7 +319,7 @@ struct Sc10PageFormat
...
@@ -319,7 +319,7 @@ struct Sc10PageFormat
sal_Char
PrintAreaName
[
32
];
sal_Char
PrintAreaName
[
32
];
Sc10BlockRect
PrintArea
;
Sc10BlockRect
PrintArea
;
sal_Char
PrnZoom
[
6
];
// Pascal 6 Byte Realzahl
sal_Char
PrnZoom
[
6
];
// Pascal 6 Byte Realzahl
sal_uInt16
FirstPageNo
;
SCTAB
FirstPageNo
;
sal_Int16
RowRepeatStart
;
sal_Int16
RowRepeatStart
;
sal_Int16
RowRepeatEnd
;
sal_Int16
RowRepeatEnd
;
sal_Int16
ColRepeatStart
;
sal_Int16
ColRepeatStart
;
...
@@ -731,7 +731,7 @@ class Sc10Import
...
@@ -731,7 +731,7 @@ class Sc10Import
Sc10PatternCollection
*
pPatternCollection
;
Sc10PatternCollection
*
pPatternCollection
;
Sc10DataBaseCollection
*
pDataBaseCollection
;
Sc10DataBaseCollection
*
pDataBaseCollection
;
sal_uLong
nError
;
sal_uLong
nError
;
sal_Int16
TabCount
;
SCTAB
TabCount
;
SCTAB
nShowTab
;
SCTAB
nShowTab
;
ScViewOptions
aSc30ViewOpt
;
ScViewOptions
aSc30ViewOpt
;
ScfStreamProgressBar
*
pPrgrsBar
;
ScfStreamProgressBar
*
pPrgrsBar
;
...
...
sc/source/filter/xml/XMLTableSourceContext.cxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -118,7 +118,7 @@ void ScXMLTableSourceContext::EndElement()
...
@@ -118,7 +118,7 @@ void ScXMLTableSourceContext::EndElement()
if
(
xLinkable
.
is
()
&&
pDoc
)
if
(
xLinkable
.
is
()
&&
pDoc
)
{
{
ScXMLImport
::
MutexGuard
aGuard
(
GetScImport
());
ScXMLImport
::
MutexGuard
aGuard
(
GetScImport
());
if
(
pDoc
->
RenameTab
(
static_cast
<
SCTAB
>
(
GetScImport
().
GetTables
().
GetCurrentSheet
()
),
if
(
pDoc
->
RenameTab
(
GetScImport
().
GetTables
().
GetCurrentSheet
(
),
GetScImport
().
GetTables
().
GetCurrentSheetName
(),
false
,
sal_True
))
GetScImport
().
GetTables
().
GetCurrentSheetName
(),
false
,
sal_True
))
{
{
String
aFileString
(
sLink
);
String
aFileString
(
sLink
);
...
@@ -136,7 +136,7 @@ void ScXMLTableSourceContext::EndElement()
...
@@ -136,7 +136,7 @@ void ScXMLTableSourceContext::EndElement()
else
if
(
nMode
==
sheet
::
SheetLinkMode_VALUE
)
else
if
(
nMode
==
sheet
::
SheetLinkMode_VALUE
)
nLinkMode
=
SC_LINK_VALUE
;
nLinkMode
=
SC_LINK_VALUE
;
pDoc
->
SetLink
(
static_cast
<
SCTAB
>
(
GetScImport
().
GetTables
().
GetCurrentSheet
()
),
pDoc
->
SetLink
(
GetScImport
().
GetTables
().
GetCurrentSheet
(
),
nLinkMode
,
aFileString
,
aFilterString
,
aOptString
,
nLinkMode
,
aFileString
,
aFilterString
,
aOptString
,
aSheetString
,
nRefresh
);
aSheetString
,
nRefresh
);
}
}
...
...
sc/source/filter/xml/sheetdata.cxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -104,31 +104,31 @@ void ScSheetSaveData::AddTextStyle( const rtl::OUString& rName, const ScAddress&
...
@@ -104,31 +104,31 @@ void ScSheetSaveData::AddTextStyle( const rtl::OUString& rName, const ScAddress&
maTextStyles
.
push_back
(
ScTextStyleEntry
(
rName
,
rCellPos
,
rSelection
)
);
maTextStyles
.
push_back
(
ScTextStyleEntry
(
rName
,
rCellPos
,
rSelection
)
);
}
}
void
ScSheetSaveData
::
BlockSheet
(
sal_Int32
nTab
)
void
ScSheetSaveData
::
BlockSheet
(
SCTAB
nTab
)
{
{
if
(
nTab
>=
(
sal_Int32
)
maBlocked
.
size
(
)
)
if
(
nTab
>=
static_cast
<
SCTAB
>
(
maBlocked
.
size
()
)
)
maBlocked
.
resize
(
nTab
+
1
,
false
);
// fill vector with "false" entries
maBlocked
.
resize
(
nTab
+
1
,
false
);
// fill vector with "false" entries
maBlocked
[
nTab
]
=
true
;
maBlocked
[
nTab
]
=
true
;
}
}
bool
ScSheetSaveData
::
IsSheetBlocked
(
sal_Int32
nTab
)
const
bool
ScSheetSaveData
::
IsSheetBlocked
(
SCTAB
nTab
)
const
{
{
if
(
nTab
<
(
sal_Int32
)
maBlocked
.
size
(
)
)
if
(
nTab
<
static_cast
<
SCTAB
>
(
maBlocked
.
size
()
)
)
return
maBlocked
[
nTab
];
return
maBlocked
[
nTab
];
else
else
return
false
;
return
false
;
}
}
void
ScSheetSaveData
::
AddStreamPos
(
sal_Int32
nTab
,
sal_Int32
nStartOffset
,
sal_Int32
nEndOffset
)
void
ScSheetSaveData
::
AddStreamPos
(
SCTAB
nTab
,
sal_Int32
nStartOffset
,
sal_Int32
nEndOffset
)
{
{
if
(
nTab
>=
(
sal_Int32
)
maStreamEntries
.
size
(
)
)
if
(
nTab
>=
static_cast
<
SCTAB
>
(
maStreamEntries
.
size
()
)
)
maStreamEntries
.
resize
(
nTab
+
1
);
maStreamEntries
.
resize
(
nTab
+
1
);
maStreamEntries
[
nTab
]
=
ScStreamEntry
(
nStartOffset
,
nEndOffset
);
maStreamEntries
[
nTab
]
=
ScStreamEntry
(
nStartOffset
,
nEndOffset
);
}
}
void
ScSheetSaveData
::
StartStreamPos
(
sal_Int32
nTab
,
sal_Int32
nStartOffset
)
void
ScSheetSaveData
::
StartStreamPos
(
SCTAB
nTab
,
sal_Int32
nStartOffset
)
{
{
DBG_ASSERT
(
mnStartTab
<
0
,
"StartStreamPos without EndStreamPos"
);
DBG_ASSERT
(
mnStartTab
<
0
,
"StartStreamPos without EndStreamPos"
);
...
@@ -146,9 +146,9 @@ void ScSheetSaveData::EndStreamPos( sal_Int32 nEndOffset )
...
@@ -146,9 +146,9 @@ void ScSheetSaveData::EndStreamPos( sal_Int32 nEndOffset )
}
}
}
}
void
ScSheetSaveData
::
GetStreamPos
(
sal_Int32
nTab
,
sal_Int32
&
rStartOffset
,
sal_Int32
&
rEndOffset
)
const
void
ScSheetSaveData
::
GetStreamPos
(
SCTAB
nTab
,
sal_Int32
&
rStartOffset
,
sal_Int32
&
rEndOffset
)
const
{
{
if
(
nTab
<
(
sal_Int32
)
maStreamEntries
.
size
(
)
)
if
(
nTab
<
static_cast
<
SCTAB
>
(
maStreamEntries
.
size
()
)
)
{
{
const
ScStreamEntry
&
rEntry
=
maStreamEntries
[
nTab
];
const
ScStreamEntry
&
rEntry
=
maStreamEntries
[
nTab
];
rStartOffset
=
rEntry
.
mnStartOffset
;
rStartOffset
=
rEntry
.
mnStartOffset
;
...
@@ -158,7 +158,7 @@ void ScSheetSaveData::GetStreamPos( sal_Int32 nTab, sal_Int32& rStartOffset, sal
...
@@ -158,7 +158,7 @@ void ScSheetSaveData::GetStreamPos( sal_Int32 nTab, sal_Int32& rStartOffset, sal
rStartOffset
=
rEndOffset
=
-
1
;
rStartOffset
=
rEndOffset
=
-
1
;
}
}
bool
ScSheetSaveData
::
HasStreamPos
(
sal_Int32
nTab
)
const
bool
ScSheetSaveData
::
HasStreamPos
(
SCTAB
nTab
)
const
{
{
sal_Int32
nStartOffset
=
-
1
;
sal_Int32
nStartOffset
=
-
1
;
sal_Int32
nEndOffset
=
-
1
;
sal_Int32
nEndOffset
=
-
1
;
...
@@ -171,9 +171,9 @@ void ScSheetSaveData::ResetSaveEntries()
...
@@ -171,9 +171,9 @@ void ScSheetSaveData::ResetSaveEntries()
maSaveEntries
.
clear
();
maSaveEntries
.
clear
();
}
}
void
ScSheetSaveData
::
AddSavePos
(
sal_Int32
nTab
,
sal_Int32
nStartOffset
,
sal_Int32
nEndOffset
)
void
ScSheetSaveData
::
AddSavePos
(
SCTAB
nTab
,
sal_Int32
nStartOffset
,
sal_Int32
nEndOffset
)
{
{
if
(
nTab
>=
(
sal_Int32
)
maSaveEntries
.
size
(
)
)
if
(
nTab
>=
static_cast
<
SCTAB
>
(
maSaveEntries
.
size
()
)
)
maSaveEntries
.
resize
(
nTab
+
1
);
maSaveEntries
.
resize
(
nTab
+
1
);
maSaveEntries
[
nTab
]
=
ScStreamEntry
(
nStartOffset
,
nEndOffset
);
maSaveEntries
[
nTab
]
=
ScStreamEntry
(
nStartOffset
,
nEndOffset
);
...
...
sc/source/filter/xml/xmlcoli.cxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -121,7 +121,7 @@ SvXMLImportContext *ScXMLTableColContext::CreateChildContext( sal_uInt16 nPrefix
...
@@ -121,7 +121,7 @@ SvXMLImportContext *ScXMLTableColContext::CreateChildContext( sal_uInt16 nPrefix
void
ScXMLTableColContext
::
EndElement
()
void
ScXMLTableColContext
::
EndElement
()
{
{
ScXMLImport
&
rXMLImport
=
GetScImport
();
ScXMLImport
&
rXMLImport
=
GetScImport
();
sal_Int32
nSheet
=
rXMLImport
.
GetTables
().
GetCurrentSheet
();
SCTAB
nSheet
=
rXMLImport
.
GetTables
().
GetCurrentSheet
();
sal_Int32
nCurrentColumn
=
rXMLImport
.
GetTables
().
GetCurrentColumn
();
sal_Int32
nCurrentColumn
=
rXMLImport
.
GetTables
().
GetCurrentColumn
();
uno
::
Reference
<
sheet
::
XSpreadsheet
>
xSheet
(
rXMLImport
.
GetTables
().
GetCurrentXSheet
());
uno
::
Reference
<
sheet
::
XSpreadsheet
>
xSheet
(
rXMLImport
.
GetTables
().
GetCurrentXSheet
());
if
(
xSheet
.
is
())
if
(
xSheet
.
is
())
...
@@ -151,7 +151,7 @@ void ScXMLTableColContext::EndElement()
...
@@ -151,7 +151,7 @@ void ScXMLTableColContext::EndElement()
if
(
nSheet
!=
pStyle
->
GetLastSheet
()
)
if
(
nSheet
!=
pStyle
->
GetLastSheet
()
)
{
{
ScSheetSaveData
*
pSheetData
=
ScModelObj
::
getImplementation
(
rXMLImport
.
GetModel
())
->
GetSheetSaveData
();
ScSheetSaveData
*
pSheetData
=
ScModelObj
::
getImplementation
(
rXMLImport
.
GetModel
())
->
GetSheetSaveData
();
pSheetData
->
AddColumnStyle
(
sStyleName
,
ScAddress
(
(
SCCOL
)
nCurrentColumn
,
0
,
(
SCTAB
)
nSheet
)
);
pSheetData
->
AddColumnStyle
(
sStyleName
,
ScAddress
(
(
SCCOL
)
nCurrentColumn
,
0
,
nSheet
)
);
pStyle
->
SetLastSheet
(
nSheet
);
pStyle
->
SetLastSheet
(
nSheet
);
}
}
}
}
...
@@ -288,7 +288,7 @@ void ScXMLTableColsContext::EndElement()
...
@@ -288,7 +288,7 @@ void ScXMLTableColsContext::EndElement()
}
}
else
if
(
bGroup
)
else
if
(
bGroup
)
{
{
sal_Int32
nSheet
=
rXMLImport
.
GetTables
().
GetCurrentSheet
();
SCTAB
nSheet
=
rXMLImport
.
GetTables
().
GetCurrentSheet
();
nGroupEndCol
=
rXMLImport
.
GetTables
().
GetCurrentColumn
();
nGroupEndCol
=
rXMLImport
.
GetTables
().
GetCurrentColumn
();
nGroupEndCol
--
;
nGroupEndCol
--
;
if
(
nGroupStartCol
<=
nGroupEndCol
)
if
(
nGroupStartCol
<=
nGroupEndCol
)
...
@@ -297,7 +297,7 @@ void ScXMLTableColsContext::EndElement()
...
@@ -297,7 +297,7 @@ void ScXMLTableColsContext::EndElement()
if
(
pDoc
)
if
(
pDoc
)
{
{
ScXMLImport
::
MutexGuard
aGuard
(
GetScImport
());
ScXMLImport
::
MutexGuard
aGuard
(
GetScImport
());
ScOutlineTable
*
pOutlineTable
=
pDoc
->
GetOutlineTable
(
static_cast
<
SCTAB
>
(
nSheet
)
,
sal_True
);
ScOutlineTable
*
pOutlineTable
=
pDoc
->
GetOutlineTable
(
nSheet
,
sal_True
);
ScOutlineArray
*
pColArray
=
pOutlineTable
?
pOutlineTable
->
GetColArray
()
:
NULL
;
ScOutlineArray
*
pColArray
=
pOutlineTable
?
pOutlineTable
->
GetColArray
()
:
NULL
;
if
(
pColArray
)
if
(
pColArray
)
{
{
...
...
sc/source/filter/xml/xmlimprt.cxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -3006,7 +3006,7 @@ void ScXMLImport::ProgressBarIncrement(sal_Bool bEditCell, sal_Int32 nInc)
...
@@ -3006,7 +3006,7 @@ void ScXMLImport::ProgressBarIncrement(sal_Bool bEditCell, sal_Int32 nInc)
}
}
}
}
sal_Int32
ScXMLImport
::
GetVisibleSheet
()
SCTAB
ScXMLImport
::
GetVisibleSheet
()
{
{
// Get the visible sheet number from model's view data (after settings were loaded),
// Get the visible sheet number from model's view data (after settings were loaded),
// or 0 (default: first sheet) if no settings available.
// or 0 (default: first sheet) if no settings available.
...
...
sc/source/filter/xml/xmlimprt.hxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -617,7 +617,7 @@ class SolarMutexGuard;
...
@@ -617,7 +617,7 @@ class SolarMutexGuard;
struct
tScMyCellRange
struct
tScMyCellRange
{
{
sal_Int16
Sheet
;
SCTAB
Sheet
;
sal_Int32
StartColumn
,
EndColumn
;
sal_Int32
StartColumn
,
EndColumn
;
sal_Int32
StartRow
,
EndRow
;
sal_Int32
StartRow
,
EndRow
;
};
};
...
@@ -1009,7 +1009,7 @@ public:
...
@@ -1009,7 +1009,7 @@ public:
void
SetLabelRanges
();
void
SetLabelRanges
();
void
AddDefaultNote
(
const
com
::
sun
::
star
::
table
::
CellAddress
&
aCell
);
void
AddDefaultNote
(
const
com
::
sun
::
star
::
table
::
CellAddress
&
aCell
);
sal_Int32
GetVisibleSheet
();
SCTAB
GetVisibleSheet
();
/** Extracts the formula string, the formula grammar namespace URL, and a
/** Extracts the formula string, the formula grammar namespace URL, and a
grammar enum value from the passed formula attribute value.
grammar enum value from the passed formula attribute value.
...
...
sc/source/filter/xml/xmlrowi.cxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -169,7 +169,7 @@ void ScXMLTableRowContext::EndElement()
...
@@ -169,7 +169,7 @@ void ScXMLTableRowContext::EndElement()
GetScImport
().
GetTables
().
AddRow
();
GetScImport
().
GetTables
().
AddRow
();
DBG_ERRORFILE
(
"it seems here is a nonvalid file; possible missing of table:table-cell element"
);
DBG_ERRORFILE
(
"it seems here is a nonvalid file; possible missing of table:table-cell element"
);
}
}
sal_Int32
nSheet
=
rXMLImport
.
GetTables
().
GetCurrentSheet
();
SCTAB
nSheet
=
rXMLImport
.
GetTables
().
GetCurrentSheet
();
sal_Int32
nCurrentRow
(
rXMLImport
.
GetTables
().
GetCurrentRow
());
sal_Int32
nCurrentRow
(
rXMLImport
.
GetTables
().
GetCurrentRow
());
uno
::
Reference
<
sheet
::
XSpreadsheet
>
xSheet
(
rXMLImport
.
GetTables
().
GetCurrentXSheet
());
uno
::
Reference
<
sheet
::
XSpreadsheet
>
xSheet
(
rXMLImport
.
GetTables
().
GetCurrentXSheet
());
if
(
xSheet
.
is
())
if
(
xSheet
.
is
())
...
@@ -202,7 +202,7 @@ void ScXMLTableRowContext::EndElement()
...
@@ -202,7 +202,7 @@ void ScXMLTableRowContext::EndElement()
if
(
nSheet
!=
pStyle
->
GetLastSheet
()
)
if
(
nSheet
!=
pStyle
->
GetLastSheet
()
)
{
{
ScSheetSaveData
*
pSheetData
=
ScModelObj
::
getImplementation
(
rXMLImport
.
GetModel
())
->
GetSheetSaveData
();
ScSheetSaveData
*
pSheetData
=
ScModelObj
::
getImplementation
(
rXMLImport
.
GetModel
())
->
GetSheetSaveData
();
pSheetData
->
AddRowStyle
(
sStyleName
,
ScAddress
(
0
,
(
SCROW
)
nFirstRow
,
(
SCTAB
)
nSheet
)
);
pSheetData
->
AddRowStyle
(
sStyleName
,
ScAddress
(
0
,
(
SCROW
)
nFirstRow
,
nSheet
)
);
pStyle
->
SetLastSheet
(
nSheet
);
pStyle
->
SetLastSheet
(
nSheet
);
}
}
}
}
...
@@ -343,14 +343,14 @@ void ScXMLTableRowsContext::EndElement()
...
@@ -343,14 +343,14 @@ void ScXMLTableRowsContext::EndElement()
else
if
(
bGroup
)
else
if
(
bGroup
)
{
{
nGroupEndRow
=
rXMLImport
.
GetTables
().
GetCurrentRow
();
nGroupEndRow
=
rXMLImport
.
GetTables
().
GetCurrentRow
();
sal_Int32
nSheet
(
rXMLImport
.
GetTables
().
GetCurrentSheet
());
SCTAB
nSheet
(
rXMLImport
.
GetTables
().
GetCurrentSheet
());
if
(
nGroupStartRow
<=
nGroupEndRow
)
if
(
nGroupStartRow
<=
nGroupEndRow
)
{
{
ScDocument
*
pDoc
(
GetScImport
().
GetDocument
());
ScDocument
*
pDoc
(
GetScImport
().
GetDocument
());
if
(
pDoc
)
if
(
pDoc
)
{
{
ScXMLImport
::
MutexGuard
aGuard
(
GetScImport
());
ScXMLImport
::
MutexGuard
aGuard
(
GetScImport
());
ScOutlineTable
*
pOutlineTable
(
pDoc
->
GetOutlineTable
(
static_cast
<
SCTAB
>
(
nSheet
)
,
sal_True
));
ScOutlineTable
*
pOutlineTable
(
pDoc
->
GetOutlineTable
(
nSheet
,
sal_True
));
ScOutlineArray
*
pRowArray
(
pOutlineTable
->
GetRowArray
());
ScOutlineArray
*
pRowArray
(
pOutlineTable
->
GetRowArray
());
sal_Bool
bResized
;
sal_Bool
bResized
;
pRowArray
->
Insert
(
static_cast
<
SCROW
>
(
nGroupStartRow
),
static_cast
<
SCROW
>
(
nGroupEndRow
),
bResized
,
!
bGroupDisplay
,
sal_True
);
pRowArray
->
Insert
(
static_cast
<
SCROW
>
(
nGroupStartRow
),
static_cast
<
SCROW
>
(
nGroupEndRow
),
bResized
,
!
bGroupDisplay
,
sal_True
);
...
...
sc/source/filter/xml/xmlsceni.cxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -146,7 +146,7 @@ SvXMLImportContext *ScXMLTableScenarioContext::CreateChildContext(
...
@@ -146,7 +146,7 @@ SvXMLImportContext *ScXMLTableScenarioContext::CreateChildContext(
void
ScXMLTableScenarioContext
::
EndElement
()
void
ScXMLTableScenarioContext
::
EndElement
()
{
{
SCTAB
nCurrTable
(
sal
::
static_int_cast
<
SCTAB
>
(
GetScImport
().
GetTables
().
GetCurrentSheet
()
)
);
SCTAB
nCurrTable
(
GetScImport
().
GetTables
().
GetCurrentSheet
(
)
);
ScDocument
*
pDoc
(
GetScImport
().
GetDocument
());
ScDocument
*
pDoc
(
GetScImport
().
GetDocument
());
if
(
pDoc
)
if
(
pDoc
)
{
{
...
...
sc/source/filter/xml/xmlstyli.cxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -1060,14 +1060,14 @@ void ScCellTextStyleContext::FillPropertySet( const uno::Reference<beans::XPrope
...
@@ -1060,14 +1060,14 @@ void ScCellTextStyleContext::FillPropertySet( const uno::Reference<beans::XPrope
if
(
pCellImp
)
if
(
pCellImp
)
{
{
ScAddress
aPos
=
pCellImp
->
GetCellObj
().
GetPosition
();
ScAddress
aPos
=
pCellImp
->
GetCellObj
().
GetPosition
();
if
(
static_cast
<
sal_Int32
>
(
aPos
.
Tab
()
)
!=
nLastSheet
)
if
(
aPos
.
Tab
(
)
!=
nLastSheet
)
{
{
ESelection
aSel
=
pCellImp
->
GetSelection
();
ESelection
aSel
=
pCellImp
->
GetSelection
();
ScSheetSaveData
*
pSheetData
=
ScModelObj
::
getImplementation
(
GetImport
().
GetModel
())
->
GetSheetSaveData
();
ScSheetSaveData
*
pSheetData
=
ScModelObj
::
getImplementation
(
GetImport
().
GetModel
())
->
GetSheetSaveData
();
pSheetData
->
AddTextStyle
(
GetName
(),
aPos
,
aSel
);
pSheetData
->
AddTextStyle
(
GetName
(),
aPos
,
aSel
);
nLastSheet
=
static_cast
<
sal_Int32
>
(
aPos
.
Tab
()
);
nLastSheet
=
aPos
.
Tab
(
);
}
}
}
}
else
if
(
rXMLImport
.
GetTables
().
GetCurrentSheet
()
!=
nLastSheet
)
else
if
(
rXMLImport
.
GetTables
().
GetCurrentSheet
()
!=
nLastSheet
)
...
...
sc/source/filter/xml/xmlstyli.hxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -102,7 +102,7 @@ class XMLTableStyleContext : public XMLPropStyleContext
...
@@ -102,7 +102,7 @@ class XMLTableStyleContext : public XMLPropStyleContext
std
::
vector
<
ScXMLMapContent
>
aMaps
;
std
::
vector
<
ScXMLMapContent
>
aMaps
;
com
::
sun
::
star
::
uno
::
Any
aConditionalFormat
;
com
::
sun
::
star
::
uno
::
Any
aConditionalFormat
;
sal_Int32
nNumberFormat
;
sal_Int32
nNumberFormat
;
sal_Int32
nLastSheet
;
SCTAB
nLastSheet
;
sal_Bool
bConditionalFormatCreated
;
sal_Bool
bConditionalFormatCreated
;
sal_Bool
bParentSet
;
sal_Bool
bParentSet
;
...
@@ -160,8 +160,8 @@ public:
...
@@ -160,8 +160,8 @@ public:
sal_Int32
GetNumberFormat
();
// { return nNumberFormat; }
sal_Int32
GetNumberFormat
();
// { return nNumberFormat; }
sal_Int32
GetLastSheet
()
const
{
return
nLastSheet
;
}
SCTAB
GetLastSheet
()
const
{
return
nLastSheet
;
}
void
SetLastSheet
(
sal_Int32
nNew
)
{
nLastSheet
=
nNew
;
}
void
SetLastSheet
(
SCTAB
nNew
)
{
nLastSheet
=
nNew
;
}
private
:
private
:
using
XMLPropStyleContext
::
SetStyle
;
using
XMLPropStyleContext
::
SetStyle
;
...
...
sc/source/filter/xml/xmlsubti.cxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -67,14 +67,14 @@ using ::std::auto_ptr;
...
@@ -67,14 +67,14 @@ using ::std::auto_ptr;
using
namespace
com
::
sun
::
star
;
using
namespace
com
::
sun
::
star
;
ScMyTableData
::
ScMyTableData
(
sal_Int32
nSheet
,
sal_Int32
nCol
,
sal_Int32
nRow
)
ScMyTableData
::
ScMyTableData
(
SCTAB
nSheet
,
sal_Int32
nCol
,
sal_Int32
nRow
)
:
nColsPerCol
(
nDefaultColCount
,
1
),
:
nColsPerCol
(
nDefaultColCount
,
1
),
nRealCols
(
nDefaultColCount
+
1
,
0
),
nRealCols
(
nDefaultColCount
+
1
,
0
),
nRowsPerRow
(
nDefaultRowCount
,
1
),
nRowsPerRow
(
nDefaultRowCount
,
1
),
nRealRows
(
nDefaultRowCount
+
1
,
0
),
nRealRows
(
nDefaultRowCount
+
1
,
0
),
nChangedCols
()
nChangedCols
()
{
{
aTableCellPos
.
Sheet
=
sal
::
static_int_cast
<
sal_Int16
>
(
nSheet
)
;
aTableCellPos
.
Sheet
=
nSheet
;
aTableCellPos
.
Column
=
nCol
;
aTableCellPos
.
Column
=
nCol
;
aTableCellPos
.
Row
=
nRow
;
aTableCellPos
.
Row
=
nRow
;
...
@@ -192,7 +192,7 @@ void ScMyTables::NewSheet(const rtl::OUString& sTableName, const rtl::OUString&
...
@@ -192,7 +192,7 @@ void ScMyTables::NewSheet(const rtl::OUString& sTableName, const rtl::OUString&
{
{
try
try
{
{
xSheets
->
insertNewByName
(
sTableName
,
sal
::
static_int_cast
<
sal_Int16
>
(
nCurrentSheet
)
);
xSheets
->
insertNewByName
(
sTableName
,
nCurrentSheet
);
}
}
catch
(
uno
::
RuntimeException
&
)
catch
(
uno
::
RuntimeException
&
)
{
{
...
@@ -203,7 +203,7 @@ void ScMyTables::NewSheet(const rtl::OUString& sTableName, const rtl::OUString&
...
@@ -203,7 +203,7 @@ void ScMyTables::NewSheet(const rtl::OUString& sTableName, const rtl::OUString&
String
sTabName
(
String
::
CreateFromAscii
(
"Table"
));
String
sTabName
(
String
::
CreateFromAscii
(
"Table"
));
pDoc
->
CreateValidTabName
(
sTabName
);
pDoc
->
CreateValidTabName
(
sTabName
);
rtl
::
OUString
sOUTabName
(
sTabName
);
rtl
::
OUString
sOUTabName
(
sTabName
);
xSheets
->
insertNewByName
(
sOUTabName
,
sal
::
static_int_cast
<
sal_Int16
>
(
nCurrentSheet
)
);
xSheets
->
insertNewByName
(
sOUTabName
,
nCurrentSheet
);
}
}
}
}
}
}
...
@@ -260,7 +260,7 @@ void ScMyTables::NewSheet(const rtl::OUString& sTableName, const rtl::OUString&
...
@@ -260,7 +260,7 @@ void ScMyTables::NewSheet(const rtl::OUString& sTableName, const rtl::OUString&
pStyle
->
FillPropertySet
(
xProperties
);
pStyle
->
FillPropertySet
(
xProperties
);
ScSheetSaveData
*
pSheetData
=
ScModelObj
::
getImplementation
(
rImport
.
GetModel
())
->
GetSheetSaveData
();
ScSheetSaveData
*
pSheetData
=
ScModelObj
::
getImplementation
(
rImport
.
GetModel
())
->
GetSheetSaveData
();
pSheetData
->
AddTableStyle
(
sStyleName
,
ScAddress
(
0
,
0
,
(
SCTAB
)
nCurrentSheet
)
);
pSheetData
->
AddTableStyle
(
sStyleName
,
ScAddress
(
0
,
0
,
nCurrentSheet
)
);
}
}
}
}
}
}
...
@@ -608,7 +608,7 @@ void ScMyTables::UpdateRowHeights()
...
@@ -608,7 +608,7 @@ void ScMyTables::UpdateRowHeights()
SCTAB
nCount
=
pDoc
->
GetTableCount
();
SCTAB
nCount
=
pDoc
->
GetTableCount
();
ScDrawLayer
*
pDrawLayer
=
pDoc
->
GetDrawLayer
();
ScDrawLayer
*
pDrawLayer
=
pDoc
->
GetDrawLayer
();
SCTAB
nVisible
=
static_cast
<
SCTAB
>
(
rImport
.
GetVisibleSheet
()
);
SCTAB
nVisible
=
rImport
.
GetVisibleSheet
(
);
ScMarkData
aUpdateSheets
;
ScMarkData
aUpdateSheets
;
for
(
SCTAB
nTab
=
0
;
nTab
<
nCount
;
++
nTab
)
for
(
SCTAB
nTab
=
0
;
nTab
<
nCount
;
++
nTab
)
...
@@ -667,7 +667,7 @@ void ScMyTables::DeleteTable()
...
@@ -667,7 +667,7 @@ void ScMyTables::DeleteTable()
pProtect
->
setPasswordHash
(
aHash
,
maProtectionData
.
meHash1
,
maProtectionData
.
meHash2
);
pProtect
->
setPasswordHash
(
aHash
,
maProtectionData
.
meHash1
,
maProtectionData
.
meHash2
);
pProtect
->
setOption
(
ScTableProtection
::
SELECT_LOCKED_CELLS
,
maProtectionData
.
mbSelectProtectedCells
);
pProtect
->
setOption
(
ScTableProtection
::
SELECT_LOCKED_CELLS
,
maProtectionData
.
mbSelectProtectedCells
);
pProtect
->
setOption
(
ScTableProtection
::
SELECT_UNLOCKED_CELLS
,
maProtectionData
.
mbSelectUnprotectedCells
);
pProtect
->
setOption
(
ScTableProtection
::
SELECT_UNLOCKED_CELLS
,
maProtectionData
.
mbSelectUnprotectedCells
);
rImport
.
GetDocument
()
->
SetTabProtection
(
static_cast
<
SCTAB
>
(
nCurrentSheet
)
,
pProtect
.
get
());
rImport
.
GetDocument
()
->
SetTabProtection
(
nCurrentSheet
,
pProtect
.
get
());
}
}
//#95582#; find out whether it was possible to set the sheet name
//#95582#; find out whether it was possible to set the sheet name
...
@@ -679,7 +679,7 @@ void ScMyTables::DeleteTable()
...
@@ -679,7 +679,7 @@ void ScMyTables::DeleteTable()
rtl
::
OUString
sCurrentName
(
xNamed
->
getName
());
rtl
::
OUString
sCurrentName
(
xNamed
->
getName
());
if
(
sCurrentName
!=
sCurrentSheetName
&&
rImport
.
GetDocument
())
if
(
sCurrentName
!=
sCurrentSheetName
&&
rImport
.
GetDocument
())
{
{
rImport
.
GetDocument
()
->
RenameTab
(
static_cast
<
SCTAB
>
(
nCurrentSheet
)
,
rImport
.
GetDocument
()
->
RenameTab
(
nCurrentSheet
,
sCurrentSheetName
,
false
,
sal_True
);
sCurrentSheetName
,
false
,
sal_True
);
}
}
}
}
...
@@ -699,7 +699,7 @@ table::CellAddress ScMyTables::GetRealCellPos()
...
@@ -699,7 +699,7 @@ table::CellAddress ScMyTables::GetRealCellPos()
aRealCellPos
.
Row
=
nRow
;
aRealCellPos
.
Row
=
nRow
;
aRealCellPos
.
Column
=
nCol
;
aRealCellPos
.
Column
=
nCol
;
aRealCellPos
.
Sheet
=
sal
::
static_int_cast
<
sal_Int16
>
(
nCurrentSheet
)
;
aRealCellPos
.
Sheet
=
nCurrentSheet
;
return
aRealCellPos
;
return
aRealCellPos
;
}
}
...
@@ -769,7 +769,7 @@ void ScMyTables::AddMatrixRange(
...
@@ -769,7 +769,7 @@ void ScMyTables::AddMatrixRange(
aRange
.
StartRow
=
nStartRow
;
aRange
.
StartRow
=
nStartRow
;
aRange
.
EndColumn
=
nEndColumn
;
aRange
.
EndColumn
=
nEndColumn
;
aRange
.
EndRow
=
nEndRow
;
aRange
.
EndRow
=
nEndRow
;
aRange
.
Sheet
=
sal
::
static_int_cast
<
sal_Int16
>
(
nCurrentSheet
)
;
aRange
.
Sheet
=
nCurrentSheet
;
ScMatrixRange
aMRange
(
aRange
,
rFormula
,
rFormulaNmsp
,
eGrammar
);
ScMatrixRange
aMRange
(
aRange
,
rFormula
,
rFormulaNmsp
,
eGrammar
);
aMatrixRangeList
.
push_back
(
aMRange
);
aMatrixRangeList
.
push_back
(
aMRange
);
}
}
...
...
sc/source/filter/xml/xmlsubti.hxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -67,7 +67,7 @@ private:
...
@@ -67,7 +67,7 @@ private:
sal_Int32
nSubTableSpanned
;
sal_Int32
nSubTableSpanned
;
ScMysalIntList
nChangedCols
;
ScMysalIntList
nChangedCols
;
public
:
public
:
ScMyTableData
(
sal_Int32
nSheet
=
-
1
,
sal_Int32
nCol
=
-
1
,
sal_Int32
nRow
=
-
1
);
ScMyTableData
(
SCTAB
nSheet
=
-
1
,
sal_Int32
nCol
=
-
1
,
sal_Int32
nRow
=
-
1
);
~
ScMyTableData
();
~
ScMyTableData
();
com
::
sun
::
star
::
table
::
CellAddress
GetCellPos
()
const
{
return
aTableCellPos
;
}
com
::
sun
::
star
::
table
::
CellAddress
GetCellPos
()
const
{
return
aTableCellPos
;
}
sal_Int32
GetRow
()
const
{
return
aTableCellPos
.
Row
;
}
sal_Int32
GetRow
()
const
{
return
aTableCellPos
.
Row
;
}
...
@@ -142,7 +142,7 @@ private:
...
@@ -142,7 +142,7 @@ private:
sal_Int32
nCurrentColStylePos
;
sal_Int32
nCurrentColStylePos
;
sal_Int16
nCurrentDrawPage
;
sal_Int16
nCurrentDrawPage
;
sal_Int16
nCurrentXShapes
;
sal_Int16
nCurrentXShapes
;
sal_Int32
nCurrentSheet
;
SCTAB
nCurrentSheet
;
sal_Bool
IsMerged
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
table
::
XCellRange
>&
xCellRange
,
sal_Bool
IsMerged
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
table
::
XCellRange
>&
xCellRange
,
const
sal_Int32
nCol
,
const
sal_Int32
nRow
,
const
sal_Int32
nCol
,
const
sal_Int32
nRow
,
...
@@ -172,7 +172,7 @@ public:
...
@@ -172,7 +172,7 @@ public:
void
AddColStyle
(
const
sal_Int32
nRepeat
,
const
rtl
::
OUString
&
rCellStyleName
);
void
AddColStyle
(
const
sal_Int32
nRepeat
,
const
rtl
::
OUString
&
rCellStyleName
);
ScXMLTabProtectionData
&
GetCurrentProtectionData
()
{
return
maProtectionData
;
}
ScXMLTabProtectionData
&
GetCurrentProtectionData
()
{
return
maProtectionData
;
}
rtl
::
OUString
GetCurrentSheetName
()
const
{
return
sCurrentSheetName
;
}
rtl
::
OUString
GetCurrentSheetName
()
const
{
return
sCurrentSheetName
;
}
sal_Int32
GetCurrentSheet
()
const
{
return
nCurrentSheet
;
}
SCTAB
GetCurrentSheet
()
const
{
return
nCurrentSheet
;
}
sal_Int32
GetCurrentColumn
()
const
{
return
maTables
.
back
().
GetColCount
();
}
sal_Int32
GetCurrentColumn
()
const
{
return
maTables
.
back
().
GetColCount
();
}
sal_Int32
GetCurrentRow
()
const
{
return
maTables
.
back
().
GetRow
();
}
sal_Int32
GetCurrentRow
()
const
{
return
maTables
.
back
().
GetRow
();
}
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sheet
::
XSpreadsheet
>
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sheet
::
XSpreadsheet
>
...
...
sc/source/filter/xml/xmltabi.cxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -285,8 +285,8 @@ SvXMLImportContext *ScXMLTableContext::CreateChildContext( sal_uInt16 nPrefix,
...
@@ -285,8 +285,8 @@ SvXMLImportContext *ScXMLTableContext::CreateChildContext( sal_uInt16 nPrefix,
ScDocument
*
pDoc
=
GetScImport
().
GetDocument
();
ScDocument
*
pDoc
=
GetScImport
().
GetDocument
();
if
(
pDoc
)
if
(
pDoc
)
{
{
sal_Int32
nTab
=
GetScImport
().
GetTables
().
GetCurrentSheet
();
SCTAB
nTab
=
GetScImport
().
GetTables
().
GetCurrentSheet
();
ScRangeName
*
pRN
=
pDoc
->
GetRangeName
(
static_cast
<
SCTAB
>
(
nTab
)
);
ScRangeName
*
pRN
=
pDoc
->
GetRangeName
(
nTab
);
if
(
pRN
)
if
(
pRN
)
{
{
pContext
=
new
ScXMLNamedExpressionsContext
(
pContext
=
new
ScXMLNamedExpressionsContext
(
...
@@ -381,7 +381,7 @@ void ScXMLTableContext::EndElement()
...
@@ -381,7 +381,7 @@ void ScXMLTableContext::EndElement()
if
(
!
pDoc
)
if
(
!
pDoc
)
return
;
return
;
SCTAB
nCurTab
=
static_cast
<
SCTAB
>
(
GetScImport
().
GetTables
().
GetCurrentSheet
()
);
SCTAB
nCurTab
=
GetScImport
().
GetTables
().
GetCurrentSheet
(
);
if
(
sPrintRanges
.
getLength
())
if
(
sPrintRanges
.
getLength
())
{
{
Reference
<
sheet
::
XPrintAreas
>
xPrintAreas
(
Reference
<
sheet
::
XPrintAreas
>
xPrintAreas
(
...
@@ -446,7 +446,7 @@ void ScXMLTableContext::EndElement()
...
@@ -446,7 +446,7 @@ void ScXMLTableContext::EndElement()
if
(
!
pExternalRefInfo
.
get
()
&&
nStartOffset
>=
0
/* && nEndOffset >= 0 */
)
if
(
!
pExternalRefInfo
.
get
()
&&
nStartOffset
>=
0
/* && nEndOffset >= 0 */
)
{
{
ScSheetSaveData
*
pSheetData
=
ScModelObj
::
getImplementation
(
GetScImport
().
GetModel
())
->
GetSheetSaveData
();
ScSheetSaveData
*
pSheetData
=
ScModelObj
::
getImplementation
(
GetScImport
().
GetModel
())
->
GetSheetSaveData
();
sal_Int32
nTab
=
GetScImport
().
GetTables
().
GetCurrentSheet
();
SCTAB
nTab
=
GetScImport
().
GetTables
().
GetCurrentSheet
();
// pSheetData->AddStreamPos( nTab, nStartOffset, nEndOffset );
// pSheetData->AddStreamPos( nTab, nStartOffset, nEndOffset );
pSheetData
->
StartStreamPos
(
nTab
,
nStartOffset
);
pSheetData
->
StartStreamPos
(
nTab
,
nStartOffset
);
}
}
...
...
sc/source/ui/vba/vbaquerytable.cxx
Dosyayı görüntüle @
d4a8a64c
...
@@ -59,9 +59,9 @@ ScVbaQueryTable::Refresh( const ::com::sun::star::uno::Any& /*aBackgroundQuery*/
...
@@ -59,9 +59,9 @@ ScVbaQueryTable::Refresh( const ::com::sun::star::uno::Any& /*aBackgroundQuery*/
{
{
//Get parent Info
//Get parent Info
sal_Int32
nRow
=
m_pParent
->
getRow
();
SCROW
nRow
=
m_pParent
->
getRow
();
sal_Int32
nClm
=
m_pParent
->
getColumn
();
SCCOL
nClm
=
m_pParent
->
getColumn
();
sal_Int16
nTab
=
m_pParent
->
getWorksheet
()
->
getIndex
()
-
1
;
//The vba index begin from 1.
SCTAB
nTab
=
m_pParent
->
getWorksheet
()
->
getIndex
()
-
1
;
//The vba index begin from 1.
ScAddress
crrRngAddr
(
nClm
,
nRow
,
nTab
);
ScAddress
crrRngAddr
(
nClm
,
nRow
,
nTab
);
//Get link info
//Get link info
...
...
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