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
f3a510bd
Commit
f3a510bd
authored
Feb 10, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x2t version up 2.0.3.438
parent
45231b82
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
143 additions
and
67 deletions
+143
-67
ASCOfficeDocxFile2/BinWriter/BinWriters.h
ASCOfficeDocxFile2/BinWriter/BinWriters.h
+41
-14
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXParagraphElementReaders.cpp
...RtfFormatLib/source/Reader/OOXParagraphElementReaders.cpp
+61
-32
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXShapeReader.cpp
...ficeRtfFile/RtfFormatLib/source/Reader/OOXShapeReader.cpp
+23
-11
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXTextItemReader.h
...iceRtfFile/RtfFormatLib/source/Reader/OOXTextItemReader.h
+4
-2
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.h
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.h
+13
-7
X2tConverter/build/Qt/X2tConverter.pri
X2tConverter/build/Qt/X2tConverter.pri
+1
-1
No files found.
ASCOfficeDocxFile2/BinWriter/BinWriters.h
View file @
f3a510bd
...
...
@@ -149,8 +149,8 @@ namespace BinDocxRW
switch
(
border
.
m_oVal
.
get
().
GetValue
())
{
case
SimpleTypes
:
:
bordervalueNone
:
case
SimpleTypes
:
:
bordervalueNil
:
m_oStream
.
WriteBYTE
(
border_None
);
break
;
default:
m_oStream
.
WriteBYTE
(
border_Single
);
break
;
case
SimpleTypes
:
:
bordervalueNil
:
m_oStream
.
WriteBYTE
(
border_None
);
break
;
default:
m_oStream
.
WriteBYTE
(
border_Single
);
break
;
}
}
...
...
@@ -538,6 +538,8 @@ namespace BinDocxRW
case
SimpleTypes
:
:
themeMinorBidi
:
case
SimpleTypes
:
:
themeMinorEastAsia
:
case
SimpleTypes
:
:
themeMinorHAnsi
:
sFontAscii
=
m_poTheme
->
GetMinorFont
();
break
;
default:
break
;
}
}
else
if
(
oFont
.
m_sAscii
.
IsInit
())
...
...
@@ -556,6 +558,8 @@ namespace BinDocxRW
case
SimpleTypes
:
:
themeMinorBidi
:
case
SimpleTypes
:
:
themeMinorEastAsia
:
case
SimpleTypes
:
:
themeMinorHAnsi
:
sFontHAnsi
=
m_poTheme
->
GetMinorFont
();
break
;
default:
break
;
}
}
else
if
(
oFont
.
m_sHAnsi
.
IsInit
())
...
...
@@ -573,6 +577,7 @@ namespace BinDocxRW
case
SimpleTypes
:
:
themeMinorBidi
:
case
SimpleTypes
:
:
themeMinorEastAsia
:
case
SimpleTypes
:
:
themeMinorHAnsi
:
sFontCS
=
m_poTheme
->
GetMinorFont
();
break
;
default:
break
;
}
}
else
if
(
oFont
.
m_sCs
.
IsInit
())
...
...
@@ -590,6 +595,7 @@ namespace BinDocxRW
case
SimpleTypes
:
:
themeMinorBidi
:
case
SimpleTypes
:
:
themeMinorEastAsia
:
case
SimpleTypes
:
:
themeMinorHAnsi
:
sFontAE
=
m_poTheme
->
GetMinorFont
();
break
;
default:
break
;
}
}
else
if
(
oFont
.
m_sEastAsia
.
IsInit
())
...
...
@@ -1394,6 +1400,7 @@ namespace BinDocxRW
{
case
SimpleTypes
:
:
pageorientPortrait
:
Orientation
=
orientation_Portrait
;
break
;
case
SimpleTypes
:
:
pageorientLandscape
:
Orientation
=
orientation_Landscape
;
break
;
default:
break
;
}
}
}
...
...
@@ -3049,6 +3056,8 @@ namespace BinDocxRW
OOX
::
Logic
::
CBdo
*
pBdo
=
static_cast
<
OOX
::
Logic
::
CBdo
*>
(
item
);
WriteDocumentContent
(
pBdo
->
m_arrItems
);
}
break
;
default:
break
;
}
}
//SectPr & Background
...
...
@@ -3236,6 +3245,8 @@ namespace BinDocxRW
m_oBcw
.
WriteItemEnd
(
nCurPos
);
break
;
}
default:
break
;
}
}
}
...
...
@@ -3268,6 +3279,8 @@ namespace BinDocxRW
case
OOX
:
:
et_w_commentRangeEnd
:
nCurPos
=
m_oBcw
.
WriteItemStart
(
c_oSerParType
::
CommentEnd
);
break
;
case
OOX
:
:
et_w_commentReference
:
nCurPos
=
m_oBcw
.
WriteItemStart
(
c_oSerRunType
::
CommentReference
);
break
;
default:
break
;
}
int
nCurPos2
=
m_oBcw
.
WriteItemStart
(
c_oSer_CommentsType
::
Id
);
...
...
@@ -3738,6 +3751,8 @@ namespace BinDocxRW
m_oBcw
.
WriteItemEnd
(
nCurPos
);
break
;
}
default:
break
;
}
}
}
...
...
@@ -4062,6 +4077,8 @@ namespace BinDocxRW
m_oBcw
.
WriteItemEnd
(
nCurPos
);
break
;
}
default:
break
;
}
}
}
...
...
@@ -4179,6 +4196,8 @@ namespace BinDocxRW
m_oBcw
.
WriteItemEnd
(
nCurPos
);
break
;
}
default:
break
;
}
}
}
...
...
@@ -4414,6 +4433,8 @@ namespace BinDocxRW
m_oBcw
.
WriteItemEnd
(
nCurPos
);
break
;
}
default:
break
;
}
}
}
...
...
@@ -5123,6 +5144,8 @@ namespace BinDocxRW
case
SimpleTypes
:
:
brtypeColumn
:
nBreakType
=
c_oSerRunType
::
columnbreak
;
break
;
case
SimpleTypes
:
:
brtypePage
:
nBreakType
=
c_oSerRunType
::
pagebreak
;
break
;
case
SimpleTypes
:
:
brtypeTextWrapping
:
nBreakType
=
c_oSerRunType
::
linebreak
;
break
;
default:
break
;
}
if
(
-
1
!=
nBreakType
)
{
...
...
@@ -5351,6 +5374,8 @@ namespace BinDocxRW
m_oBcw
.
WriteItemEnd
(
nCurPos
);
break
;
}
default:
break
;
}
}
}
...
...
@@ -6913,6 +6938,8 @@ namespace BinDocxRW
m_oBcw
.
WriteItemEnd
(
nCurPos
);
break
;
}
default:
break
;
}
}
}
...
...
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXParagraphElementReaders.cpp
View file @
f3a510bd
...
...
@@ -427,6 +427,8 @@ bool OOXParagraphReader::Parse2( ReaderParameter oParam , RtfParagraph& oOutputP
}
}
}
break
;
default:
break
;
}
}
return
true
;
...
...
@@ -508,6 +510,7 @@ bool OOXRunReader::Parse( ReaderParameter oParam , RtfParagraph& oOutputParagrap
OOXFieldSeparatePtr
oNewField
(
new
OOXFieldSeparate
()
);
oOutputParagraph
.
AddItem
(
oNewField
);
}
break
;
default:
break
;
}
}
}
break
;
...
...
@@ -940,6 +943,8 @@ bool OOXRunReader::Parse( ReaderParameter oParam , RtfParagraph& oOutputParagrap
oOutputParagraph
.
AddItem
(
oNewField
);
}
}
break
;
default:
break
;
}
return
true
;
}
...
...
@@ -1068,6 +1073,7 @@ bool OOXpPrReader::Parse( ReaderParameter oParam ,RtfParagraphProperty& oOutputP
case
SimpleTypes
:
:
jcThaiDistribute
:
break
;
case
SimpleTypes
:
:
jcLeft
:
oOutputProperty
.
m_eAlign
=
RtfParagraphProperty
::
pa_ql
;
break
;
case
SimpleTypes
:
:
jcRight
:
oOutputProperty
.
m_eAlign
=
RtfParagraphProperty
::
pa_qr
;
break
;
default:
break
;
}
}
if
(
m_ooxParaProps
->
m_oTextAlignment
.
IsInit
()
&&
m_ooxParaProps
->
m_oTextAlignment
->
m_oVal
.
IsInit
())
...
...
@@ -1079,6 +1085,7 @@ bool OOXpPrReader::Parse( ReaderParameter oParam ,RtfParagraphProperty& oOutputP
case
SimpleTypes
:
:
textalignBottom
:
oOutputProperty
.
m_eFontAlign
=
RtfParagraphProperty
::
fa_favar
;
break
;
case
SimpleTypes
:
:
textalignCenter
:
oOutputProperty
.
m_eFontAlign
=
RtfParagraphProperty
::
fa_facenter
;
break
;
case
SimpleTypes
:
:
textalignTop
:
oOutputProperty
.
m_eFontAlign
=
RtfParagraphProperty
::
fa_fahang
;
break
;
default:
break
;
}
}
if
(
m_ooxParaProps
->
m_oInd
.
IsInit
()
)
...
...
@@ -1172,6 +1179,7 @@ bool OOXpPrReader::Parse( ReaderParameter oParam ,RtfParagraphProperty& oOutputP
case
SimpleTypes
:
:
textboxtightwrapFirstLineOnly
:
oOutputProperty
.
m_eTextBoxWrap
=
RtfParagraphProperty
::
tbw_txbxtwfirst
;
break
;
case
SimpleTypes
:
:
textboxtightwrapLastLineOnly
:
oOutputProperty
.
m_eTextBoxWrap
=
RtfParagraphProperty
::
tbw_txbxtwlast
;
break
;
case
SimpleTypes
:
:
textboxtightwrapNone
:
oOutputProperty
.
m_eTextBoxWrap
=
RtfParagraphProperty
::
tbw_txbxtwno
;
break
;
default:
break
;
}
}
if
(
m_ooxParaProps
->
m_oNumPr
.
IsInit
()
)
...
...
@@ -1340,7 +1348,7 @@ bool OOXrPrReader::Parse( ReaderParameter oParam ,RtfCharProperty& oOutputProper
case
SimpleTypes
:
:
texteffectNone
:
oOutputProperty
.
m_nAnimated
=
0
;
break
;
case
SimpleTypes
:
:
texteffectShimmer
:
oOutputProperty
.
m_nAnimated
=
6
;
break
;
case
SimpleTypes
:
:
texteffectSparkle
:
oOutputProperty
.
m_nAnimated
=
3
;
break
;
default:
break
;
}
}
if
(
m_ooxRunProps
->
m_oRStyle
.
IsInit
()
&&
m_ooxRunProps
->
m_oRStyle
->
m_sVal
.
IsInit
())
...
...
@@ -1449,6 +1457,7 @@ bool OOXrPrReader::Parse( ReaderParameter oParam ,RtfCharProperty& oOutputProper
case
SimpleTypes
:
:
verticalalignrunBaseline
:
break
;
case
SimpleTypes
:
:
verticalalignrunSubscript
:
oOutputProperty
.
m_bSub
=
1
;
break
;
case
SimpleTypes
:
:
verticalalignrunSuperscript
:
oOutputProperty
.
m_bSuper
=
1
;
break
;
default:
break
;
}
}
if
(
m_ooxRunProps
->
m_oHighlight
.
IsInit
()
&&
m_ooxRunProps
->
m_oHighlight
->
m_oVal
.
IsInit
()
)
...
...
@@ -1491,6 +1500,7 @@ bool OOXrPrReader::Parse( ReaderParameter oParam ,RtfCharProperty& oOutputProper
case
SimpleTypes
:
:
underlineWavyDouble
:
oOutputProperty
.
m_eUnderStyle
=
RtfCharProperty
::
uls_Double_wave
;
break
;
case
SimpleTypes
:
:
underlineWavyHeavy
:
oOutputProperty
.
m_eUnderStyle
=
RtfCharProperty
::
uls_Heavy_wave
;
break
;
case
SimpleTypes
:
:
underlineWords
:
oOutputProperty
.
m_eUnderStyle
=
RtfCharProperty
::
uls_Word
;
break
;
default:
break
;
}
if
((
m_ooxRunProps
->
m_oU
->
m_oColor
.
IsInit
())
&&
(
m_ooxRunProps
->
m_oU
->
m_oColor
->
GetValue
()
==
SimpleTypes
::
hexcolorRGB
))
...
...
@@ -1584,6 +1594,7 @@ bool OOXpPrFrameReader::Parse( ReaderParameter oParam ,RtfFrame& oOutputProperty
case
SimpleTypes
:
:
hanchorMargin
:
oOutputProperty
.
m_eHRef
=
RtfFrame
::
hr_phmrg
;
break
;
case
SimpleTypes
:
:
hanchorPage
:
oOutputProperty
.
m_eHRef
=
RtfFrame
::
hr_phpg
;
break
;
case
SimpleTypes
:
:
hanchorText
:
oOutputProperty
.
m_eHRef
=
RtfFrame
::
hr_phcol
;
break
;
default:
break
;
}
}
oOutputProperty
.
m_nHPos
=
m_ooxFramePr
->
m_oX
.
IsInit
()
?
m_ooxFramePr
->
m_oX
->
ToTwips
()
:
PROP_DEF
;
//???
...
...
@@ -1598,6 +1609,7 @@ bool OOXpPrFrameReader::Parse( ReaderParameter oParam ,RtfFrame& oOutputProperty
case
SimpleTypes
:
:
xalignLeft
:
oOutputProperty
.
m_eHPos
=
RtfFrame
::
hp_posxl
;
break
;
case
SimpleTypes
:
:
xalignOutside
:
oOutputProperty
.
m_eHPos
=
RtfFrame
::
hp_posxo
;
break
;
case
SimpleTypes
:
:
xalignRight
:
oOutputProperty
.
m_eHPos
=
RtfFrame
::
hp_posxr
;
break
;
default:
break
;
}
}
...
...
@@ -1608,6 +1620,7 @@ bool OOXpPrFrameReader::Parse( ReaderParameter oParam ,RtfFrame& oOutputProperty
case
SimpleTypes
:
:
vanchorMargin
:
oOutputProperty
.
m_eVRef
=
RtfFrame
::
vr_pvmrg
;
break
;
case
SimpleTypes
:
:
vanchorPage
:
oOutputProperty
.
m_eVRef
=
RtfFrame
::
vr_pvpg
;
break
;
case
SimpleTypes
:
:
vanchorText
:
oOutputProperty
.
m_eVRef
=
RtfFrame
::
vr_pvpara
;
break
;
default:
break
;
}
}
if
(
m_ooxFramePr
->
m_oYAlign
.
IsInit
())
...
...
@@ -1620,6 +1633,7 @@ bool OOXpPrFrameReader::Parse( ReaderParameter oParam ,RtfFrame& oOutputProperty
case
SimpleTypes
:
:
yalignInside
:
oOutputProperty
.
m_eVPos
=
RtfFrame
::
vp_posyin
;
break
;
case
SimpleTypes
:
:
yalignOutside
:
oOutputProperty
.
m_eVPos
=
RtfFrame
::
vp_posyout
;
break
;
case
SimpleTypes
:
:
yalignTop
:
oOutputProperty
.
m_eVPos
=
RtfFrame
::
vp_posyt
;
break
;
default:
break
;
}
}
oOutputProperty
.
m_bLockAnchor
=
m_ooxFramePr
->
m_oAnchorLock
.
IsInit
()
?
m_ooxFramePr
->
m_oAnchorLock
->
ToBool
()
:
false
;
...
...
@@ -1633,6 +1647,7 @@ bool OOXpPrFrameReader::Parse( ReaderParameter oParam ,RtfFrame& oOutputProperty
//case SimpleTypes::wrapNotBeside : break;
case
SimpleTypes
:
:
wrapThrough
:
oOutputProperty
.
m_eWrap
=
RtfFrame
::
tw_wrapthrough
;
break
;
case
SimpleTypes
:
:
wrapTight
:
oOutputProperty
.
m_eWrap
=
RtfFrame
::
tw_wraptight
;
break
;
default:
break
;
}
}
if
(
m_ooxFramePr
->
m_oDropCap
.
IsInit
())
...
...
@@ -1642,6 +1657,7 @@ bool OOXpPrFrameReader::Parse( ReaderParameter oParam ,RtfFrame& oOutputProperty
case
SimpleTypes
:
:
dropcapDrop
:
oOutputProperty
.
m_DropcapType
=
1
;
break
;
case
SimpleTypes
:
:
dropcapMargin
:
oOutputProperty
.
m_DropcapType
=
2
;
break
;
case
SimpleTypes
:
:
dropcapNone
:
break
;
default:
break
;
}
}
oOutputProperty
.
m_DropcapLines
=
m_ooxFramePr
->
m_oLines
.
IsInit
()
?
m_ooxFramePr
->
m_oLines
->
GetValue
()
:
0
;
//todoo ??? или 1 ???
...
...
@@ -1693,6 +1709,7 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
case
SimpleTypes
:
:
sectionmarkNextColumn
:
oOutput
.
m_eSectionBreak
=
RtfSectionProperty
::
sb_sbkcol
;
break
;
case
SimpleTypes
:
:
sectionmarkNextPage
:
oOutput
.
m_eSectionBreak
=
RtfSectionProperty
::
sb_sbkpage
;
break
;
case
SimpleTypes
:
:
sectionmarkOddPage
:
oOutput
.
m_eSectionBreak
=
RtfSectionProperty
::
sb_sbkodd
;
break
;
default:
break
;
}
}
if
(
m_ooxSectionProperty
->
m_oCols
.
IsInit
()
)
...
...
@@ -1731,6 +1748,7 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
case
SimpleTypes
:
:
restartnumberContinious
:
break
;
// ???? todooo проверить
case
SimpleTypes
:
:
restartnumberEachPage
:
oOutput
.
m_eEndnotesRestart
=
RtfSectionProperty
::
er_saftnrestart
;
break
;
case
SimpleTypes
:
:
restartnumberEachSect
:
oOutput
.
m_eEndnotesRestart
=
RtfSectionProperty
::
er_saftnrstcont
;
break
;
default:
break
;
}
}
}
...
...
@@ -1759,6 +1777,7 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
case
SimpleTypes
:
:
ftnposDocEnd
:
break
;
// todooo !!!
case
SimpleTypes
:
:
ftnposPageBottom
:
oOutput
.
m_eFootnotesJust
=
RtfSectionProperty
::
fj_sftnbj
;
break
;
case
SimpleTypes
:
:
ftnposSectEnd
:
break
;
// todooo !!!
default:
break
;
}
}
if
(
m_ooxSectionProperty
->
m_oFootnotePr
->
m_oNumStart
.
IsInit
()
&&
...
...
@@ -1773,6 +1792,7 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
case
SimpleTypes
:
:
restartnumberContinious
:
oOutput
.
m_eFootnotesRestart
=
RtfSectionProperty
::
fr_sftnrstcont
;
break
;
case
SimpleTypes
:
:
restartnumberEachPage
:
oOutput
.
m_eFootnotesRestart
=
RtfSectionProperty
::
fr_sftnrstpg
;
break
;
case
SimpleTypes
:
:
restartnumberEachSect
:
oOutput
.
m_eFootnotesRestart
=
RtfSectionProperty
::
fr_sftnrestart
;
break
;
default:
break
;
}
}
if
(
m_ooxSectionProperty
->
m_oFootnotePr
->
m_oNumFmt
.
IsInit
())
...
...
@@ -1801,6 +1821,7 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
case
SimpleTypes
:
:
linenumberrestartContinious
:
oOutput
.
m_eLineNumberRestart
=
RtfSectionProperty
::
lnr_linecont
;
break
;
case
SimpleTypes
:
:
linenumberrestartNewPage
:
oOutput
.
m_eLineNumberRestart
=
RtfSectionProperty
::
lnr_lineppage
;
break
;
case
SimpleTypes
:
:
linenumberrestartNewSection
:
oOutput
.
m_eLineNumberRestart
=
RtfSectionProperty
::
lnr_linerestart
;
break
;
default:
break
;
}
}
}
...
...
@@ -1859,7 +1880,7 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
case
SimpleTypes
:
:
verticaljcBottom
:
oOutput
.
m_eVerticalAlignment
=
RtfSectionProperty
::
va_vertalb
;
break
;
case
SimpleTypes
:
:
verticaljcCenter
:
oOutput
.
m_eVerticalAlignment
=
RtfSectionProperty
::
va_vertalc
;
break
;
case
SimpleTypes
:
:
verticaljcTop
:
oOutput
.
m_eVerticalAlignment
=
RtfSectionProperty
::
va_vertalt
;
break
;
default:
break
;
}
}
if
(
m_ooxSectionProperty
->
m_oTextDirection
.
IsInit
()
&&
...
...
@@ -1874,6 +1895,7 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
case
SimpleTypes
:
:
textdirectionTb
:
oOutput
.
m_nTextFollow
=
0
;
break
;
case
SimpleTypes
:
:
textdirectionTbV
:
oOutput
.
m_nTextFollow
=
5
;
break
;
//oOutput.m_nTextFollow = 2; bottom to top ( .. todooo переделать DocxFormat
default:
break
;
}
}
if
(
m_ooxSectionProperty
->
m_oPgBorders
.
IsInit
()
)
...
...
@@ -1886,6 +1908,7 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
case
SimpleTypes
:
:
pageborderdisplayAllPages
:
oOutput
.
m_nBorderMeasure
=
oOutput
.
m_nBorderMeasure
|
0
;
break
;
case
SimpleTypes
:
:
pageborderdisplayFirstPage
:
oOutput
.
m_nBorderMeasure
=
oOutput
.
m_nBorderMeasure
|
1
;
break
;
case
SimpleTypes
:
:
pageborderdisplayNotFirstPage
:
oOutput
.
m_nBorderMeasure
=
oOutput
.
m_nBorderMeasure
|
2
;
break
;
default:
break
;
}
}
if
(
m_ooxSectionProperty
->
m_oPgBorders
->
m_oZOrder
.
IsInit
())
...
...
@@ -1894,6 +1917,7 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
{
case
SimpleTypes
:
:
pageborderzorderBack
:
oOutput
.
m_nBorderMeasure
=
oOutput
.
m_nBorderMeasure
|
8
;
break
;
case
SimpleTypes
:
:
pageborderzorderFront
:
break
;
default:
break
;
}
}
if
(
m_ooxSectionProperty
->
m_oPgBorders
->
m_oOffsetFrom
.
IsInit
())
...
...
@@ -1902,6 +1926,7 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
{
case
SimpleTypes
:
:
pageborderoffsetPage
:
oOutput
.
m_nBorderMeasure
=
oOutput
.
m_nBorderMeasure
|
32
;
break
;
case
SimpleTypes
:
:
pageborderoffsetText
:
break
;
default:
break
;
}
}
if
(
m_ooxSectionProperty
->
m_oPgBorders
->
m_oLeft
.
IsInit
()
)
...
...
@@ -1959,6 +1984,8 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
oOutput
.
m_sIDHeaderFirst
=
sID
;
}
}
break
;
default:
break
;
}
}
}
...
...
@@ -1996,6 +2023,8 @@ bool OOXSectionPropertyReader::Parse( ReaderParameter oParam , RtfSectionPropert
oOutput
.
m_sIDFooterFirst
=
sID
;
}
}
break
;
default:
break
;
}
}
}
...
...
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXShapeReader.cpp
View file @
f3a510bd
...
...
@@ -108,6 +108,7 @@ bool ParseStyle(RtfShapePtr pShape, SimpleTypes::Vml::CCssProperty* prop)
case
SimpleTypes
:
:
Vml
::
cssflipY
:
pShape
->
m_bFlipV
=
true
;
break
;
case
SimpleTypes
:
:
Vml
::
cssflipXY
:
pShape
->
m_bFlipH
=
true
;
pShape
->
m_bFlipV
=
true
;
break
;
case
SimpleTypes
:
:
Vml
::
cssflipYX
:
pShape
->
m_bFlipH
=
true
;
pShape
->
m_bFlipV
=
true
;
break
;
default:
break
;
}
break
;
case
SimpleTypes
:
:
Vml
::
cssptWidth
:
...
...
@@ -300,6 +301,7 @@ bool ParseStyle(RtfShapePtr pShape, SimpleTypes::Vml::CCssProperty* prop)
case
SimpleTypes
:
:
Vml
::
cssptVTextReverse
:
break
;
case
SimpleTypes
:
:
Vml
::
cssptVTextSpacingMode
:
break
;
case
SimpleTypes
:
:
Vml
::
cssptVTextSpacing
:
break
;
default:
break
;
}
return
true
;
}
...
...
@@ -575,6 +577,7 @@ bool OOXShapeReader::ParseVmlChild( ReaderParameter oParam , RtfShapePtr& pOutpu
}
}
break
;
default:
break
;
}
}
//проверяем на inline
...
...
@@ -630,6 +633,7 @@ bool OOXShapeReader::Parse(ReaderParameter oParam, int indexSchemeColor, BYTE& u
result
=
theme
->
m_oThemeElements
.
m_oClrScheme
.
m_oFolHlink
.
tryGetRgb
(
ucR
,
ucG
,
ucB
,
ucA
);
break
;
case
SimpleTypes
:
:
shemecolorvalHlink
:
result
=
theme
->
m_oThemeElements
.
m_oClrScheme
.
m_oHlink
.
tryGetRgb
(
ucR
,
ucG
,
ucB
,
ucA
);
break
;
default:
break
;
}
return
result
;
}
...
...
@@ -662,6 +666,7 @@ void OOXShapeReader::Parse(ReaderParameter oParam, OOX::Drawing::CColor *oox_col
case
OOX
:
:
Drawing
::
colorScRgb
:
Parse
(
oParam
,
&
oox_color
->
m_oScrgbClr
,
nColor
,
opacity
);
break
;
case
OOX
:
:
Drawing
::
colorSRgb
:
Parse
(
oParam
,
&
oox_color
->
m_oSrgbClr
,
nColor
,
opacity
);
break
;
case
OOX
:
:
Drawing
::
colorSys
:
Parse
(
oParam
,
&
oox_color
->
m_oSysClr
,
nColor
,
opacity
);
break
;
default:
break
;
}
}
void
OOXShapeReader
::
Parse
(
ReaderParameter
oParam
,
OOX
::
Drawing
::
Colors
::
CColorTransform
*
oox_Clr
,
unsigned
int
&
nColor
,
_CP_OPT
(
double
)
&
opacity
)
...
...
@@ -684,6 +689,7 @@ void OOXShapeReader::Parse(ReaderParameter oParam, OOX::Drawing::CSolidColorFill
case
OOX
:
:
Drawing
::
colorScRgb
:
Parse
(
oParam
,
&
oox_solid_fill
->
m_oScrgbClr
,
nColor
,
opacity
);
break
;
case
OOX
:
:
Drawing
::
colorSRgb
:
Parse
(
oParam
,
&
oox_solid_fill
->
m_oSrgbClr
,
nColor
,
opacity
);
break
;
case
OOX
:
:
Drawing
::
colorSys
:
Parse
(
oParam
,
&
oox_solid_fill
->
m_oSysClr
,
nColor
,
opacity
);
break
;
default:
break
;
}
}
//-----------------------------------------------------------------------------------------------------------------
...
...
@@ -908,6 +914,7 @@ void OOXShapeReader::Parse(ReaderParameter oParam, RtfShapePtr& pOutput, OOX::Dr
}
break
;
case
OOX
:
:
Drawing
::
filltypeNo
:
pOutput
->
m_bLine
=
false
;
break
;
default:
break
;
}
if
(
oox_line_prop
->
m_oW
.
IsInit
())
{
...
...
@@ -945,6 +952,7 @@ void OOXShapeReader::Parse(ReaderParameter oParam, RtfShapePtr& pOutput, OOX::Dr
case
SimpleTypes
:
:
presetlinedashvalSysDashDotDot
:
pOutput
->
m_nLineDashing
=
4
;
break
;
case
SimpleTypes
:
:
presetlinedashvalSysDot
:
pOutput
->
m_nLineDashing
=
2
;
break
;
case
SimpleTypes
:
:
presetlinedashvalSolid
:
break
;
default:
break
;
}
}
//nullable<SimpleTypes::CPenAlignment<>> m_oAlgn;
...
...
@@ -985,6 +993,7 @@ void OOXShapeReader::Parse( ReaderParameter oParam, RtfShapePtr& pOutput, OOX::D
case
OOX
:
:
Drawing
::
filltypeNo
:
pOutput
->
m_bFilled
=
false
;
break
;
default:
break
;
}
}
else
if
(
fmt_index
>
1000
&&
((
fmt_index
-
1000
)
<
theme
->
m_oThemeElements
.
m_oFmtScheme
.
m_oBgFillStyleLst
.
m_arrItems
.
size
()))
...
...
@@ -1003,6 +1012,7 @@ void OOXShapeReader::Parse( ReaderParameter oParam, RtfShapePtr& pOutput, OOX::D
case
OOX
:
:
Drawing
::
filltypeNo
:
pOutput
->
m_bFilled
=
false
;
break
;
default:
break
;
}
}
}
...
...
@@ -1066,6 +1076,7 @@ bool OOXShapeReader::Parse( ReaderParameter oParam, RtfShapePtr& pOutput)
case
SimpleTypes
:
:
shapetypeRoundRect
:
pOutput
->
m_nShapeType
=
NSOfficeDrawing
::
sptRoundRectangle
;
break
;
case
SimpleTypes
:
:
shapetypeLine
:
pOutput
->
m_nShapeType
=
NSOfficeDrawing
::
sptLine
;
break
;
case
SimpleTypes
:
:
shapetypeArc
:
pOutput
->
m_nShapeType
=
NSOfficeDrawing
::
sptArc
;
break
;
default:
break
;
}
if
(
pOutput
->
m_nShapeType
==
PROP_DEF
)
...
...
@@ -1335,6 +1346,7 @@ bool OOXShapeReader::ParseVml( ReaderParameter oParam , RtfShapePtr& pOutput)
case
SimpleTypes
:
:
connectortypeElbow
:
pOutput
->
m_nConnectorStyle
=
1
;
break
;
case
SimpleTypes
:
:
connectortypeNone
:
pOutput
->
m_nConnectorStyle
=
3
;
break
;
case
SimpleTypes
:
:
connectortypeStraight
:
pOutput
->
m_nConnectorStyle
=
0
;
break
;
default:
break
;
}
}
...
...
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXTextItemReader.h
View file @
f3a510bd
...
...
@@ -112,6 +112,8 @@ public:
}
}
break
;
default:
break
;
}
return
true
;
}
...
...
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.h
View file @
f3a510bd
...
...
@@ -547,6 +547,7 @@ public:
case
13
:
return
L"red"
;
case
14
:
return
L"white"
;
case
15
:
return
L"yellow"
;
default:
break
;
}
return
L"none"
;
}
...
...
@@ -1719,6 +1720,7 @@ public:
case
stCharacter
:
sResult
+=
L"{
\\
*
\\
cs"
+
std
::
to_wstring
(
m_nID
);
break
;
case
stSection
:
sResult
+=
L"{
\\
*
\\
ds"
+
std
::
to_wstring
(
m_nID
);
break
;
case
stTable
:
sResult
+=
L"{
\\
*
\\
ts"
+
std
::
to_wstring
(
m_nID
)
+
L"
\\
tsrowd"
;
break
;
default:
break
;
}
return
sResult
;
}
...
...
@@ -2130,12 +2132,14 @@ public:
case
RtfTableProperty
:
:
hr_phmrg
:
m_eHRef
=
hr_phmrg
;
break
;
case
RtfTableProperty
:
:
hr_phpg
:
m_eHRef
=
hr_phpg
;
break
;
case
RtfTableProperty
:
:
hr_phcol
:
m_eHRef
=
hr_phcol
;
break
;
default:
break
;
}
switch
(
oProp
.
m_eVRef
)
{
case
RtfTableProperty
:
:
vr_pvmrg
:
m_eVRef
=
vr_pvmrg
;
break
;
case
RtfTableProperty
:
:
vr_pvpg
:
m_eVRef
=
vr_pvpg
;
break
;
case
RtfTableProperty
:
:
vr_pvpara
:
m_eVRef
=
vr_pvpara
;
break
;
default:
break
;
}
switch
(
oProp
.
m_eHPos
)
{
...
...
@@ -2144,6 +2148,7 @@ public:
case
RtfTableProperty
:
:
hp_posxo
:
m_eHPos
=
hp_posxo
;
break
;
case
RtfTableProperty
:
:
hp_posxl
:
m_eHPos
=
hp_posxl
;
break
;
case
RtfTableProperty
:
:
hp_posxr
:
m_eHPos
=
hp_posxr
;
break
;
default:
break
;
}
switch
(
oProp
.
m_eVPos
)
{
...
...
@@ -2152,6 +2157,7 @@ public:
case
RtfTableProperty
:
:
vp_posyout
:
m_eVPos
=
vp_posyout
;
break
;
case
RtfTableProperty
:
:
vp_posyt
:
m_eVPos
=
vp_posyt
;
break
;
case
RtfTableProperty
:
:
vp_posyb
:
m_eVPos
=
vp_posyb
;
break
;
default:
break
;
}
}
};
...
...
X2tConverter/build/Qt/X2tConverter.pri
View file @
f3a510bd
...
...
@@ -7,7 +7,7 @@
QT -= core
QT -= gui
VERSION = 2.0.3.43
6
VERSION = 2.0.3.43
8
DEFINES += INTVER=$$VERSION
TARGET = x2t
...
...
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