Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
a8a684bf
Commit
a8a684bf
authored
Sep 21, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xlst->xlsx fix chart range (= defined name)
parent
64a7d22f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
13 deletions
+24
-13
ASCOfficeDocxFile2/DocWrapper/ChartWriter.cpp
ASCOfficeDocxFile2/DocWrapper/ChartWriter.cpp
+4
-0
Common/DocxFormat/Source/XlsxFormat/Worksheets/Worksheet.h
Common/DocxFormat/Source/XlsxFormat/Worksheets/Worksheet.h
+19
-12
X2tConverter/build/Qt/X2tConverter.pro
X2tConverter/build/Qt/X2tConverter.pro
+1
-1
No files found.
ASCOfficeDocxFile2/DocWrapper/ChartWriter.cpp
View file @
a8a684bf
...
...
@@ -789,6 +789,10 @@ namespace BinXlsxRW{
}
}
}
else
{
//range is defined name
}
}
}
void
ChartWriter
::
parseMultiLvlStrRef
(
const
OOX
::
Spreadsheet
::
CT_MultiLvlStrRef
*
pMultiLvlStrRef
,
bool
bUpdateRange
,
const
wchar_t
*
cRangeName
)
...
...
Common/DocxFormat/Source/XlsxFormat/Worksheets/Worksheet.h
View file @
a8a684bf
...
...
@@ -408,7 +408,8 @@ namespace OOX
bool
bRes
=
false
;
int
nIndex
=
sRef
.
Find
(
'!'
);
CString
sCellRef
;
if
(
-
1
!=
nIndex
)
if
(
-
1
!=
nIndex
)
{
CString
sSheetPrefix
=
sRef
.
Left
(
nIndex
);
if
(
sSheetPrefix
.
GetLength
()
>
0
&&
'\''
==
sSheetPrefix
[
0
]
&&
'\''
==
sSheetPrefix
[
sSheetPrefix
.
GetLength
()
-
1
])
...
...
@@ -416,24 +417,26 @@ namespace OOX
sSheetPrefix
=
sSheetPrefix
.
Mid
(
1
,
sSheetPrefix
.
GetLength
()
-
2
);
}
sSheetPrefix
.
Replace
(
L"''"
,
L"'"
);
int
nIndexWbStart
=
sSheetPrefix
.
Find
(
'['
);
int
nIndexWbEnd
=
sSheetPrefix
.
Find
(
']'
);
if
(
-
1
!=
nIndexWbStart
&&
-
1
!=
nIndexWbEnd
)
int
nIndexWbStart
=
sSheetPrefix
.
Find
(
'['
);
int
nIndexWbEnd
=
sSheetPrefix
.
Find
(
']'
);
if
(
-
1
!=
nIndexWbStart
&&
-
1
!=
nIndexWbEnd
)
{
workbook
=
sSheetPrefix
.
Mid
(
nIndexWbStart
+
1
,
nIndexWbEnd
-
nIndexWbStart
-
1
);
sSheetPrefix
=
sSheetPrefix
.
Right
(
sSheetPrefix
.
GetLength
()
-
nIndexWbEnd
-
1
);
workbook
=
sSheetPrefix
.
Mid
(
nIndexWbStart
+
1
,
nIndexWbEnd
-
nIndexWbStart
-
1
);
sSheetPrefix
=
sSheetPrefix
.
Right
(
sSheetPrefix
.
GetLength
()
-
nIndexWbEnd
-
1
);
}
int
nIndexColon
=
sSheetPrefix
.
Find
(
':'
);
if
(
-
1
!=
nIndexColon
)
{
sheetFrom
=
sSheetPrefix
.
Left
(
nIndexColon
);
sheetTo
=
sSheetPrefix
.
Right
(
sSheetPrefix
.
GetLength
()
-
nIndexColon
-
1
);
sheetFrom
=
sSheetPrefix
.
Left
(
nIndexColon
);
sheetTo
=
sSheetPrefix
.
Right
(
sSheetPrefix
.
GetLength
()
-
nIndexColon
-
1
);
}
else
{
sheetFrom
=
sSheetPrefix
;
}
sCellRef
=
sRef
.
Right
(
sRef
.
GetLength
()
-
nIndex
-
1
);
sCellRef
=
sRef
.
Right
(
sRef
.
GetLength
()
-
nIndex
-
1
);
}
else
{
...
...
@@ -456,7 +459,8 @@ namespace OOX
static
bool
parseRef
(
CString
sRef
,
int
&
nRow
,
int
&
nCol
)
{
bool
bRes
=
false
;
nRow
=
0
;
nRow
=
0
;
nCol
=
0
;
int
nLegnth
=
sRef
.
GetLength
();
if
(
nLegnth
>
0
)
...
...
@@ -477,8 +481,11 @@ namespace OOX
{
nCol
=
nCol
*
26
+
sAdd
[
i
]
-
'A'
+
1
;
}
nRow
=
_wtoi
(
sDig
);
bRes
=
true
;
if
(
!
sDig
.
IsEmpty
())
{
nRow
=
_wtoi
(
sDig
);
bRes
=
true
;
}
}
}
return
bRes
;
...
...
X2tConverter/build/Qt/X2tConverter.pro
View file @
a8a684bf
...
...
@@ -7,7 +7,7 @@
QT
-=
core
QT
-=
gui
VERSION
=
2.0
.
2.39
1
VERSION
=
2.0
.
2.39
2
DEFINES
+=
INTVER
=
$$
VERSION
TEMPLATE
=
app
...
...
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