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
a0704feb
Commit
a0704feb
authored
Sep 05, 2016
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 33053
parent
348c5780
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
11 deletions
+29
-11
ASCOfficeDocxFile2/BinWriter/BinWriters.h
ASCOfficeDocxFile2/BinWriter/BinWriters.h
+1
-1
ASCOfficePPTXFile/PPTXFormat/DocxFormat/FileType.h
ASCOfficePPTXFile/PPTXFormat/DocxFormat/FileType.h
+12
-3
ASCOfficePPTXFile/PPTXFormat/DocxFormat/IFileContainer.cpp
ASCOfficePPTXFile/PPTXFormat/DocxFormat/IFileContainer.cpp
+2
-2
Common/DocxFormat/Source/DocxFormat/FileType.h
Common/DocxFormat/Source/DocxFormat/FileType.h
+12
-3
Common/DocxFormat/Source/DocxFormat/IFileContainer.cpp
Common/DocxFormat/Source/DocxFormat/IFileContainer.cpp
+1
-1
Common/DocxFormat/Source/XlsxFormat/IFileContainer_Spreadsheet.cpp
...cxFormat/Source/XlsxFormat/IFileContainer_Spreadsheet.cpp
+1
-1
No files found.
ASCOfficeDocxFile2/BinWriter/BinWriters.h
View file @
a0704feb
...
...
@@ -1138,7 +1138,7 @@ namespace BinDocxRW
m_oBcw
.
m_oStream
.
WriteBYTE
(
c_oSerPropLenType
::
Byte
);
switch
(
TabItem
.
m_oVal
.
get
().
GetValue
())
{
case
SimpleTypes
:
:
tabjcEnd
:
break
;
case
SimpleTypes
:
:
tabjcEnd
:
case
SimpleTypes
:
:
tabjcRight
:
m_oBcw
.
m_oStream
.
WriteBYTE
(
g_tabtype_right
);
bRight
=
true
;
...
...
ASCOfficePPTXFile/PPTXFormat/DocxFormat/FileType.h
View file @
a0704feb
...
...
@@ -95,12 +95,21 @@ namespace PPTX
static
const
bool
operator
==
(
const
CString
&
type
,
const
FileType
&
file
)
{
return
(
type
==
file
.
RelationType
());
//RelationType
//http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument
//http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument
//is valid and equal so compare tail
int
nIndexType
=
type
.
ReverseFind
(
'/'
);
CString
relationType
=
file
.
RelationType
();
int
nIndexFile
=
relationType
.
ReverseFind
(
'/'
);
CString
tempType
=
(
-
1
==
nIndexType
)
?
type
:
type
.
Right
(
type
.
GetLength
()
-
nIndexType
);
CString
tempFile
=
(
-
1
==
nIndexFile
)
?
relationType
:
relationType
.
Right
(
relationType
.
GetLength
()
-
nIndexFile
);
return
(
tempType
==
tempFile
);
}
static
const
bool
operator
==
(
const
FileType
&
file
,
const
CString
&
type
)
{
return
(
file
.
RelationType
()
==
type
)
;
return
type
==
file
;
}
}
// namespace PPTX
#endif // OOX_FILE_TYPE_INCLUDE_H_
\ No newline at end of file
#endif // OOX_FILE_TYPE_INCLUDE_H_
ASCOfficePPTXFile/PPTXFormat/DocxFormat/IFileContainer.cpp
View file @
a0704feb
...
...
@@ -281,8 +281,8 @@ namespace PPTX
CString
type
=
it
->
second
->
type
().
RelationType
();
CString
name
=
it
->
second
->
type
().
DefaultFileName
().
m_strFilename
;
return
(((
type
==
PPTX
::
FileTypes
::
ExternalAudio
.
RelationType
())
||
(
type
==
PPTX
::
FileTypes
::
ExternalImage
.
RelationType
()
)
||
(
type
==
PPTX
::
FileTypes
::
ExternalVideo
.
RelationType
()
))
&&
(
name
==
_T
(
""
)));
return
(((
type
==
PPTX
::
FileTypes
::
ExternalAudio
)
||
(
type
==
PPTX
::
FileTypes
::
ExternalImage
)
||
(
type
==
PPTX
::
FileTypes
::
ExternalVideo
))
&&
(
name
==
_T
(
""
)));
}
return
true
;
}
...
...
Common/DocxFormat/Source/DocxFormat/FileType.h
View file @
a0704feb
...
...
@@ -108,12 +108,21 @@ namespace OOX
static
const
bool
operator
==
(
const
CString
&
type
,
const
FileType
&
file
)
{
return
(
type
==
file
.
RelationType
());
//RelationType
//http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument
//http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument
//is valid and equal so compare tail
int
nIndexType
=
type
.
ReverseFind
(
'/'
);
CString
relationType
=
file
.
RelationType
();
int
nIndexFile
=
relationType
.
ReverseFind
(
'/'
);
CString
tempType
=
(
-
1
==
nIndexType
)
?
type
:
type
.
Right
(
type
.
GetLength
()
-
nIndexType
);
CString
tempFile
=
(
-
1
==
nIndexFile
)
?
relationType
:
relationType
.
Right
(
relationType
.
GetLength
()
-
nIndexFile
);
return
(
tempType
==
tempFile
);
}
static
const
bool
operator
==
(
const
FileType
&
file
,
const
CString
&
type
)
{
return
(
file
.
RelationType
()
==
type
)
;
return
type
==
file
;
}
}
// namespace OOX
#endif // OOX_FILE_TYPE_INCLUDE_H_
\ No newline at end of file
#endif // OOX_FILE_TYPE_INCLUDE_H_
Common/DocxFormat/Source/DocxFormat/IFileContainer.cpp
View file @
a0704feb
...
...
@@ -277,7 +277,7 @@ namespace OOX
CString
sType
=
it
->
second
->
type
().
RelationType
();
CString
sName
=
it
->
second
->
type
().
DefaultFileName
().
m_strFilename
;
return
((
(
sType
==
OOX
::
FileTypes
::
ExternalAudio
.
RelationType
()
)
||
(
sType
==
OOX
::
FileTypes
::
ExternalImage
.
RelationType
()
)
||
(
sType
==
OOX
::
FileTypes
::
ExternalVideo
.
RelationType
()
)
)
&&
(
sName
==
_T
(
""
)
)
);
return
((
(
sType
==
OOX
::
FileTypes
::
ExternalAudio
)
||
(
sType
==
OOX
::
FileTypes
::
ExternalImage
)
||
(
sType
==
OOX
::
FileTypes
::
ExternalVideo
)
)
&&
(
sName
==
_T
(
""
)
)
);
}
return
true
;
}
...
...
Common/DocxFormat/Source/XlsxFormat/IFileContainer_Spreadsheet.cpp
View file @
a0704feb
...
...
@@ -235,7 +235,7 @@ namespace OOX
CString
sType
=
pPair
->
second
->
type
().
RelationType
();
CString
sName
=
pPair
->
second
->
type
().
DefaultFileName
().
m_strFilename
;
return
((
(
sType
==
OOX
::
FileTypes
::
ExternalAudio
.
RelationType
()
)
||
(
sType
==
OOX
::
FileTypes
::
ExternalImage
.
RelationType
()
)
||
(
sType
==
OOX
::
FileTypes
::
ExternalVideo
.
RelationType
()
)
)
&&
(
sName
==
_T
(
""
)
)
);
return
((
(
sType
==
OOX
::
FileTypes
::
ExternalAudio
)
||
(
sType
==
OOX
::
FileTypes
::
ExternalImage
)
||
(
sType
==
OOX
::
FileTypes
::
ExternalVideo
)
)
&&
(
sName
==
_T
(
""
)
)
);
}
return
true
;
}
...
...
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