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
ef965718
Commit
ef965718
authored
Oct 02, 2017
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
outlineLvl
parent
f7617b42
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
ASCOfficeDocxFile2/BinReader/Readers.h
ASCOfficeDocxFile2/BinReader/Readers.h
+5
-0
ASCOfficeDocxFile2/BinWriter/BinReaderWriterDefines.h
ASCOfficeDocxFile2/BinWriter/BinReaderWriterDefines.h
+2
-1
ASCOfficeDocxFile2/BinWriter/BinWriters.h
ASCOfficeDocxFile2/BinWriter/BinWriters.h
+6
-0
No files found.
ASCOfficeDocxFile2/BinReader/Readers.h
View file @
ef965718
...
...
@@ -885,6 +885,11 @@ public:
pCStringWriter
->
WriteString
(
oSectPr
.
Write
());
pCStringWriter
->
WriteString
(
std
::
wstring
(
_T
(
"</w:sectPr>"
)));
}
break
;
case
c_oSerProp_pPrType
:
:
outlineLvl
:
{
long
outlineLvl
=
m_oBufferedStream
.
GetLong
();
pCStringWriter
->
WriteString
(
L"<w:outlineLvl w:val=
\"
"
+
std
::
to_wstring
(
outlineLvl
)
+
L"
\"
/>"
);
}
break
;
default:
res
=
c_oSerConstants
::
ReadUnknown
;
break
;
...
...
ASCOfficeDocxFile2/BinWriter/BinReaderWriterDefines.h
View file @
ef965718
...
...
@@ -344,7 +344,8 @@ extern int g_nCurFormatVersion;
FramePr
=
30
,
SectPr
=
31
,
numPr_Ins
=
32
,
pPrChange
=
33
pPrChange
=
33
,
outlineLvl
=
34
};}
namespace
c_oSerProp_rPrType
{
enum
c_oSerProp_rPrType
{
...
...
ASCOfficeDocxFile2/BinWriter/BinWriters.h
View file @
ef965718
...
...
@@ -1024,6 +1024,12 @@ namespace BinDocxRW
WritePPrChange
(
pPr
.
m_oPPrChange
.
get
());
m_oBcw
.
WriteItemWithLengthEnd
(
nCurPos
);
}
if
(
pPr
.
m_oOutlineLvl
.
IsInit
()
&&
pPr
.
m_oOutlineLvl
->
m_oVal
.
IsInit
())
{
m_oBcw
.
m_oStream
.
WriteBYTE
(
c_oSerProp_pPrType
::
outlineLvl
);
m_oBcw
.
m_oStream
.
WriteBYTE
(
c_oSerPropLenType
::
Long
);
m_oBcw
.
m_oStream
.
WriteLONG
(
pPr
.
m_oOutlineLvl
->
m_oVal
->
GetValue
());
}
//SectPr
if
(
NULL
!=
m_oBinaryHeaderFooterTableWriter
&&
pPr
.
m_oSectPr
.
IsInit
())
{
...
...
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