Compare commits

...

753 Commits

Author SHA1 Message Date
93fa98720c For bug 56165 2022-03-31 21:11:57 +03:00
6b737f4b55 For bug 56205 2022-03-31 20:14:29 +03:00
a40242fb86 Add functions for xml engine 2022-03-31 19:30:18 +03:00
73845ec7fd Add method for work with xml with different BOM 2022-03-31 18:04:22 +03:00
7f0691ee09 Fix bug 56180 2022-03-31 18:00:01 +03:00
4db485cc8a Fix crash with not valid fonts (pdf=>docx) 2022-03-31 12:19:06 +03:00
8eb21889bf Fix bug 56275 2022-03-30 21:22:15 +03:00
286eb3fe9a Fix logic bug because of which with memory problems 2022-03-30 15:58:54 +03:00
e88f00c27d Fix build for 32bit platform 2022-03-30 14:05:09 +03:00
258e4cda5a For bug 55777 2022-03-28 17:37:48 +03:00
a2fc2fb9d6 Merge pull request #885 from ONLYOFFICE/fix/v7.1.0-fix-bugs3
fix bug #56304
2022-03-28 11:49:10 +03:00
96a3ac70ca fix bug #56304 2022-03-28 11:34:36 +03:00
61b5ad4e02 Merge pull request #884 from ONLYOFFICE/fix/v7.1.0-fix-bugs-ppt
fix bug #56110
2022-03-28 10:15:21 +03:00
8c0843b218 Add type for qrenderer 2022-03-27 18:28:53 +03:00
d6d117c5dd fix bug #56110 2022-03-25 22:37:15 +03:00
5e8422be62 Merge pull request #881 from ONLYOFFICE/fix/v7.1.0-fix-bugs3
fix bug #56300
2022-03-25 15:55:20 +03:00
b0fd733e95 fix bug #56300 2022-03-25 15:11:37 +03:00
f201a55045 Merge pull request #880 from ONLYOFFICE/fix/v7.1.0-fix-bugs3
fix bug #56057
2022-03-23 20:12:05 +03:00
d03f203553 fix bug #56057 2022-03-23 17:33:34 +03:00
1f24c4fbec Fix standardtester crash 2022-03-22 19:15:00 +03:00
22515b9f0c Rename property 2022-03-22 18:58:37 +03:00
49eff29fac Fix bugs in document info 2022-03-22 15:51:10 +03:00
e3faa6db48 Add getDocumentInfo method 2022-03-22 11:45:18 +03:00
54163e612a Add speed logger to doctrenderer 2022-03-21 22:14:52 +03:00
d05a7233db Merge pull request #877 from ONLYOFFICE/feature/jp2
Feature/jp2
2022-03-20 11:41:44 +03:00
efdc370ca2 Mac build 2022-03-20 11:39:42 +03:00
1d9dc39390 Linux build 2022-03-20 10:54:09 +03:00
f5c5d1fb57 New engine for jpeg2000 2022-03-18 21:54:47 +03:00
1e13179d78 Merge pull request #875 from ONLYOFFICE/fix/v7.1.0-fix-bugs-ppt
Fix/v7.1.0 fix bugs ppt
2022-03-18 11:08:39 +03:00
ff03e6c2a8 Merge remote-tracking branch 'origin/release/v7.1.0' into fix/v7.1.0-fix-bugs-ppt 2022-03-18 11:07:04 +03:00
71e4ddb7b4 Merge branch 'refs/heads/fix/v7.0.0-ppt1' into fix/v7.1.0-fix-bugs-ppt 2022-03-18 10:49:05 +03:00
c1532e8e1f Merge pull request #874 from ONLYOFFICE/fix/v7.1.0-fix-bugs
Fix/v7.1.0 fix bugs
2022-03-17 23:11:51 +03:00
468f5dd0b1 fix bug #54124 2022-03-17 18:05:02 +03:00
a4be4bcc56 fix bug #56098 2022-03-17 17:41:12 +03:00
fe19e83d1e for bug #55915 2022-03-17 15:09:26 +03:00
1928974f0a Merge pull request #873 from ONLYOFFICE/fix/v7.1.0-fix-bugs
Fix/v7.1.0 fix bugs
2022-03-17 09:33:48 +03:00
9161d5d3fb fix bug #56072 2022-03-17 09:32:33 +03:00
2825342c14 fix bug #56071 2022-03-17 09:16:53 +03:00
4b2cc293cf Refactoring pdf 2022-03-16 21:27:35 +03:00
cd75c6e502 Fix typo 2022-03-16 19:40:07 +03:00
9c6fa52d76 Fix bug 55442 2022-03-15 19:51:24 +03:00
1406c5c781 Improve speed of drawing images 2022-03-15 17:13:12 +03:00
224ba9144d fix in bug 54031 default value 2022-03-15 15:35:50 +03:00
35a3c4e803 fix bug #54031 2022-03-15 15:26:35 +03:00
96bdb12014 Merge pull request #872 from ONLYOFFICE/fix/v7.1.0-fix-bugs
fix bug #56025
2022-03-15 09:37:55 +03:00
9a953c7182 fix bug #56025 2022-03-15 09:37:03 +03:00
4ca1ea0595 Fix build 2022-03-14 10:35:34 +03:00
5b4d1d0bae Merge pull request #871 from ONLYOFFICE/fix/drawingfile-info
fix drawingfile info
2022-03-13 09:29:02 +03:00
ac94da49fd fix replace_all to NSStringExt::Replace 2022-03-11 20:35:09 +03:00
6ac102569e fix xps 2022-03-11 20:09:05 +03:00
8bb58c35cb fix quotes 2022-03-11 18:29:47 +03:00
1137a38594 Fix bug 55845 2022-03-11 17:42:55 +03:00
1ef9329036 Merge pull request #869 from ONLYOFFICE/fix/drawingfile-info
Fix/drawingfile info
2022-03-11 16:59:32 +03:00
c8b91b8e61 Merge pull request #870 from ONLYOFFICE/fix/v7.1.0-fix-bugs2
Fix/v7.1.0 fix bugs2
2022-03-11 15:39:15 +03:00
c23a0ee4a8 fix bug #55940 2022-03-11 15:38:06 +03:00
a90b578e9c Fix bug 55987 2022-03-11 14:48:27 +03:00
328395dfea fix GetInfo 2022-03-11 12:32:46 +03:00
a18d19b6f7 optimize 2022-03-10 17:55:58 +03:00
8ef62fd670 djvu GetInfo 2022-03-10 17:40:05 +03:00
0852fc134e xps GetInfo 2022-03-10 15:16:54 +03:00
22b00f4354 for bug #55803 2022-03-10 11:48:00 +03:00
5b3860103e fix bug #55894 2022-03-10 11:20:34 +03:00
2604226810 pdf GetInfo 2022-03-10 11:12:11 +03:00
6c25c52a50 create GetInfo 2022-03-09 19:01:22 +03:00
c4a767e038 Merge pull request #867 from ONLYOFFICE/fix/v7.1.0-fix-bugs2
fix bug #55919
2022-03-09 16:15:21 +03:00
fa40db9ce2 fix bug #55919 2022-03-09 16:14:14 +03:00
bca42bf3de Add module for text engine 2022-03-06 14:10:08 +03:00
855245068c Correct colors for hatch brushes 2022-03-04 18:14:52 +03:00
583c6b4944 Merge remote-tracking branch 'origin/master' into release/v7.1.0 2022-03-04 18:06:01 +03:00
ede2accb1c add <a:pPr hangingPunct=1> val and correct buChar when buFont.charset==10 2022-03-04 16:08:51 +03:00
758f59303a Merge pull request #865 from ONLYOFFICE/fix/v7.1.0-fix-bugs
fix mac build
2022-03-04 11:55:20 +03:00
12b710d212 fix mac build 2022-03-04 11:54:45 +03:00
fec6f7b85f Merge pull request #864 from ONLYOFFICE/feature/de-prst-dash
[de][native]prstDash
2022-03-04 11:30:00 +03:00
dd260234e4 Add support formats in text format for builderJS object 2022-03-02 18:53:57 +03:00
613df67e27 Merge branch 'release/v7.1.0' of https://github.com/ONLYOFFICE/core into release/v7.1.0 2022-03-02 17:04:08 +03:00
06258d3c74 Fix bug 55759 2022-03-02 17:03:20 +03:00
af801f1dcc Merge pull request #863 from ONLYOFFICE/fix/v7.1.0-fix-bugs
Fix/v7.1.0 fix bugs
2022-03-02 11:17:55 +03:00
0cae25d1d5 fix #55830 2022-03-02 11:17:10 +03:00
988cbc406d . 2022-03-02 09:40:57 +03:00
750a9bde7e Merge pull request #862 from ONLYOFFICE/fix/v7.1.0-fix-bugs
Fix/v7.1.0 fix bugs
2022-03-01 20:02:02 +03:00
ec2ddfb477 for bug #55298 2022-03-01 20:01:07 +03:00
a472fe382a fix bug #55819 2022-03-01 19:59:27 +03:00
91c065377f Fix bug 55831 2022-03-01 18:22:12 +03:00
f8df8a0afe Remove unused files 2022-03-01 18:07:28 +03:00
2259629dba Fix bug #55460 2022-02-28 15:23:19 +03:00
b5c502714c Fix bug with font streams 2022-02-25 14:38:02 +03:00
33d688543d Merge pull request #861 from ONLYOFFICE/fix/v7.1.0-fix-math-odf
fix delimetr
2022-02-25 12:38:27 +03:00
7fe60af017 Merge pull request #860 from ONLYOFFICE/fix/v7.1.0-fix-bugs
fix bug #55290
2022-02-25 12:25:39 +03:00
24ba23f132 fix bug #55290 2022-02-25 12:21:12 +03:00
ef7d753e03 Merge pull request #859 from ONLYOFFICE/fix/v7.1.0-fix-bugs
fix bug #55662
2022-02-25 11:50:49 +03:00
4cd39bbcbd fix bug #55662 2022-02-25 11:49:44 +03:00
c298122393 Fix bug 55485 2022-02-24 18:55:17 +03:00
aa6f11ee62 [de][native]prstDash 2022-02-24 12:19:20 +03:00
7b853f2136 fix delimetr 2022-02-22 17:09:02 +03:00
2906945525 [ios] Remove dependency ImageUtils_ios.h 2022-02-22 15:27:35 +03:00
93fe2e8f50 Fix bug 55190 2022-02-22 13:49:46 +03:00
7c83535528 Merge branch hotfix/v7.0.1 into master 2022-02-22 08:13:32 +00:00
262fb3314c Fix crash with base14 fonts 2022-02-22 10:52:47 +03:00
3e5f946338 Merge pull request #855 from ONLYOFFICE/fix/v7.1.0-fix-bugs
fix embedded xlsx from chart
2022-02-21 18:13:42 +03:00
17a7820d96 fix embedded xlsx from chart 2022-02-21 18:12:44 +03:00
6305ac3f20 Fix crash with pick font by character 2022-02-20 18:07:06 +03:00
c701d480b8 Fix bugs with pdf to docx convertation 2022-02-20 16:21:30 +03:00
b8144ef394 Refactoring hunspell module 2022-02-18 12:55:00 +03:00
908609c3f8 Merge pull request #852 from ONLYOFFICE/fix/v7.1.0-fix-bugs
fix bug #55567
2022-02-16 20:49:27 +03:00
b22eeeab9d fix bug #55567 2022-02-16 20:48:20 +03:00
643dc749f2 Merge pull request #850 from ONLYOFFICE/fix/v7.1.0-fix-bugs
Fix/v7.1.0 fix bugs
2022-02-16 16:41:24 +03:00
4dd402f49a fix bug #50094 2022-02-16 16:40:15 +03:00
f0aa7d3212 for bug #55298 2022-02-16 15:36:18 +03:00
e632f0df3f [de][native] Add shadow structure 2022-02-16 08:36:23 +03:00
35a86586ab Merge pull request #849 from ONLYOFFICE/fix/bug-55460
Fix bug #55460
2022-02-15 11:51:25 +03:00
00fa7e7afe Fix bug #55460 2022-02-15 11:38:54 +03:00
e9535abe9f for bug #55298
fix controls & forms spreadsheets
2022-02-14 20:05:50 +03:00
743800155c Merge pull request #848 from ONLYOFFICE/fix/v7.1.0-fix-bugs
Fix/v7.1.0 fix bugs
2022-02-13 17:37:34 +03:00
ee5fed4dbb fix bug #55465
fix & extend biff2, biff3, biff4
2022-02-13 17:36:32 +03:00
894239a034 . 2022-02-12 15:04:57 +03:00
b8091509f4 Merge pull request #846 from ONLYOFFICE/fix/xpsFonts
fix xps fonts
2022-02-12 11:44:23 +03:00
0239816790 delete pSlashPoints 2022-02-12 10:42:16 +03:00
f0bda85e87 fix 2022-02-11 19:22:17 +03:00
5a42572d79 common NormalizePath 2022-02-11 18:39:52 +03:00
8cd9dfaef4 fix ../ in paths zlib 2022-02-11 18:20:29 +03:00
fa6b903edc .. clearning waste 2022-02-11 11:55:13 +03:00
e45a14e8df Merge pull request #845 from ONLYOFFICE/fix/v7.1.0-fix-bugs
Fix/v7.1.0 fix bugs
2022-02-10 17:56:35 +03:00
953a14ce13 Merge branch 'release/v7.1.0' into fix/v7.1.0-fix-bugs 2022-02-10 17:54:17 +03:00
ee79088f92 fix bug #55436 2022-02-10 17:44:07 +03:00
1e2614ece9 for bug #55431 2022-02-10 10:17:52 +03:00
a4c2eff0de added simple text shadow 2022-02-09 20:55:52 +03:00
b47e7155ab . 2022-02-09 18:35:24 +03:00
ca2d91a7f8 for bug #55298 2022-02-09 18:35:10 +03:00
e796ed7d72 small refactoring OdfReader includes paths 2022-02-08 21:54:34 +03:00
ebb375dfda small refactoring XlsFormat includes paths 2022-02-08 21:37:20 +03:00
7f30be5eba Remove extra deps 2022-02-08 21:30:02 +03:00
6c1434724f Merge pull request #844 from ONLYOFFICE/fix/v7.1.0-fix
.
2022-02-08 20:28:45 +03:00
f6a0121f1a . 2022-02-08 20:28:07 +03:00
00a18714e4 Merge pull request #840 from ONLYOFFICE/fix/v7.1.0-fix-bugs-odf2
Fix/v7.1.0 fix bugs odf2
2022-02-08 09:33:41 +03:00
aecf675627 . 2022-02-08 09:30:23 +03:00
ee3898085c some fixes 2022-02-08 08:01:27 +03:00
3694c008ea trying to fix 54125 2022-02-07 22:38:51 +03:00
915e41e0ac fix bug #55239 2022-02-07 17:03:50 +03:00
b0e9f2a255 fix bug #55235 2022-02-07 14:39:54 +03:00
45d3a1d490 Refactoring icu includes path 2022-02-07 10:06:40 +03:00
dc574f6606 [x2t] For bug 55284 2022-02-06 13:02:42 +03:00
ea70fb9404 Refactoring 2022-02-04 16:21:52 +03:00
c09f25b8d0 Fix bug #33395
Fix the problem with parsing embedded truetype font
2022-02-04 16:06:21 +03:00
132c041182 Refactoring TextAssociation types 2022-02-04 16:05:48 +03:00
c886341ac1 Fix bug 53831 2022-02-04 15:03:06 +03:00
45121fa2f8 fix 2022-02-04 08:51:32 +03:00
526523c5a3 fix bug #52780 2022-02-04 00:19:42 +03:00
4fab74ffdd Merge branch 'fix/v7.1.0-fix-bugs-odf' into fix/v7.1.0-fix-bugs-odf2 2022-02-03 22:24:07 +03:00
d25a2a79d8 bug 55239 2022-02-03 19:56:21 +03:00
76f4c5bfe3 fix part of #52780 2022-02-02 21:34:37 +03:00
f9f887535f fix bug #55290 2022-02-02 16:41:50 +03:00
84ac4f343d fix bug #54032 2022-02-01 20:46:33 +03:00
0773ad19e6 Add statistics to viewer 2022-02-01 20:14:30 +03:00
c89a45e08b Revert "girignore"
This reverts commit 20760b8ce2.
2022-02-01 18:37:15 +03:00
d632fcc2a2 Merge pull request #838 from ONLYOFFICE/fix/bug55177
Fix bug 55177
2022-02-01 18:05:13 +03:00
e5472df42c fix empty wsFontBaseName
fix bug 55177
2022-02-01 17:35:01 +03:00
f395aa1257 Merge pull request #837 from ONLYOFFICE/fix/bug55177
Fix bug 55177
2022-02-01 16:18:56 +03:00
a326867444 fix bug 55177 2022-02-01 16:16:34 +03:00
45c7f8b9f6 Remove unused files 2022-02-01 14:18:06 +03:00
bf656716ed correct <a:endParaRPr> for #54032 2022-01-31 22:47:20 +03:00
6b4566fe9a Merge pull request #836 from ONLYOFFICE/fix/bug55177
Fix bug 55177
2022-01-31 15:55:21 +03:00
59836490a3 Fix bug 55177
xpdf itself tries to handle the error and if it succeeds, then isOk will be gTrue
2022-01-31 15:49:54 +03:00
20760b8ce2 girignore 2022-01-31 12:30:11 +03:00
8ab7ddd5ca Merge pull request #835 from ONLYOFFICE/fix/v7.1.0-fix-bugs-odf
fix bug with Large Operator
2022-01-31 11:13:50 +03:00
60cbfc54e8 fix bug with Large Operator 2022-01-31 10:47:13 +03:00
5d4dbb3eb5 fix bug #52199 2022-01-28 18:37:44 +03:00
6a64a2849c Refactoring 2022-01-28 16:47:33 +03:00
dfd40deb5c CShapeElement was replaced by shared_ptr<CElement> 2022-01-28 16:33:02 +03:00
bc28411096 add table txBody and bullets 2022-01-28 15:29:21 +03:00
2f330e16a6 fix bug #54562 2022-01-28 13:39:49 +03:00
4dbd3b05e9 add wrap=none 2022-01-28 12:02:19 +03:00
4a93c91011 Fix bug 47558 2022-01-28 11:39:25 +03:00
d1dc39447d fix bug #53860 2022-01-28 11:00:24 +03:00
8f1b0db9ae Merge remote-tracking branch 'origin/fix/v7.0.0-ppt1' into release/v7.1.0 2022-01-28 09:47:15 +03:00
e1e54ae2da Refactoring image interpolation 2022-01-27 22:04:18 +03:00
804d0822f2 Fix bug #54676
Fix the problem with inheritance
2022-01-27 18:52:10 +03:00
e32f76c8db [pdf] Fix the problem with rendering images with soft mask 2022-01-27 17:16:07 +03:00
b339ea1866 Fix erasing path string when no file was selected 2022-01-27 17:08:57 +03:00
18f53a9350 fix bug #54124 2022-01-27 16:57:09 +03:00
9d42b9d4f4 Fix related links after moving project 2022-01-27 14:48:24 +03:00
574fa40950 Move test project to upper folder 2022-01-27 14:41:58 +03:00
561dc7e8c5 Set zoom to page height by default
Fix minor bugs
2022-01-27 14:34:09 +03:00
1fe1155834 Improve test pdf view example 2022-01-27 12:33:14 +03:00
52ae479593 Merge remote-tracking branch 'origin/hotfix/v7.0.1' into release/v7.1.0 2022-01-27 11:27:33 +03:00
5940f95c3f Merge pull request #834 from ONLYOFFICE/fix/pdfStructure
fix pdf structure
2022-01-27 11:11:49 +03:00
f188a48f48 fix empty NamedDest 2022-01-27 11:08:23 +03:00
c8f4f52e4f Fix main part of bug 54124 2022-01-26 18:31:54 +03:00
cdae42d897 . 2022-01-26 17:41:43 +03:00
291edf8319 fix bug #54530 2022-01-26 15:32:38 +03:00
8c2534b572 fix bug #55074 2022-01-25 17:46:13 +03:00
80c5e10c9d fix bug #54031 2022-01-25 15:34:59 +03:00
12a18a4e03 Correct table's bullets or <a:pPr> 2022-01-25 14:35:20 +03:00
95bca8599a fix bug #54713 2022-01-25 13:32:03 +03:00
4e8df0bc79 fix and correct bullets. But it's need refactoring 2022-01-25 11:43:24 +03:00
b49aa4413f fix bug #54625 2022-01-25 11:20:29 +03:00
952d16458c . 2022-01-24 20:38:33 +03:00
2dc6aa71de Refactoring and fix not table bullets 2022-01-24 18:28:34 +03:00
94f51bda81 xlsb->xlsx 2022-01-24 17:48:47 +03:00
6c056e4289 Merge branch 'release/v7.1.0' of https://github.com/ONLYOFFICE/core into release/v7.1.0 2022-01-24 16:55:28 +03:00
9e98968d04 Refactoring generation wasm drawingfile module 2022-01-24 16:54:42 +03:00
56925eff71 Fix ios build 2022-01-24 14:11:59 +03:00
012f04acd2 . 2022-01-24 11:37:57 +03:00
388b680547 fix xlsb->xlsx(t) 2022-01-24 01:09:16 +03:00
6b24197cf1 . 2022-01-21 16:05:27 +03:00
209a3874c8 Merge pull request #832 from ONLYOFFICE/fix/v7.0.1-fix-bugs
fix bug #55027
2022-01-21 15:34:22 +03:00
abc74e21d0 fix bug #55027 2022-01-21 15:33:26 +03:00
42478ac950 Merge branch 'release/v7.1.0' of https://github.com/ONLYOFFICE/core into release/v7.1.0 2022-01-21 15:03:03 +03:00
7dfe4af359 Add support darkMode in wasm module 2022-01-21 15:02:16 +03:00
c066c24449 fix bug #54957 2022-01-21 13:15:17 +03:00
4a6d338a08 fix bug #54625 2022-01-21 12:26:14 +03:00
a9cb8de197 Refacrtoring wasm module 2022-01-20 20:31:00 +03:00
683955bb5e Merge pull request #831 from ONLYOFFICE/fix/v7.1.0-fix-bugs
Fix/v7.1.0 fix bugs
2022-01-20 11:57:07 +03:00
db2930ed33 for bug #54956 2022-01-20 11:54:17 +03:00
a763b497a2 fixbug #54713 2022-01-20 11:38:36 +03:00
ed86945e14 fix bug #54433 2022-01-19 18:05:17 +03:00
5a4ca8479f fix bug #54791 2022-01-19 17:11:37 +03:00
9018e9a252 fix bug #51735 2022-01-19 16:14:11 +03:00
8bd6f45fb2 Merge remote-tracking branch 'origin/hotfix/v7.0.1' into release/v7.1.0 2022-01-19 14:22:36 +03:00
a5c4cb9438 Merge branch 'hotfix/v7.0.1' into fix/v7.0.0-ppt1 2022-01-19 11:50:50 +03:00
e78b399810 Merge pull request #830 from ONLYOFFICE/fix/v7.0-fix-bugs
Fix/v7.0 fix bugs
2022-01-19 11:39:52 +03:00
f3f627572f Support text commands 2022-01-18 17:31:11 +03:00
125110e805 Fix typo 2022-01-18 15:33:13 +03:00
04e58e38f0 Remove using graphics.pri in release mode 2022-01-18 15:05:47 +03:00
6d94535ff8 Add missed files 2022-01-18 12:06:04 +03:00
8f29d012a2 Fix build 2022-01-18 10:53:31 +03:00
79d5bdd78b Add missed file 2022-01-17 20:54:57 +03:00
1136916768 Fix build wasm module 2022-01-17 18:20:32 +03:00
e6b69fe2f4 Merge branch release/v7.0.0 into release/v7.1.0 2022-01-17 14:19:11 +00:00
1f976ae79a Merge branch release/v7.0.0 into master 2022-01-17 14:18:57 +00:00
795a7fcb3b Merge pull request #817 from ONLYOFFICE/fix/tmp7.1
Fix/tmp7.1
2022-01-17 16:18:03 +03:00
85a551fb63 Refactoring 2022-01-17 16:04:41 +03:00
b9d6b59991 Merge branch 'fix/drFile' into fix/tmp7.1 2022-01-17 13:32:45 +03:00
487e9ae95a Merge pull request #815 from ONLYOFFICE/feature/add-custom-fonts-path
Add CUSTOM_FONTS_PATH env var
2022-01-16 20:19:48 +03:00
d7521d04a7 fix pptx binary group with chart & smart art 2022-01-14 18:26:46 +03:00
f42c1df7a9 . 2022-01-14 16:17:25 +03:00
c434d82807 Refactoring 2022-01-14 14:31:00 +03:00
b694019e19 Refactoring 2022-01-14 12:32:22 +03:00
e0185bd0c3 Refactoring 2022-01-14 10:42:11 +03:00
e13683874a Refactoring 2022-01-13 20:50:02 +03:00
28ac386e08 Refactoring 2022-01-13 20:11:38 +03:00
4b9da896ab fix bug #54485 2022-01-13 18:12:26 +03:00
1870b3fba4 Add changes 2022-01-13 16:30:54 +03:00
fb079be1bd fix debug win build 2022-01-12 21:00:43 +03:00
fc342a90ee Fix bug 54803 2022-01-12 18:24:18 +03:00
269855a862 Refactoring 2022-01-12 16:41:57 +03:00
bdacbac1b2 Merge pull request #814 from ONLYOFFICE/fix/bug54731
Fix bug 54731
2022-01-12 16:37:24 +03:00
88877241e3 Fix crash 2022-01-12 16:13:50 +03:00
6561216356 fix bug #54819 2022-01-11 19:10:16 +03:00
4e0cd2f9b0 Merge branch 'fix/v7.0.0-ppt1' of https://github.com/ONLYOFFICE/core into fix/v7.0.0-ppt1 2022-01-11 13:53:42 +03:00
68582b65d1 Add CUSTOM_FONTS_PATH env var 2022-01-11 11:21:05 +03:00
2ef8b83da0 Merge branch 'release/v7.1.0' of https://github.com/ONLYOFFICE/core into release/v7.1.0 2022-01-10 18:57:45 +03:00
218b36ab8d . 2022-01-10 18:57:39 +03:00
5b7deea769 Fix android build 2022-01-10 18:21:33 +03:00
eb75805c88 Merge remote-tracking branch 'origin/fix/v7-fix-bugs' into release/v7.1.0 2022-01-10 17:44:17 +03:00
26fea8bf52 error in BinaryFileReader.getbase64DecodedData if v5 Editor.bin 2022-01-10 16:07:35 +03:00
b4f424737c Merge pull request #809 from ONLYOFFICE/feature/arm64
Feature/arm64
2022-01-10 14:27:19 +03:00
2e054bf9d9 Developing... 2022-01-07 11:16:04 +03:00
c75e65eb4c Developing... 2022-01-04 19:07:37 +03:00
18c41a4846 [x2t] Fallback to xml mode if command line argument did nor recognized 2021-12-30 19:56:31 +03:00
61735c2790 [Test] Update tests; remove xsd:extension 2021-12-30 17:47:09 +03:00
e872a4c0ac . 2021-12-29 10:53:42 +03:00
5af2d1b472 fix name of .bin file for doctrenderer 2021-12-28 14:48:57 +03:00
6044929214 fix name of .bin file for doctrenderer 2021-12-28 11:10:27 +03:00
f293394cf4 . 2021-12-27 13:40:35 +03:00
c0c11cf928 DjVu to clean 2021-12-24 10:08:50 +03:00
ecbc73d33b OdfFormatWriter - add convert math equation in spreadsheets and presentation 2021-12-23 20:37:19 +03:00
4f9d22bcb0 Merge branch 'feature/odf' into develop 2021-12-23 20:17:10 +03:00
7a261ba649 Some fixes 2021-12-23 11:19:43 +03:00
81d95a9108 Merge pull request #808 from ONLYOFFICE/feature/mobile_footnote
Dev mobile footnote and endnote
2021-12-22 18:05:24 +03:00
57b46c22ef . 2021-12-21 16:36:12 +03:00
7ecfa52517 Merge remote-tracking branch 'origin/feature/xlsb_2' into develop 2021-12-21 16:12:39 +03:00
8de5e88469 [xlsb] fix bug (invisible cell value) 2021-12-21 15:58:39 +03:00
7f8988278c [xlsb] add to logic.cpp for release 2021-12-21 15:43:29 +03:00
26b2256fa8 Add footnote properties define 2021-12-21 13:57:33 +03:00
67facf5e69 fix nativegraphics test 2021-12-21 11:18:39 +03:00
92e2385650 DjVu GString return 2021-12-20 20:48:44 +03:00
ebec731098 [x2t] For xlsb opening 2021-12-20 20:15:06 +03:00
2fdcd75eab [xlsb] fix bugs and add chart sheet (records, unions, fill inside objects) 2021-12-20 20:02:19 +03:00
ccb5105ff7 Trying to fix 54124. 2021-12-20 18:36:35 +03:00
efeaf9b8d1 fix bug #54623 2021-12-20 17:29:34 +03:00
9e7d7a366d Restore stock freetype 2021-12-20 16:02:47 +03:00
af4a07d12f Merge pull request #807 from ONLYOFFICE/develop
Develop
2021-12-20 15:10:24 +03:00
a3b83ecace diakrit. symbols
semi results
2021-12-20 14:04:17 +03:00
955025a3a1 fix bug #54530 2021-12-17 16:20:27 +03:00
c0dd3db439 Merge branch 'feature/ppt_8' into fix/v7.0.0-ppt1 2021-12-17 12:20:25 +03:00
afe1c7b341 Add ExOleEmbedAtom. Trying to find diagram data 2021-12-17 11:14:28 +03:00
53fcb5e639 [xlsb] add dataConsolidation (records, unions, fill inside objects) 2021-12-16 14:56:24 +03:00
03a7332f8a [xlsb] fix bugs and add rwBreak, colBreak, picture, protectedRanges
(records, unions, fill inside objects)
2021-12-15 20:19:36 +03:00
c8a848766d [Test] Update DocxFormatCodeGen for js xml 2021-12-15 20:09:31 +03:00
d21ad2ae43 Brackets 2021-12-15 10:46:28 +03:00
e1ce3d8456 DocxRenderer fix TempDirectory 2021-12-15 10:23:56 +03:00
8b6c3c288b [xlsb] fix bugs 2021-12-14 19:35:37 +03:00
0f9433c7ce [xlsb] oleObjects, controls, sheetPr (records, unions, fill inside
objects)
2021-12-14 17:39:57 +03:00
dd474f72ea fix build linux 2021-12-14 16:56:41 +03:00
1b918413cb . 2021-12-14 14:06:15 +03:00
eb2aada6d9 fix DocxRenderer res 2021-12-14 12:35:09 +03:00
6dcf645e88 Merge branch 'feature/xlsb_2' into develop 2021-12-14 11:45:53 +03:00
f61bf56d14 . 2021-12-14 11:45:30 +03:00
b78fca4290 pdf/xps/djvu -> docx_dir -> fromDocxDir 2021-12-14 11:45:26 +03:00
b6cc7c823a . 2021-12-14 11:28:52 +03:00
da2bf87c2b . 2021-12-14 10:34:48 +03:00
15ed64791f Merge branch 'feature/xlsb_2' of https://github.com/ONLYOFFICE/core into feature/xlsb_2 2021-12-14 10:17:19 +03:00
fc7751a4e3 fix 2021-12-14 10:06:33 +03:00
a98dc97e48 [xlsb] fix slicerCache 2021-12-13 22:41:42 +03:00
82dc397171 [xlsb] add slicerCache in workbook 2021-12-13 17:30:17 +03:00
20e92bbf95 base-14 fonts selection 2021-12-13 17:23:41 +03:00
09862cdd1c . 2021-12-13 14:54:41 +03:00
30ed03be15 . 2021-12-13 10:22:28 +03:00
005fea0701 . 2021-12-13 09:57:56 +03:00
e0bd7f3e84 Merge pull request #805 from ONLYOFFICE/release/v7.0.0
Fix allfontsgen
2021-12-12 19:18:42 +03:00
abec57becd Refactoring base64 fonts 2021-12-11 23:52:47 +03:00
02efc63109 . 2021-12-10 18:08:48 +03:00
bdf1295693 Merge remote-tracking branch 'origin/develop' into fix/drawing_file_client 2021-12-10 17:49:02 +03:00
c3b8e90a3e PdfWriter test 2021-12-10 17:28:24 +03:00
8e0216281d . 2021-12-10 17:18:04 +03:00
e721f6c942 Merge branch 'feature/xlsb_2' into develop 2021-12-10 17:10:03 +03:00
20eb11bf3f Merge remote-tracking branch 'origin/release/v7.0.0' into develop 2021-12-10 17:09:25 +03:00
9a4a9a805f [xlsb] add slicerEx in worksheet 2021-12-10 15:56:20 +03:00
1c9b9d5e0f . 2021-12-10 13:59:07 +03:00
0d5b92520b [xlsb] add SlicerCache (record, unions, fill inside objects) for
slicerCaches.bin
2021-12-10 13:42:57 +03:00
809020965f Merge branch 'develop' of https://github.com/ONLYOFFICE/core into develop 2021-12-10 12:05:05 +03:00
d612b64b4b Merge branch 'release/v7.0.0' into develop 2021-12-10 12:04:00 +03:00
7c15562236 . 2021-12-10 11:50:58 +03:00
74a8455e13 fix build 2021-12-10 10:35:59 +03:00
db83a36fc4 Merge remote-tracking branch 'origin/fix/v7.0.0-ppt' into develop 2021-12-10 10:20:54 +03:00
9d12314f22 fix empty djvu 2021-12-09 14:16:59 +03:00
c352a057e8 Merge remote-tracking branch 'origin/feature/xlsb_2' into develop 2021-12-09 12:24:24 +03:00
c95b3dd04b Fix linux build 2021-12-09 10:34:40 +03:00
658d35739a [xlsb] add slicer (records, unions, fill inside objects) 2021-12-08 13:34:11 +03:00
cbf727460b [xlsb] add sparkline (records, unions, fill inside objects) 2021-12-07 19:47:26 +03:00
4aae8eabca fix isBase-14 2021-12-07 17:17:08 +03:00
53deeec405 fix Base-14 like before 2021-12-07 11:44:58 +03:00
6a77d1d1c6 [xlsb] add Connections (fill objects part) 2021-12-07 11:14:11 +03:00
f2db638138 Update MathConverter.cpp
Fix some bugs of Large Operators
2021-12-07 01:54:13 +03:00
79087dda1e add Resources fonts to displayFontTab 2021-12-06 18:51:30 +03:00
6d9778e913 Merge pull request #799 from ONLYOFFICE/feature/docx-renderer
Feature/docx renderer
2021-12-05 20:52:14 +03:00
d7f98f26d0 Remove convertation to docxf from pdf/xps/djvu 2021-12-05 20:50:46 +03:00
995beaefa1 [xlsb] add Connections (only records, structs, unions) 2021-12-03 19:57:04 +03:00
377f454872 m_oTextParams 2021-12-03 13:39:28 +03:00
e3c6e9b3f9 pdf/xps/djvu to docx_dir 2021-12-03 11:07:31 +03:00
62289d1310 pdf/xps/djvu to docx in x2t 2021-12-02 14:40:45 +03:00
a324d9f8d9 fix pdf Base-14 font 2021-12-01 12:47:18 +03:00
9545a3e7f3 [xlsb] add QueryTable (records, unions, fill inside objects) 2021-11-30 22:44:31 +03:00
721fc5e7ac Fix build with new qmake & vs2019 2021-11-30 12:47:13 +03:00
b4c8269729 fix make.py 2021-11-29 11:16:29 +03:00
7b49631c73 Merge remote-tracking branch 'origin/release/v7.0.0' into develop
# Conflicts:
#	PdfReader/old/XRef.cpp
2021-11-29 11:15:53 +03:00
76d3b45fb8 Refactoring 2021-11-28 18:35:57 +03:00
3727b7391a try fix pdf selection of fonts
oFontSelect.bBold and oFontSelect.bItalic are not filled.
The font to find is an external font file for Base-14 font, but base14SysFonts is empty with BUILDING_WASM_MODULE. Need fix it.
2021-11-26 18:51:24 +03:00
a3cab2d098 fix zlib_addon 2021-11-26 16:12:38 +03:00
3430f915d3 fix ApplicationFonts 2021-11-25 10:59:35 +03:00
f172cc86b3 Merge branch 'develop' into fix/drawing_file_client
# Conflicts:
#	DesktopEditor/fontengine/ApplicationFonts.cpp
2021-11-25 10:47:56 +03:00
22f6607545 .gitignore change 2021-11-25 10:10:58 +03:00
95c96bbffc [xlsb] fix bugs for table (Banded, Header, Total options) 2021-11-24 18:56:28 +03:00
6ae8c69efa Merge remote-tracking branch 'origin/release/v7.0.0' into develop 2021-11-24 18:31:08 +03:00
04bb20a8e4 try fix setupBaseFonts for base14SysFonts 2021-11-24 17:37:43 +03:00
2b8e9009a9 [xlsb] fix DataValidation formula, fix Table formula(for case, where
reference to table, which not parsed yet)
2021-11-23 20:54:59 +03:00
ded9e12051 Merge pull request #783 from ONLYOFFICE/release/v7.0.0
Fix build
2021-11-23 12:04:41 +03:00
9134d0f087 Merge branch 'release/v7.0.0' into develop 2021-11-23 10:53:49 +03:00
21685704b6 Create README.md 2021-11-22 17:13:56 +03:00
d4f7cc6d6f relocate polyfill and fix sources 2021-11-22 12:56:23 +03:00
374af06be8 Fix build 2021-11-21 21:31:32 +03:00
8b42268d7e Merge branch 'release/v7.0.0' into develop 2021-11-21 16:12:33 +03:00
a22f0515e0 [xlsb] add DataValidation and DataValidation extension (records, unions,
fill inside objects)
2021-11-19 16:20:26 +03:00
a33de97309 without after.py 2021-11-19 11:07:23 +03:00
707e610625 common script for xmlsec
add support python in-line before and after script
2021-11-18 16:24:01 +03:00
0e76a06c46 Merge branch 'feature/xlsb_2' of https://github.com/ONLYOFFICE/core into feature/xlsb_2 2021-11-17 16:25:55 +03:00
137d25cdbb [xlsb] add HeaderFooter (records, union, fill inside objects) 2021-11-17 16:25:39 +03:00
29214ee77e common script for hunspell
fix bug: hunspell/src/hunspell/dictmgr.cxx does not exist
2021-11-17 12:39:58 +03:00
3e922260d3 Merge remote-tracking branch 'origin/release/v7.0.0' into develop 2021-11-17 10:57:12 +03:00
a2c92066ba Merge pull request #777 from ONLYOFFICE/feature/xlsb_2
Feature/xlsb 2
2021-11-17 10:55:52 +03:00
b3530fa2dd . 2021-11-17 10:51:32 +03:00
67bd59e343 [xlsb] add Margins, PageSetup, PrintOptions for worksheet (records, fill
inside objects)
2021-11-16 19:13:25 +03:00
8b85428f82 common script for zlib 2021-11-16 18:20:56 +03:00
99f44b62ed fix common script for drawingfile 2021-11-16 15:48:13 +03:00
ea6c30e2bd common script 2021-11-15 18:55:05 +03:00
3e3aa0352d [xlsb] add table formula, fix defined names 2021-11-15 15:28:04 +03:00
06c64fa222 Fix target name 2021-11-15 10:41:05 +03:00
ebfa8da621 Add pro files for vs2019 2021-11-15 09:15:47 +03:00
231daf9977 Fix build 2021-11-14 11:52:11 +03:00
70473c80a0 Merge pull request #770 from ONLYOFFICE/feature/xlsb_2
[xlsb] fix shared formula, add new Ftab functions
2021-11-12 17:18:34 +03:00
2f4ae5ebc8 [xlsb] fix shared formula, add new Ftab functions 2021-11-12 14:43:19 +03:00
597155af11 add DjVu GetGlyphs 2021-11-11 17:21:46 +03:00
69f2c29679 . 2021-11-11 14:26:12 +03:00
e68fd292ba . 2021-11-11 13:12:00 +03:00
b7129680c3 Merge pull request #768 from ONLYOFFICE/feature/xlsb_2
Feature/xlsb 2
2021-11-11 13:02:26 +03:00
30d3472b62 test GetGlyphs 2021-11-10 17:19:13 +03:00
48e3b820a3 [xlsb] fix formulas (sheet name in references) 2021-11-09 19:24:34 +03:00
e845124498 [xlsb] add files in .pro 2021-11-09 19:23:38 +03:00
72c2753cab xps refactoring 2021-11-09 15:08:33 +03:00
5ff7ca9b4c Merge remote-tracking branch 'origin/release/v7.0.0' into develop 2021-11-09 12:29:37 +03:00
5392788a72 Merge branch 'develop' into feature/xlsb_2 2021-11-09 11:46:43 +03:00
0602d89de0 refactoring xlsb project 2021-11-09 11:45:22 +03:00
fc91e7b9ce refactoring 2021-11-08 18:00:30 +03:00
1c5a0bd0f4 fix memory pImageData 2021-11-08 14:10:11 +03:00
a7cd1c1210 fix StringExt 2021-11-08 13:02:05 +03:00
9ecc2410a6 [xlsb] fix table and add extension for table (altText) 2021-11-08 10:21:32 +03:00
ebf2680335 Fix convertation with block mode 2021-11-07 21:53:54 +03:00
0294266863 [xlsb] add Table (records, unions and fill inside objects) 2021-11-03 16:29:45 +03:00
be04ee38b7 [xlsb] add fill inside objects for autofilters 2021-11-02 18:10:27 +03:00
b73ef690bb fix realloc memory error and xps dpi 2021-11-02 17:57:35 +03:00
d5189a952a [xlsb] add AUTOFILTER (only records and unions) 2021-11-02 00:42:23 +03:00
87af894198 refactoring 2021-11-01 17:55:38 +03:00
3ecdbe6d64 . 2021-11-01 17:40:48 +03:00
28220bbde7 . 2021-11-01 12:02:55 +03:00
f6908517e2 fix build 2021-11-01 11:01:55 +03:00
3cb19a4ceb Merge branch 'feature/xlsb2' into feature/xlsb3 2021-10-30 13:06:07 +03:00
433c5b1cfe xps fix GetGlyphs 2021-10-29 18:40:33 +03:00
cb51dc3e40 [xlsb] fix bug with start space in Si 2021-10-29 18:28:59 +03:00
6ff569edf7 [xlsb] fix bugs with fonts and build 2021-10-29 17:03:52 +03:00
1e9e2ab603 Merge branch 'release/v7.0.0' into develop 2021-10-29 16:19:54 +03:00
d1aa2ebfe3 xlsb small refactoring + fix build 2021-10-29 15:51:48 +03:00
9701fa9807 [xlsb] fix mergeCell 2021-10-29 14:37:22 +03:00
fc7d427407 pdf fix links 2021-10-29 14:21:21 +03:00
0bee7b0aaa pdf text link 2021-10-29 13:41:08 +03:00
722ab2c2ca [xlsb] fix dxf bugs 2021-10-29 13:15:51 +03:00
b547c28e72 [xlsb] refactoring for fonts in Si 2021-10-29 11:40:39 +03:00
17b25167b1 xps fix change font 2021-10-28 13:57:17 +03:00
3c6096967b xps fix nCurrentFont 2021-10-27 18:58:11 +03:00
ef99a5d92d [xlsb] add CXlsb class, refactoring code 2021-10-27 17:58:22 +03:00
ada8f8beb8 fix WriteDouble2 and test 2021-10-26 18:03:34 +03:00
ea11a8c348 [xlsb] add comments support (records, fill inside objects) 2021-10-26 12:27:16 +03:00
73362fd852 xps getGlyphs 2021-10-25 18:06:14 +03:00
b611a6b099 fix getGlyphs format 2021-10-25 16:35:00 +03:00
c3b7d3de8b add DumpLine 2021-10-22 16:55:18 +03:00
b89180a549 [xlsb] add ext for styles (fill objects) 2021-10-22 14:49:05 +03:00
958e1fcadf Fix bad font types 2021-10-22 11:24:21 +03:00
0793519bb0 add _GetErrorCode 2021-10-22 11:01:41 +03:00
f5332a8b59 Fix problem with writing streams to xml 2021-10-22 10:08:57 +03:00
92d916fa57 [xlsb] add FRTSTYLESHEET (only records and unions), fix bugs 2021-10-21 20:32:00 +03:00
d1b7b280c5 Fix compile 2021-10-21 19:32:46 +03:00
113e15c391 develop GetGlyphs 2021-10-21 18:48:31 +03:00
2481578533 Add support vs2019 & v8 8.9 2021-10-21 15:05:17 +03:00
8950b3535a [xlsb] add ext for conditionalFormatting, fix bugs 2021-10-20 23:20:37 +03:00
b4701ac83c develop new GetGlyphs 2021-10-20 18:09:29 +03:00
9e58de380e Merge remote-tracking branch 'origin/release/v7.0.0' into develop 2021-10-19 21:06:11 +03:00
05c6260499 Add support vs2019 2021-10-19 14:12:12 +03:00
6dd1e80ce5 [xlsb] add CONDITIONALFORMATTING14 and fix bugs 2021-10-18 23:39:10 +03:00
533d04e8f3 change origin to top left corner
only in xps format the canvas sizes are multiplied
2021-10-18 17:46:05 +03:00
a81115d2f3 pdf password 2021-10-15 18:07:16 +03:00
3618465853 pdf fix coord 2021-10-15 17:29:43 +03:00
e20588a3da fix coords 2021-10-15 16:03:26 +03:00
fafa2023d1 Fix minimize version 2021-10-14 20:23:34 +03:00
32823bd55a pdf fix coords 2021-10-14 16:40:10 +03:00
37a851ef98 . 2021-10-14 13:09:47 +03:00
9099a04b2d fix build linux 2021-10-14 12:36:41 +03:00
af246c553e . 2021-10-14 12:27:09 +03:00
42e515dfec . 2021-10-14 11:08:50 +03:00
15da75c473 fix build 2021-10-14 10:31:20 +03:00
e90b2957a6 [xlsb] fix bugs, add fonts to shared strings 2021-10-13 23:47:04 +03:00
b0f77fddf1 Refactoring 2021-10-13 16:53:13 +03:00
276bc48a24 Merge pull request #744 from ONLYOFFICE/fix/drawing_file_client_fonts
Change setjmp/longjmp to c++ exeptions
2021-10-13 16:50:04 +03:00
9d475122e3 Change setjmp/longjmp to c++ exeptions 2021-10-13 16:43:54 +03:00
6f01769c4d fix build 2021-10-13 10:32:35 +03:00
5495def631 [xlsb] add tableStyles, colorPalette (records, fill inside objects) 2021-10-12 19:26:32 +03:00
a6a2243099 pdf GetGlyphs like xps 2021-10-12 18:10:30 +03:00
90172d03ef pdf GetGlyphs 2021-10-12 17:33:23 +03:00
6f321fc0e3 Merge pull request #742 from ONLYOFFICE/fix/drawing_file_client_fonts
Fix/drawing file client fonts
2021-10-12 16:02:33 +03:00
c8e2b18f35 Remove fonts binary 2021-10-12 13:37:59 +03:00
7956395c7c . 2021-10-12 13:28:48 +03:00
d5cbd33a59 restore 2021-10-12 12:45:01 +03:00
25fb7daee9 back 2021-10-12 12:26:32 +03:00
afbb6fe4ff fix qt project & build 2021-10-11 23:29:58 +03:00
03e2fa60fa [xlsb] add Style and DXFs (records, fill inside objects) 2021-10-11 23:29:46 +03:00
efdc67e1ba Refactoring 2021-10-11 21:20:41 +03:00
cb8f8c535c Merge pull request #741 from ONLYOFFICE/fix/drawing_file_client
pdf fix GetStructure and start GetGlyphs
2021-10-11 20:43:11 +03:00
ed9e6a83e6 Add ARM_ALIGN flag for wasm/asmjs compilation 2021-10-11 20:23:03 +03:00
e9325f77e0 Developint not embedded fonts 2021-10-11 19:04:28 +03:00
2ff6b62854 pdf fix GetStructure and start GetGlyphs 2021-10-11 17:53:43 +03:00
8e4750bb0b Merge branch 'feature/odf' into feature/odf2 2021-10-11 09:40:00 +03:00
8dbe1da419 Developing not embedded fonts in viewer 2021-10-10 20:49:15 +03:00
c8cf662c1b Add file 2021-10-10 20:47:49 +03:00
81a1364ae0 pdf GetLinks and GetStructure 2021-10-08 17:43:01 +03:00
57f1438949 cleaning of code 2021-10-08 16:38:31 +03:00
45b6929dd4 gitignore stuff 2021-10-08 16:35:14 +03:00
f66053508b [xlsb] add cellStyleXFs, cellXFs (records, fill objects) 2021-10-08 16:21:12 +03:00
82b11909f9 Fix bugs 2021-10-07 21:42:28 +03:00
5bc07126a9 pdf identifyMem fix 2021-10-07 18:40:11 +03:00
4836418528 fix 2021-10-07 11:45:11 +03:00
4547a18aab [xlsb] add Borders (records, fill inside objects) 2021-10-07 11:42:59 +03:00
ed2f9e0035 Fix load .mem file 2021-10-07 10:15:39 +03:00
20011c8647 Merge branch 'fix/drawing_file_client' of https://github.com/ONLYOFFICE/core into fix/drawing_file_client 2021-10-07 08:31:26 +03:00
1599d943f4 Refactoring 2021-10-07 08:30:50 +03:00
b03b2a52bb [xlsb] add FMTS, FONTS, FILLS parsing for styles (records, fill inside
object)
2021-10-06 19:30:10 +03:00
ad44fecc10 fix 2021-10-06 18:22:19 +03:00
64b428a992 ie support 2021-10-06 13:12:33 +03:00
39f6dda5d8 Refactoring 2021-10-05 21:03:46 +03:00
3f73c12f83 build wasm module 2021-10-05 19:17:39 +03:00
5702a34d69 Refactoring 2021-10-05 18:01:32 +03:00
5487058744 Refactoring 2021-10-05 17:36:53 +03:00
c75af891b2 xps fix 2021-10-05 16:51:16 +03:00
3c1a598fd5 Fix xps 2021-10-05 16:21:17 +03:00
d7c4ceba92 Fix errors 2021-10-05 15:13:22 +03:00
54e10c7b55 Support disabling to pdf convertation 2021-10-05 11:53:37 +03:00
9327fce5ca fix link 2021-10-05 11:41:23 +03:00
0bd55565fe Fix 2021-10-05 11:38:36 +03:00
48121355f3 js fix merge with develop 2021-10-05 11:03:19 +03:00
d5d8c86e8e js fix 2021-10-04 19:55:13 +03:00
7569534cfd c++ fix merge with develop 2021-10-04 18:11:05 +03:00
e0fd7ff1f0 Merge branch 'develop' into fix/drawing_file_client
# Conflicts:
#	PdfReader/PdfReader.h
#	PdfReader/Src/RendererOutputDev.cpp
#	PdfReader/old/Graphics.cpp
2021-10-04 15:37:09 +03:00
d9217329eb fix some problems 2021-10-04 15:02:16 +03:00
e3fa8c53bf fix PDFGraphics 2021-10-04 10:47:26 +03:00
26a677074c pdf fix js implementation 2021-10-01 17:57:45 +03:00
601f615a35 [x2t] Add m_bConvertToOrigin xml param 2021-10-01 13:03:18 +03:00
c45b6034c7 Fix build 2021-10-01 11:15:17 +03:00
2c2cfbe07d Merge branch 'feature/xlsb' into feature/xlsb2 2021-10-01 10:31:51 +03:00
792915bb3a Merge remote-tracking branch 'remotes/origin/release/v6.5.0' into develop 2021-09-30 19:41:13 +03:00
5de83dc86a Merge branch hotfix/v6.4.1 into develop 2021-09-30 12:13:42 +00:00
7d5eb31f25 [xlsb] add shared strings (records and fill inside objects (without font
info) ) and fix bugs
2021-09-30 13:41:58 +03:00
5910bbfa5d fix embedded font 2021-09-30 12:00:00 +03:00
4ec1830847 add BUILDING_WASM_MODULE in RendererOutputDev::UpdateFont
need fix external font
2021-09-29 17:57:09 +03:00
ee81e468ab Merge remote-tracking branch 'origin/release/v6.5.0' into develop 2021-09-29 09:57:44 +03:00
fcd824042a add js pdf
need to fix cryptopp
2021-09-28 18:17:49 +03:00
0df0b9774d Merge pull request #729 from ONLYOFFICE/feature/docxrenderer2
Feature/docxrenderer2
2021-09-28 14:18:46 +03:00
b81c634800 Merge remote-tracking branch 'origin/feature/docxrenderer' into feature/docxrenderer2 2021-09-28 14:15:45 +03:00
1b9541b2b6 PDF LoadFromMemory and ConvertToPixels
change RendererOutputDev::UpdateFont
2021-09-27 18:03:33 +03:00
a7ef272cb5 [xlsb] add fill inside objects for ConditionalFormatting 2021-09-27 17:52:56 +03:00
bafa576191 Merge branch 'feature/NewParcerNamespaceTest' into develop 2021-09-27 10:47:13 +03:00
461809134c Merge pull request #722 from ONLYOFFICE/release/v6.5.0
Release/v6.5.0
2021-09-26 16:39:51 +03:00
aade9540d0 Fix ExtractAllImages 2021-09-26 16:35:22 +03:00
93b55d7936 [x2t] Add NSStringExt::FromHumanReadableByteCount to parse memory limit 2021-09-26 00:31:18 +03:00
faeac14054 [x2t] Rename MEMORY_LIMIT -> X2T_MEMORY_LIMIT; "0" is no memory limit 2021-09-24 20:03:37 +03:00
6148c337d9 [x2t] Add MEMORY_LIMIT environment variable 2021-09-24 20:03:37 +03:00
a4fcd4919d Fix compile 2021-09-24 16:26:19 +03:00
b7d6948081 Merge branch 'feature/NewParcerNamespaceTest' of https://github.com/ONLYOFFICE/core into feature/NewParcerNamespaceTest 2021-09-24 16:14:26 +03:00
8fda6f48ce convert to raster swapRGB fix 2021-09-24 16:02:49 +03:00
ad2023083f Fix compile 2021-09-24 15:13:33 +03:00
83bf58cb93 [xlsb] add SheetProtection, TableParts, SortState parsing (records and
fill inner objects)
2021-09-22 11:03:10 +03:00
21a9296e85 [xlsb] fix crash with virtual functions 2021-09-17 17:19:48 +03:00
d4a083c6ba [xlsb] add parser sheetFormatPr and sheetViews (records and inside
objects)
2021-09-17 13:50:06 +03:00
8a29a3e9e4 Merge branch 'release/v6.5.0' into develop 2021-09-17 11:56:03 +03:00
4ac1c8c928 some debug stuff 2021-09-15 21:45:26 +03:00
abed5269b2 [xlsb] add parsing SheetData object 2021-09-15 14:24:27 +03:00
071c0e75c8 [test] For MemoryLimit 2021-09-14 13:02:02 +03:00
c6823c617a [test] Test process memory limitation 2021-09-14 12:51:37 +03:00
5142761c85 transparent img fix 2021-09-13 19:39:33 +03:00
9faf8bedd5 [xlsb] add records for worksheet (for Cols, Hyperlinks, MergeCells,
Drawing, SheetData) and write data from records for Cols, Hyperlinks,
MergeCells, Drawing
2021-09-09 18:54:08 +03:00
f5ef1dd683 axial special case fix 2021-09-07 20:35:11 +03:00
59eb3cfea5 . 2021-09-07 13:13:04 +03:00
761ceab8d2 Merge commit '8c726e475a562e64a39d36cac32226249a3f7697' into feature/odf 2021-09-07 12:10:14 +03:00
d2c8c14f8b axial shading fix 2021-09-03 13:39:21 +03:00
fbe9ba88b9 build with pdf 2021-09-02 13:30:32 +03:00
e75b9dd848 radial fix, little mesh patch optimisation 2021-09-01 11:35:34 +03:00
34a525e74d Some stuff 2021-08-30 21:30:22 +03:00
bcc1801edb functional fix 2021-08-30 12:34:16 +03:00
709282dfd4 add pdf 2021-08-27 18:42:59 +03:00
f7c518d145 custom gradients
todo type 67
todo coord debug 23
2021-08-26 23:08:50 +03:00
7779b864c1 [xlsb] add basic complete parse workbook.bin 2021-08-26 23:00:51 +03:00
4a5c027cf4 xps fix links 2021-08-26 13:45:40 +03:00
a1caf0792d djvu fix coords 2021-08-25 18:22:59 +03:00
317d425ff2 [xlsb] add fill data 2021-08-23 14:51:25 +03:00
b4d2bff379 xps combining external and internal links 2021-08-20 16:27:11 +03:00
99742dd7b3 textclip 2021-08-20 16:09:16 +03:00
f0e7921347 fix djvu exception 2021-08-20 14:49:10 +03:00
35fb50c226 clip fix
TODO text clip, new gradient render implementation
2021-08-20 11:50:26 +03:00
0465a264aa js djvu links 2021-08-19 18:02:59 +03:00
aaa24271e9 [xlsb] add clone func in common records and EndBook record 2021-08-18 16:08:07 +03:00
c8ce35e4b9 djvu links 2021-08-18 13:14:17 +03:00
934bbe2283 [xlsb] add BrtWebOpt and BrtFileRecover records 2021-08-17 20:28:59 +03:00
cf3a73a548 [xlsb] merge with develop 2021-08-17 14:04:26 +03:00
c06c0ad088 clip stack (debug needed) 2021-08-16 15:10:18 +03:00
7b12ef172a fixed clip on test example
but doesnt work in general
2021-08-16 08:42:15 +03:00
6cb75bc53a imageOutputDev + xmlfeatures 2021-08-13 12:40:18 +03:00
4ce8c56fc9 fix coords 2021-08-11 11:57:27 +03:00
1034f66555 js xps external and internal links 2021-08-11 11:17:27 +03:00
2627e2a7dd xps get glyphs and links without repaint 2021-08-09 11:56:48 +03:00
93209acab6 actual fix + refactoring
the previous one just forsed a substitute font
2021-08-08 22:46:53 +03:00
36dc01463f fix font linux
TODO test this on windows
2021-08-06 15:58:18 +03:00
f9730a4a6d font fix 2021-08-06 00:05:54 +03:00
d4de820fa3 xps external and internal links 2021-08-05 14:30:22 +03:00
7b0bc5a059 xps get glyphs, first paint 2021-08-03 15:14:09 +03:00
18a4775984 djvu get glyphs separately from paint 2021-07-30 18:27:49 +03:00
2dc8038257 temp file 2021-07-30 14:39:14 +03:00
ef7281f362 fix djvu coords and structure pages 2021-07-28 14:01:46 +03:00
016a90610f [xlsb] add change .pro for build 2021-07-28 12:56:06 +03:00
2e3b5e6d39 fix 2021-07-27 18:42:06 +03:00
f862f962e0 djvu glyphs 2021-07-27 18:10:51 +03:00
da76475a51 [xlsb] add BrtOleSize and BrtUserBookView records 2021-07-27 14:30:33 +03:00
521053adf8 workaround for icu in xps
temporary solution
2021-07-27 13:31:17 +03:00
a234671ad2 fix 2021-07-27 12:47:46 +03:00
5214162718 general compilation and optimization glyphs 2021-07-26 18:37:49 +03:00
2845b2ea4b [xlsb] add BrtCalcProp record 2021-07-23 18:46:26 +03:00
d652e3c32f djvu structure 2021-07-23 18:18:18 +03:00
974b66aa60 [xlsb] add BrtName record and fix some records 2021-07-23 16:13:49 +03:00
6fb07e8ae3 Fix color for shapes 2021-07-23 14:34:01 +03:00
6ad4a538eb djvu compilation 2021-07-22 17:32:02 +03:00
f47f27890c one pic for a page 2021-07-22 11:55:55 +03:00
b589dafb48 Fix convertation pdf2docx 2021-07-21 20:33:38 +03:00
3872501d7f [xlsb] add EXTERNALS, SUP unions and dependency records/structs, add CommonRecords.h 2021-07-21 19:04:49 +03:00
6f33e529e5 optimization 2021-07-21 18:04:44 +03:00
9ec56fb323 fix repaint 2021-07-21 11:53:57 +03:00
cf65ec1448 Fix crash on empty strings 2021-07-20 20:33:48 +03:00
2f8e492fc6 xps structure 2021-07-20 16:38:02 +03:00
75866f2e86 creat Structure 2021-07-19 18:58:18 +03:00
9457fd7ac0 [xlsb] change under_score_case to CamelCase and add FNGROUP union and dependency record 2021-07-19 17:48:41 +03:00
692890f75d Fix some ranges 2021-07-19 13:51:19 +03:00
5b3467290f Remove old files 2021-07-19 13:18:20 +03:00
e711c7b993 Prepare for debug 2021-07-19 13:16:13 +03:00
25d3b69fde matrixex 2021-07-19 12:31:48 +03:00
db72b01e99 Realize some TODO 2021-07-18 16:13:31 +03:00
e9e9a954ac [docxrenderer] Compiled version 2021-07-18 15:49:35 +03:00
2e4486b49b fix for djvu, pdf 2021-07-16 18:34:40 +03:00
f7a1773105 text selection 2021-07-16 18:30:30 +03:00
b9782ddb7c save changes 2021-07-16 15:47:29 +03:00
79283a087a [xlsb] add BOOKVIEWS, BUNDLESHS unions and dependent records & structures 2021-07-16 10:54:36 +03:00
7abae785cb refactoring 2021-07-15 18:48:19 +03:00
132c979174 Class StringUTF32 for platform-independed Unicode strings 2021-07-15 16:31:53 +03:00
33eb1a7ab7 text and image render 2021-07-14 15:22:20 +03:00
f8b730dbc8 [xlsb] add ACABSPATH union FileSharing/Iso record, WbProp record and dependent structures 2021-07-14 13:56:11 +03:00
72edf8e89d get glyphs from c++ 2021-07-13 12:55:13 +03:00
4fd0b0e461 crush fix 2021-07-12 19:06:43 +03:00
3185ca0f36 [XlsbFormat] fix build 2021-07-09 17:36:04 +03:00
5f96f5dbb7 refactoring 2021-07-09 14:47:21 +03:00
e6edae010a [XlsbFormat] refactoring, create WorkBookStream and take a part of WorkBook.bin records 2021-07-09 13:12:13 +03:00
1b7b530906 change call GetArray from binaryReader 2021-07-09 13:01:04 +03:00
c7c25895c2 change GetArray allocate memory to outside allocate 2021-07-09 12:55:37 +03:00
da415dcbbd sync changes to test on linux 2021-07-07 16:16:23 +03:00
bf2edb3776 [xlsb] add binary stream reader 2021-07-07 15:46:46 +03:00
dd7010f2cd swap_ranges faster 2021-07-06 17:18:51 +03:00
cc7294cadb already ready xps 2021-07-06 13:03:52 +03:00
1f809a129d adding xps to DjVuFile/wasm 2021-07-06 12:57:21 +03:00
edcdd0ab8e compile djvu 2021-07-05 18:39:59 +03:00
da5a147393 Merge branch 'feature/localgraphics' into feature/drawing_file_client 2021-07-05 11:15:44 +03:00
321ca7e0ff Developing 2021-07-05 07:22:55 +03:00
04b9c9ae1d Developing... 2021-07-04 22:10:17 +03:00
69d4a44b3c Refactoring 2021-07-03 21:03:54 +03:00
237fb15d19 Errors fixing
Trying not to use CGenericList
2021-07-03 01:46:21 +03:00
124e90696c fix bugs 2021-07-02 16:23:47 +03:00
d2ff657b81 fix rgba
some letters disappear
2021-07-02 13:22:31 +03:00
8a39c5470e build wasm 2021-07-01 18:22:00 +03:00
08d55a40ff null pointer exception fix 2021-07-01 17:15:17 +03:00
1747439048 wasm JBig2 2021-06-30 18:47:19 +03:00
419d0ba99a draws smth 2021-06-30 17:47:07 +03:00
fe129f33ce xps texture in memory 2021-06-29 18:09:55 +03:00
2ed31b0b8a instant crash fix 2021-06-29 15:50:05 +03:00
7b14e28ffa fixed roots, limits and logarithms 2021-06-29 14:39:42 +03:00
4c84e5f9a3 Developing... 2021-06-29 09:35:28 +03:00
09d6d280a5 launch linux 2021-06-28 18:39:06 +03:00
a1b480b83e fix fonts in folder, xps in folder 2021-06-28 18:14:27 +03:00
3a9cf26462 compiling on linux 2021-06-28 15:19:37 +03:00
00db21d443 string classes comparability
todo Clip
2021-06-27 21:10:09 +03:00
dbc591ab44 fix path 2021-06-27 17:39:39 +03:00
ebc9990f71 Rename enum in core & repair external lib 2021-06-27 12:23:14 +03:00
c9144ea4c6 Namechages + adaptor classes 2021-06-25 18:37:59 +03:00
77ce9fbef3 xps in memory 2021-06-25 17:17:13 +03:00
2b29a23b26 [DocxFormatLib][XlsbFormat] add BaseRecords, biff12 stream parser and working with sharedStrings.bin 2021-06-25 16:32:35 +03:00
38356d622a new branch, minimal changes to lib 2021-06-24 17:50:46 +03:00
b0c898b97e ZipFolder moved to OfficeUtils 2021-06-24 12:01:56 +03:00
edb7bc2fc3 change conflict names 2021-06-23 15:47:03 +03:00
dee8a6d37a fix re-creation 2021-06-23 10:24:35 +03:00
f2da4416ae with static 2021-06-23 10:14:20 +03:00
f72475b172 CGlobalFontsMemoryStorage 2021-06-22 17:47:13 +03:00
1af0a7845d . 2021-06-22 14:27:07 +03:00
01d753cfc3 linux fix 2021-06-21 14:06:24 +03:00
64dcd1d0d7 fix memory leaks 2021-06-21 13:09:44 +03:00
5ddbe33783 Brackets and functions 2021-06-21 08:58:33 +03:00
861833b792 add text support
Common/3dParty/icu/icu/source/common/udata.cpp needs to change openCommonData implementation
2021-06-16 14:38:35 +03:00
0e666c8e17 . 2021-06-16 11:35:42 +03:00
2ea9e20bd4 Merge branch 'feature/grad' into feature/newParser 2021-06-15 13:03:47 +03:00
c525b15de2 Fraction withput Bar 2021-06-15 10:50:38 +03:00
3fb32cc029 first commit 2021-06-15 10:21:19 +03:00
3f0bb334ed adding icu 2021-06-11 17:48:52 +03:00
2573f77c96 texture from file 2021-06-11 13:10:30 +03:00
6f91f99649 texture fill 2021-06-10 17:05:56 +03:00
b41613a67f test gradient 2021-06-09 17:18:05 +03:00
806dc7f21b graphics test 2021-06-09 12:34:08 +03:00
abe4b20d46 Refactoring 2021-06-08 22:47:30 +03:00
2b79302d2b yet without fonts 2021-06-08 18:43:54 +03:00
0574712c5c with fonts from memory 2021-06-08 17:44:58 +03:00
15d5213146 fix js test 2021-06-07 18:03:09 +03:00
2c4d2af648 add c++ functions 2021-06-07 16:14:05 +03:00
010c73675e js test 2021-06-04 18:30:54 +03:00
6d958038cb c++ test 2021-06-04 15:24:30 +03:00
1990eb70d4 build graphics.js 2021-06-03 16:29:19 +03:00
fe1d0e8f4c fractions without wideslash + integrals 2021-06-03 15:55:46 +03:00
a5c97f8b57 refactoring, roots and indexes 2021-06-03 07:28:28 +03:00
ecd62f9fcc add freetytype includes 2021-06-02 18:10:17 +03:00
33b7f5ffb7 add raster.o for graphics_make.py 2021-06-02 15:13:56 +03:00
729bdfd752 add includes 2021-06-01 19:18:02 +03:00
293805d0ef add graphics_make.py 2021-06-01 15:22:54 +03:00
5255d356f3 fix build 2021-06-01 11:05:45 +03:00
03b0045ba9 add dependency 2021-06-01 10:57:53 +03:00
01ed59348f Some fixes 2021-06-01 09:24:42 +03:00
b82be5aac8 Profile as debug 2021-05-31 21:54:37 +03:00
3e7519ff4f create graphics 2021-05-31 14:45:59 +03:00
7763f666fd funtional gradient 2021-05-26 17:56:08 +03:00
f71d111641 radius fix 2021-05-25 19:20:22 +03:00
9dae8f2b66 transform to mm 2021-05-25 18:52:06 +03:00
ea4f885923 empty lines fix 2021-05-25 16:53:31 +03:00
ba5b250faf add remaining files, remove auto 2021-05-25 12:42:34 +03:00
2bd9e8adf1 scale refactor
little optimisation
2021-05-25 11:21:10 +03:00
26aa839648 Fix 2021-05-24 18:15:48 +03:00
0cf5cf0bfa Move functions for different shadings to the proper place 2021-05-24 18:02:42 +03:00
9d84c6a435 Fix problem with drawing shadings 2021-05-24 17:08:01 +03:00
7e2e5c07c1 17 refactoring and comments 2021-05-20 16:18:32 +03:00
8f430b75c6 16 brackets 2021-05-19 20:02:15 +03:00
d757c5c048 15
brackets
2021-05-19 19:37:38 +03:00
beab3a36e1 on the way to fix linear grad
test commit from new PC
2021-05-19 15:24:51 +03:00
4e761e9f1d 14
Function section of math conversation
2021-05-17 11:45:23 +03:00
62e0ca27d1 scaling fix, little refactoring 2021-05-13 16:28:07 +03:00
c74b034372 13
finish of realization <mn> and <mo> tag istead of few bugs
2021-05-11 10:50:27 +03:00
cff1d0e2ac Fix test 2021-05-10 13:51:26 +03:00
86d34b1341 functional + test change 2021-05-06 18:05:47 +03:00
77ee0a7aab 12) Add some operators for <mo> odf tag 2021-05-06 06:25:14 +03:00
0d7983c905 math drawing fix, add xmlns, fix relationship to math 2021-05-05 13:20:55 +03:00
242f4496e5 11
add <mrow> <mn> tags. Realisation "add text" for math_mi/mo/mn/
2021-05-05 11:19:22 +03:00
650268b474 odf write math xml without root node 2021-05-04 11:01:47 +03:00
b97b0bfde3 10 2021-04-30 13:40:29 +03:00
420e2b8518 Linnear fix
[agg]Fixed issue when axial gradient didn't render extended part
[Graphics]Removed console log in color function
[Test] page numeration fix
2021-04-27 15:15:31 +03:00
6369200c6e New test, changed name 2021-04-26 18:03:39 +03:00
dce5c3f1b0 9 2021-04-26 10:23:25 +03:00
72d9418fd5 radial fix 2021-04-22 15:37:50 +03:00
1da52687ae fix math context 2021-04-21 18:19:09 +03:00
de80aa2e42 8
odf_math_context
2021-04-21 04:37:02 +03:00
9f7f51fc82 Merge branch 'feature/grad' of https://github.com/ONLYOFFICE/core into feature/grad 2021-04-20 12:58:57 +03:00
dee0cf0424 New test for pdf 2021-04-20 12:51:11 +03:00
cac21d43ad Fix build on windows 2021-04-19 17:52:10 +03:00
de88587dde wrong radius fix
correct radius
wrong background
2021-04-14 15:16:30 +03:00
1b5766ac77 wrong radius fix 2021-04-14 14:41:05 +03:00
ea281eb57c fix
little radial fix
2021-04-13 14:15:39 +03:00
6676124c5b 7
math serialize
2021-04-12 17:15:02 +03:00
14e3951d7e back vcxproj and add some math files to OdfWriter 2021-04-12 13:49:42 +03:00
923cab1fc0 triangle
found patch bug if res = 0
2021-04-09 14:36:29 +03:00
882ac192a2 6 math serialize 2021-04-08 21:36:53 +03:00
db72b90d3a 5
Math structures in OdfFormatWriterLib without serialize
2021-04-08 16:39:33 +03:00
7cc4bff37c patch, axial and radial gradient
works most of the times but there are some bugs
cannot test functional and triangle
2021-04-08 16:32:22 +03:00
ca66431f14 4 2021-04-07 16:32:54 +03:00
2e549efa1b Coons patch
Added correct coord transformation and alpha channel support
Started working on other gradients
2021-04-07 13:33:32 +03:00
e30806413a 3 2021-04-06 21:38:29 +03:00
c4cad9ced9 2 2021-04-06 21:30:15 +03:00
f03e7cf2a9 magic constant 2021-04-06 16:42:17 +03:00
f6e2e91a4d Radial fix, PDF gradinet implementation
Fixed radial shading cone display
Started working on coons shading, it can convert pdfreader colors to graphics colors(rgb only) and drow similar (in math sense) shape, however size is still wrong, figuring out how to diplay shape with corect size and offset.
Todo:
 Other gradients
 Size and offset
 Alpha Channel
2021-04-03 17:40:56 +03:00
ee296ff09d math conversation 2021-04-02 07:01:27 +03:00
f7b3f95bcb Merge pull request #563 from ONLYOFFICE/develop
Develop
2021-04-01 10:18:48 +03:00
d586befe30 Merge remote-tracking branch 'origin/feature/odf' into feature/odf 2021-03-31 14:42:38 +03:00
4269b2862f gitignore + start of feature 2021-03-31 14:22:53 +03:00
ccda615144 gitignore smth 2021-03-31 11:42:02 +03:00
4d9e28ce09 UI triangle 2021-03-26 18:18:16 +03:00
7cb4914239 fix test crash
Not parametric coonspatch optimisation
2021-03-26 17:40:11 +03:00
ed498c296d Test UI and Bug fixes
Made new ui to test
Fixed bug with linear gradient
Optimised Coons patch
2021-03-26 15:57:37 +03:00
27950b108b Empty pixel fix
Finally fixed not rendering some pixels in an effective way.
Added comments. Started making an adaptor to easly convert PDF info to gradient info.
2021-03-24 14:10:45 +03:00
e1f905ffe0 fixed empty pixels
Now there are no empty pixels but it works muchs slower.
Trying different ways to optimise.
Small change in test app, now its easier to test shadings.
2021-03-22 18:25:08 +03:00
290b677dbe coons patch and tensor shading
made somewhat working realisation of coons patch gradient and tensor shading
still need debugging and optimisations
2021-03-22 14:03:00 +03:00
c1855bbf2a Working trinagle interpolation
Fixed triangle interpolation, both parametric and color.
Started developing Tensor Product gradient. (Does not work for now)
A bit of refactoring.
2021-03-20 16:47:44 +03:00
b8d663139b Fix compile on all platforms 2021-03-18 09:17:19 +03:00
b725ab4d75 added test trinagle gradient
still buggy
2021-03-17 18:31:07 +03:00
b683adb0ba code style and little fix 2021-03-15 11:20:12 +03:00
17a84755ba bug fix 2021-03-15 11:01:04 +03:00
d58bd76f8c GUI test and buf fixes
fixed a few bugs
found a few new bugs
made a GUI for testing
2021-03-14 21:36:15 +03:00
d11c2e5b1b fix bug, optimisation
finished realisation of basic gradient
optimised float point calculation
2021-03-13 13:12:57 +03:00
61f6422f4d refactor
new types of gradients
todo:
 1. More refactoring
 2. Rotate linear gradient debug
 3. Reflect, repeat adaptor
2021-03-12 15:12:49 +03:00
c3ab05b40e first version
added new gradients
still need a lot of refactoring/debuging(prob.)
pushing to backup somewhat working version
2021-03-11 18:44:36 +03:00
57cf4311a0 Refactoring 2021-03-09 16:37:30 +03:00
e1d7bf74ba test variant 2021-03-09 16:16:32 +03:00
3683 changed files with 602881 additions and 442360 deletions

12
.gitignore vendored
View File

@ -26,3 +26,15 @@ Thumbs.db
*.dat
*.txt
*.log
*.ipch
*.ipch
*.ipch
*.db-wal
*.db-shm
*.db
*.opendb

View File

@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31624.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DocFormatLib", "DocFormatLib.vcxproj", "{C5371405-338F-4B70-83BD-2A5CDF64F383}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C5371405-338F-4B70-83BD-2A5CDF64F383}.Debug|x64.ActiveCfg = Debug|x64
{C5371405-338F-4B70-83BD-2A5CDF64F383}.Debug|x64.Build.0 = Debug|x64
{C5371405-338F-4B70-83BD-2A5CDF64F383}.Debug|x86.ActiveCfg = Debug|Win32
{C5371405-338F-4B70-83BD-2A5CDF64F383}.Debug|x86.Build.0 = Debug|Win32
{C5371405-338F-4B70-83BD-2A5CDF64F383}.Release|x64.ActiveCfg = Release|x64
{C5371405-338F-4B70-83BD-2A5CDF64F383}.Release|x64.Build.0 = Release|x64
{C5371405-338F-4B70-83BD-2A5CDF64F383}.Release|x86.ActiveCfg = Release|Win32
{C5371405-338F-4B70-83BD-2A5CDF64F383}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3EDBED06-16E0-41A4-B58C-20C41B41BE20}
EndGlobalSection
EndGlobal

View File

@ -68,14 +68,14 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
<IntDir>$(Configuration)\</IntDir>
<IncludePath>D:\_Work\core\Common\3dParty\boost\build\win_32\include;$(IncludePath)</IncludePath>
<LibraryPath>D:\_Work\core\Common\3dParty\boost\build\win_32\lib;$(LibraryPath)</LibraryPath>
<IncludePath>..\..\..\Common\3dParty\boost\build\win_32\include;$(IncludePath)</IncludePath>
<LibraryPath>..\..\..\Common\3dParty\boost\build\win_32\lib;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
<IncludePath>D:\_Work\core\Common\3dParty\boost\build\win_64\include;$(IncludePath)</IncludePath>
<LibraryPath>D:\_Work\core\Common\3dParty\boost\build\win_64\lib;$(LibraryPath)</LibraryPath>
<IncludePath>..\..\..\Common\3dParty\boost\build\win_64\include;$(IncludePath)</IncludePath>
<LibraryPath>..\..\..\Common\3dParty\boost\build\win_64\lib;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
@ -88,7 +88,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\..\..\DesktopEditor\freetype-2.5.2\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;USE_LITE_READER;_USE_XMLLITE_READER_;PPTX_DEF;PPT_DEF;ENABLE_PPT_TO_PPTX_CONVERT;AVS_USE_CONVERT_PPTX_TOCUSTOM_VML;DONT_WRITE_EMBEDDED_FONTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>

View File

@ -3535,6 +3535,10 @@ int Binary_CustomsTableReader::ReadCustomContent(BYTE type, long length, void* p
{
pCustomXMLProps->m_oCustomXmlContent = m_oBufferedStream.GetString3(length);
}
else if (c_oSerCustoms::ContentA == type)
{
pCustomXMLProps->m_oCustomXmlContentA = m_oBufferedStream.GetString2A();
}
else
res = c_oSerConstants::ReadUnknown;
return res;

View File

@ -1158,7 +1158,8 @@ extern int g_nCurFormatVersion;
Custom = 0,
ItemId = 1,
Uri = 2,
Content = 3
Content = 3,
ContentA = 4
};}
namespace c_oSerApp{enum c_oSerApp
{

View File

@ -9058,11 +9058,8 @@ void BinaryCustomsTableWriter::Write(OOX::CDocument* pDocument)
}
}
int nCurPos2 = m_oBcw.WriteItemStart(c_oSerCustoms::Content);
std::wstring sXml = NSFile::CUtf8Converter::GetUnicodeStringFromUTF8((BYTE*)pCustomXml->m_sXmlA.c_str(), pCustomXml->m_sXmlA.length());
m_oBcw.m_oStream.WriteStringW3(sXml);
int nCurPos2 = m_oBcw.WriteItemStart(c_oSerCustoms::ContentA);
m_oBcw.m_oStream.WriteStringA(pCustomXml->m_sXmlA);
m_oBcw.WriteItemEnd(nCurPos2);
m_oBcw.WriteItemEnd(nCurPos);

View File

@ -578,40 +578,51 @@ namespace BinXlsxRW{
//SharedStrings
if(pCell->m_oValue.IsInit())
{
pCell->m_oType.Init();
const std::wstring& val = pCell->m_oValue->m_sText;
if(L"TRUE" == val || L"FALSE" == val)
if (pCell->m_oType.IsInit())
{
pCell->m_oType->SetValue(SimpleTypes::Spreadsheet::celltypeBool);
if(L"TRUE" == val)
if (pCell->m_oType->GetValue() == SimpleTypes::Spreadsheet::celltypeSharedString)
{
pCell->m_oValue->m_sText = L"1";
aSharedStrings.push_back(pCell->m_oValue->m_sText);
pCell->m_oValue->m_sText = std::to_wstring(aSharedStrings.size() - 1);
}
else
{
pCell->m_oValue->m_sText = L"0";
}
}
else if(L"#NULL!" == val || L"#DIV/0!" == val || L"#VALUE!" == val || L"#REF!" == val || L"#NAME?" == val || L"#NUM!" == val || L"#N/A" == val)
{
pCell->m_oType->SetValue(SimpleTypes::Spreadsheet::celltypeError);
pCell->m_oValue->m_sText = val;
}
else
{
//как в CsvReader - подозрительный код
WCHAR *pEndPtr;
wcstod(val.c_str(), &pEndPtr);
if (0 != *pEndPtr)
pCell->m_oType.Init();
const std::wstring& val = pCell->m_oValue->m_sText;
if(L"TRUE" == val || L"FALSE" == val)
{
// Не число
aSharedStrings.push_back(val);
pCell->m_oType->SetValue(SimpleTypes::Spreadsheet::celltypeSharedString);
pCell->m_oValue->m_sText = std::to_wstring((int)aSharedStrings.size() - 1);
pCell->m_oType->SetValue(SimpleTypes::Spreadsheet::celltypeBool);
if(L"TRUE" == val)
{
pCell->m_oValue->m_sText = L"1";
}
else
{
pCell->m_oValue->m_sText = L"0";
}
}
else if(L"#NULL!" == val || L"#DIV/0!" == val || L"#VALUE!" == val || L"#REF!" == val || L"#NAME?" == val || L"#NUM!" == val || L"#N/A" == val)
{
pCell->m_oType->SetValue(SimpleTypes::Spreadsheet::celltypeError);
pCell->m_oValue->m_sText = val;
}
else
{
pCell->m_oValue->m_sText = val;
//как в CsvReader - подозрительный код
WCHAR *pEndPtr;
wcstod(val.c_str(), &pEndPtr);
if (0 != *pEndPtr)
{
// Не число
aSharedStrings.push_back(val);
pCell->m_oType->SetValue(SimpleTypes::Spreadsheet::celltypeSharedString);
pCell->m_oValue->m_sText = std::to_wstring((int)aSharedStrings.size() - 1);
}
else
{
pCell->m_oValue->m_sText = val;
}
}
}
}
@ -620,7 +631,7 @@ namespace BinXlsxRW{
pWorksheet->m_oSheetData->m_arrItems.push_back(pRow);
}
}
void ChartWriter::parseCell(const std::wstring& sheet, const int& nRow, const int& nCol, const std::wstring& val, std::wstring* format = NULL)
void ChartWriter::parseCell(const std::wstring& sheet, const int& nRow, const int& nCol, const std::wstring& val, std::wstring* format = NULL, bool bAlwaysSharedString)
{
std::map<std::wstring, std::map<int, std::map<int, OOX::Spreadsheet::CCell*>*>*>::const_iterator itSheets = m_mapSheets.find(sheet);
std::map<int, std::map<int, OOX::Spreadsheet::CCell*>*>* rows = NULL;
@ -649,6 +660,12 @@ namespace BinXlsxRW{
if(cells->find(nCol) == cells->end())
{
OOX::Spreadsheet::CCell* pNewCell = parseCreateCell(nRow, nCol, val, format);
if (bAlwaysSharedString)
{
pNewCell->m_oType.Init();
pNewCell->m_oType->SetValue(SimpleTypes::Spreadsheet::ECellTypeType::celltypeSharedString);
}
cells->insert(std::make_pair(nCol, pNewCell));
}
}
@ -707,14 +724,14 @@ namespace BinXlsxRW{
{
if(nCol1 > 1)
{
parseCell(sheetFrom, nRow1, nCol1 - 1, std::wstring(cRangeName), NULL);
parseCell(sheetFrom, nRow1, nCol1 - 1, std::wstring(cRangeName), NULL, true);
}
}
else
{
if(nRow1 > 1)
{
parseCell(sheetFrom, nRow1 - 1, nCol1, std::wstring(cRangeName), NULL);
parseCell(sheetFrom, nRow1 - 1, nCol1, std::wstring(cRangeName), NULL, true);
}
}
}
@ -751,7 +768,7 @@ namespace BinXlsxRW{
nRow = nRow1 + *val->m_idx;
nCol = nCol1;
}
parseCell(sheetFrom, nRow, nCol, *val->m_v);
parseCell(sheetFrom, nRow, nCol, *val->m_v, NULL, true);
}
}
}

View File

@ -80,7 +80,7 @@ namespace BinXlsxRW {
OOX::Spreadsheet::CWorksheet* toXlsxGetSheet(std::vector<OOX::Spreadsheet::CWorksheet*>& arWorksheets, std::map<std::wstring, OOX::Spreadsheet::CWorksheet*>& mapWorksheets, const std::wstring& sName);
void toXlsxSheetdata(OOX::Spreadsheet::CWorksheet* pWorksheet, const std::map<int, std::map<int, OOX::Spreadsheet::CCell*>*>& rows, std::vector<std::wstring>& aSharedStrings);
void parseCell(const std::wstring& sheet, const int& nRow, const int& nCol, const std::wstring& val, std::wstring* format);
void parseCell(const std::wstring& sheet, const int& nRow, const int& nCol, const std::wstring& val, std::wstring* format, bool bAlwaysSharedString = false);
OOX::Spreadsheet::CCell* parseCreateCell(const int& nRow, const int& nCol, const std::wstring& val, std::wstring* format);
void parseStrRef(const OOX::Spreadsheet::CT_StrRef* pStrRef, bool bUpdateRange, const wchar_t* cRangeName);
void parseNumRef(const OOX::Spreadsheet::CT_NumRef* pNumRef, bool bUpdateRange, const wchar_t* cRangeName);

View File

@ -14,6 +14,10 @@ include(../../Common/base.pri)
#BOOST
include($$PWD/../../Common/3dParty/boost/boost.pri)
INCLUDEPATH += ../../ASCOfficeXlsFile2/source/XlsFormat
INCLUDEPATH += ../../ASCOfficeXlsFile2/source/Common
INCLUDEPATH += ../../Common/DocxFormat/Source/XlsbFormat
DEFINES += UNICODE \
_UNICODE \
SOLUTION_ASCOFFICEDOCXFILE2 \

View File

@ -70,8 +70,8 @@
<OutDir>$(Configuration)\</OutDir>
<IntDir>$(Configuration)\</IntDir>
<LinkIncremental>true</LinkIncremental>
<IncludePath>D:\_Work\core\Common\3dParty\boost\build\win_32\include;$(IncludePath)</IncludePath>
<LibraryPath>D:\_Work\core\Common\3dParty\boost\build\win_32\lib;$(LibraryPath)</LibraryPath>
<IncludePath>../../Common\3dParty\boost\build\win_32\include;$(IncludePath)</IncludePath>
<LibraryPath>../../Common\3dParty\boost\build\win_32\lib;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<OutDir>$(Platform)\$(Configuration)\</OutDir>

View File

@ -1,28 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Common">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\Common\OfficeFileFormatChecker.h">
<Filter>Common</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\Common\OfficeFileFormatChecker2.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="..\..\Common\3dParty\pole\pole.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="OdfFileTest.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="..\..\Common\DocxFormat\Source\Base\unicode_util.cpp">
<Filter>Common</Filter>
</ClCompile>
</ItemGroup>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Common">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\Common\OfficeFileFormatChecker.h">
<Filter>Common</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\Common\OfficeFileFormatChecker2.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="..\..\Common\3dParty\pole\pole.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="OdfFileTest.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="..\..\Common\DocxFormat\Source\Base\unicode_util.cpp">
<Filter>Common</Filter>
</ClCompile>
</ItemGroup>
</Project>

View File

@ -52,11 +52,11 @@ public:
std::wstring convert(std::wstring const & expr);
// $Лист1.$A$1 -> Лист1!$A$1
std::wstring convert_named_ref(std::wstring const & expr, bool withTableName = true, std::wstring separator = L" ");
std::wstring convert_named_ref(std::wstring const & expr, bool withTableName = true, std::wstring separator = L" ", bool bAbsoluteAlways = false);
std::wstring get_table_name();
//a-la convert without check formula
std::wstring convert_named_expr(std::wstring const & expr, bool withTableName = true);
std::wstring convert_named_expr(std::wstring const & expr, bool withTableName = true, bool bAbsoluteAlways = false);
//Sheet2.C3:Sheet2.C19 -> Sheet2!C3:C19
std::wstring convert_chart_distance(std::wstring const & expr);

View File

@ -36,6 +36,7 @@
#include"../../Common/DocxFormat/Source/XML/Utils.h"
#include "../src/docx/xlsxconversioncontext.h"
#include "../src/docx/xlsx_utils.h"
namespace cpdoccore {
namespace formulasconvert {
@ -52,30 +53,43 @@ namespace formulasconvert {
void split_distance_by(const std::wstring& expr, const std::wstring& by, std::vector<std::wstring>& out);
void replace_cells_range(std::wstring& expr, bool withTableName);
void replace_cells_range(std::wstring& expr, bool withTableName, bool bAbsoluteAlways = false);
bool check_formula(std::wstring& expr);
void replace_semicolons(std::wstring& expr);
void replace_tilda(std::wstring& expr);
void replace_vertical(std::wstring& expr);
void replace_space(std::wstring& expr);
void replace_apersand(std::wstring& expr);
std::wstring convert_named_ref(const std::wstring& expr, bool withTableName, std::wstring separator);
std::wstring convert_named_expr(const std::wstring& expr, bool withTableName);
std::wstring convert_named_ref(const std::wstring& expr, bool withTableName, std::wstring separator, bool bAbsoluteAlways);
std::wstring convert_named_expr(const std::wstring& expr, bool withTableName, bool bAbsoluteAlways);
static std::wstring replace_named_ref_formater(boost::wsmatch const & what);
static std::wstring replace_named_ref_formater1(boost::wsmatch const & what);
//static std::wstring replace_cell_range_formater(boost::wsmatch const & what);
void replace_named_formula(std::wstring & expr, bool w = true);
void replace_named_ref(std::wstring & expr, bool w = true);
void replace_named_ref(std::wstring & expr, bool withTable = true, bool bAbsoluteAlways = false);
bool find_first_ref(std::wstring const & expr, std::wstring & table, std::wstring & ref);
bool find_first_last_ref(std::wstring const & expr, std::wstring & table, std::wstring & ref_first,std::wstring & ref_last);
static bool convert_with_TableName;
static std::wstring table_name_;
static bool convert_with_absolute;
static bool convert_with_TableName;
static std::wstring table_name_;
//-------------------------------------------------------------------------------------------------------------
static std::wstring replace_apersand_formater(boost::wsmatch const & what)
{
if (what[1].matched)
return L"&amp;";
else if (what[2].matched)
return what[2].str();
else if (what[3].matched)
return what[3].str();
else
return L"";
}
static std::wstring replace_semicolons_formater(boost::wsmatch const & what)
{
if (what[1].matched)
@ -128,6 +142,7 @@ namespace formulasconvert {
XmlUtils::replace_all( expr, L"PROBEL", L" ");
//XmlUtils::replace_all( expr, L"APOSTROF", L"'");
//XmlUtils::replace_all( expr, L"KAVYCHKA", L"\"");
XmlUtils::replace_all(expr, L"APERSAND", L"&");
}
static void replace_tmp(std::wstring &expr)
{
@ -172,6 +187,10 @@ namespace formulasconvert {
{
result += L"PROBEL";
}break;
case '&':
{
result += L"APERSAND";
}break;
default:
{
result += expr[pos];
@ -242,6 +261,7 @@ namespace formulasconvert {
};
bool odf2oox_converter::Impl::convert_with_TableName = true;
std::wstring odf2oox_converter::Impl::table_name_ = L"";
bool odf2oox_converter::Impl::convert_with_absolute = false;
std::unordered_map<std::wstring, int> &odf2oox_converter::Impl::mapExternalLink_ = oox::xlsx_conversion_context::mapExternalLink_;
@ -347,7 +367,6 @@ namespace formulasconvert {
std::wstring ref2 = sz == 7 ? what[6].str() : what[5].str();
XmlUtils::replace_all( sheet1, L"$", L"");
//XmlUtils::replace_all( sheet2, L"$", L"");
std::wstring result;
@ -381,6 +400,20 @@ namespace formulasconvert {
}
table_name_ = sheet1;
if (convert_with_absolute)
{
size_t col = 0, row = 0;
oox::getCellAddressInv(ref1, col, row);
ref1 = oox::getCellAddress(col, row, true);
if (false == ref2.empty())
{
oox::getCellAddressInv(ref2, col, row);
ref2 = oox::getCellAddress(col, row, true);
}
}
if (convert_with_TableName)
{
@ -413,13 +446,14 @@ namespace formulasconvert {
// [Sheet2.A1:B5] -> Sheet2!A1:B5
// [Sheet2.A1] -> Sheet2!A1
// [$'Sheet2 A'.$B2] -> 'Sheet2 A'!$B2
void odf2oox_converter::Impl::replace_cells_range(std::wstring& expr, bool withTableName)
void odf2oox_converter::Impl::replace_cells_range(std::wstring& expr, bool withTableName, bool bAbsoluteAlways)
{
XmlUtils::replace_all( expr, L"#REF !", L"#REF!");
XmlUtils::replace_all( expr, L"#REF!#REF!", L"#REF!");
XmlUtils::replace_all( expr, L"$#REF!$#REF!", L"#REF!");
convert_with_TableName = withTableName;
convert_with_absolute = bAbsoluteAlways;
//boost::wregex complexRef(L"\\[(?:\'([^\']*)\'#){0,1}\\[{0,1}(?:\\$){0,1}([^\\.]+?){0,1}\\.(\\${0,1}[\\w^0-9]*\\${0,1}\\d*)(?::(\\${0,1}[^\\.]+?){0,1}\\.(\\${0,1}[\\w^0-9]*\\${0,1}\\d*)){0,1}\\]{0,1}");
boost::wregex complexRef(L"(?:(?:(?:(?:\\[\'([^\']*)\'#)|(?:\'([^\']*)\'#\\[)))|(?:\\[))\
@ -432,13 +466,14 @@ namespace formulasconvert {
&replace_named_ref_formater,
boost::match_default | boost::format_all);
}
void odf2oox_converter::Impl::replace_named_ref(std::wstring & expr, bool withTableName)
void odf2oox_converter::Impl::replace_named_ref(std::wstring & expr, bool withTableName, bool bAbsoluteAlways)
{
XmlUtils::replace_all( expr, L"#REF !", L"#REF!");
XmlUtils::replace_all( expr, L"#REF!#REF!", L"#REF!");
XmlUtils::replace_all( expr, L"$#REF!$#REF!", L"#REF!");
convert_with_TableName = withTableName;
convert_with_absolute = bAbsoluteAlways;
//boost::wregex complexRef(L"\\${0,1}([^\\.]+?){0,1}\\.(\\${0,1}[a-zA-Z]+\\${0,1}\\d+)(?::\\.(\\${0,1}[a-zA-Z]+\\${0,1}\\d+)){0,1}");
boost::wregex complexRef(L"\\[{0,1}(?:\'([^\']*)\'#){0,1}\\${0,1}([^\\.\\s]+?){0,1}\\.(\\${0,1}[\\w^0-9]*\\${0,1}\\d*)(?::\\${0,1}([^\\.\\s]+?){0,1}\\.(\\${0,1}[\\w^0-9]*\\${0,1}\\d*)){0,1}\\]{0,1}");
@ -495,6 +530,17 @@ namespace formulasconvert {
expr = res;
}
void odf2oox_converter::Impl::replace_apersand(std::wstring& expr)
{
const std::wstring res = boost::regex_replace(
expr,
//boost::wregex(L"(;)|(?:\".*?\")|(?:'.*?')"),
boost::wregex(L"(&)|(\".*?\")|('.*?')"),
&replace_apersand_formater,
boost::match_default | boost::format_all);
expr = res;
}
// заменить вертикальную черту во всех вхождениях в фигурных скобках, но не внутри строк
void odf2oox_converter::Impl::replace_vertical(std::wstring& expr)
{
@ -531,7 +577,8 @@ namespace formulasconvert {
replace_semicolons (workstr);
replace_tilda (workstr);
replace_vertical (workstr);
replace_apersand (workstr);
if (isFormula)
{
XmlUtils::replace_all( workstr, L"FDIST(", L"_xlfn.F.DIST(");
@ -634,7 +681,7 @@ namespace formulasconvert {
return result.substr(0, result.size() - 1);// минус последняя лишняя запятая
}
std::wstring odf2oox_converter::Impl::convert_named_ref(const std::wstring& expr, bool withTableName, std::wstring separator)
std::wstring odf2oox_converter::Impl::convert_named_ref(const std::wstring& expr, bool withTableName, std::wstring separator, bool bAbsoluteAlways)
{
boost::wregex complexRef(L"('(?!\\s\\'){0,1}.*?')");// поиск того что в апострофах и замена там
@ -645,7 +692,7 @@ namespace formulasconvert {
boost::wregex(L"('.*?')|(\".*?\")"),
&convert_scobci, boost::match_default | boost::format_all);
replace_named_ref(workstr, withTableName);
replace_named_ref(workstr, withTableName, bAbsoluteAlways);
if (separator != L" ")
{
@ -660,7 +707,7 @@ namespace formulasconvert {
}
return workstr;
}
std::wstring odf2oox_converter::Impl::convert_named_expr(const std::wstring& expr, bool withTableName)
std::wstring odf2oox_converter::Impl::convert_named_expr(const std::wstring& expr, bool withTableName, bool bAbsoluteAlways)
{
std::wstring workstr = expr;
@ -679,7 +726,7 @@ namespace formulasconvert {
&convert_scobci, boost::match_default | boost::format_all);
replace_cells_range(workstr, withTableName);
replace_cells_range(workstr, withTableName, bAbsoluteAlways);
replace_semicolons(workstr);
replace_vertical(workstr);
@ -726,13 +773,13 @@ namespace formulasconvert {
{
return impl_->split_distance_by(expr, by, out);
}
std::wstring odf2oox_converter::convert_named_ref(const std::wstring& expr, bool withTableName, std::wstring separator)
std::wstring odf2oox_converter::convert_named_ref(const std::wstring& expr, bool withTableName, std::wstring separator, bool bAbsoluteAlways)
{
return impl_->convert_named_ref(expr, withTableName, separator);
return impl_->convert_named_ref(expr, withTableName, separator, bAbsoluteAlways);
}
std::wstring odf2oox_converter::convert_named_expr(const std::wstring& expr, bool withTableName)
std::wstring odf2oox_converter::convert_named_expr(const std::wstring& expr, bool withTableName, bool bAbsoluteAlways)
{
return impl_->convert_named_expr(expr, withTableName);
return impl_->convert_named_expr(expr, withTableName, bAbsoluteAlways);
}
std::wstring odf2oox_converter::convert_ref(std::wstring const & expr)

View File

@ -34,6 +34,7 @@
#include <string>
#include "../CPSharedPtr.h"
#include "../xml/nodetype.h"
namespace cpdoccore {

View File

@ -32,7 +32,7 @@
#pragma once
#include "../CPOptional.h"
#include "logging.h"
#include "../logging.h"
namespace cpdoccore {
namespace common {

View File

@ -1,327 +1,330 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include <string>
#include <iostream>
#include <sstream>
#include <stack>
#include <cassert>
namespace cpdoccore
{
namespace xml
{
namespace writer
{
template <class T> struct chars { };
template <>
struct chars<char>
{
static const char eq = '=';
static const char quote = '\"';
static const char space = ' ';
static const char left_brocket = '<';
static const char right_brocket = '>';
static const char slash = '/';
static const char colon = ':';
static const char amp = '&';
static const char apos = '\'';
static const char * cdata_open() { return "<![CDATA["; }
static const char * cdata_close() { return "]]>"; }
static const char * amp_str(){ return "&amp;"; }
static const char * left_brocket_str() { return "&lt;"; }
static const char * right_brocket_str() { return "&gt;"; }
static const char * apos_str() { return "&apos;"; }
static const char * quote_str() { return "&quot;"; }
};
template <>
struct chars<wchar_t>
{
static const wchar_t eq = L'=';
static const wchar_t quote = L'\"';
static const wchar_t space = L' ';
static const wchar_t left_brocket = L'<';
static const wchar_t right_brocket = L'>';
static const wchar_t slash = L'/';
static const wchar_t colon = L':';
static const wchar_t amp = L'&';
static const wchar_t apos = L'\'';
static const wchar_t * cdata_open() { return L"<![CDATA["; }
static const wchar_t * cdata_close() { return L"]]>"; }
static const wchar_t * amp_str(){ return L"&amp;"; }
static const wchar_t * left_brocket_str() { return L"&lt;"; }
static const wchar_t * right_brocket_str() { return L"&gt;"; }
static const wchar_t * apos_str() { return L"&apos;"; }
static const wchar_t * quote_str() { return L"&quot;"; }
};
template <class V>
class element;
//
// xml::writer class
//
template <class T>
class writer
{
public:
// writer must be bound to an ostream
writer(std::basic_ostream<T>& os, bool need_header = false) : level_(0), os_(os), need_header_(need_header) {}
~writer(void) { assert(elements_.empty()); }
private:
size_t level_;
std::basic_ostream<T>& os_; // output stream
bool need_header_; // have we written an XML header yet?
std::stack<element<T>*> elements_; // stack of open element tags
// write XML header, if necessary
writer& header()
{
if (need_header_)
{
// TODO
//os_ << "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
need_header_ = false;
}
return *this;
}
// write a single character to the output stream
writer& putc(T c)
{
os_.put(c);
return *this;
}
// write a string to the output stream
writer& puts(const T* str) {
os_ << str;
return *this;
}
template <class V>
friend class element;
};
//
// xml::element class
//
template <class T>
class element
{
public:
// create a new element tag, bound to an xml::writer
element(writer<T>& wr, std::basic_string<T, std::char_traits<T>, std::allocator<T> > const & name) : wr_(wr), name_(name)
{
wr_.level_++;
check_parent();
wr_.header().putc('<').puts(name_.c_str());
tagopen_ = true;
wr_.elements_.push(this);
}
// close the current element tag
~element()
{
if (!wr_.elements_.empty() && wr_.elements_.top() == this)
{
wr_.elements_.pop();
if (tagopen_)
wr_.putc(chars<T>::slash)
.putc(chars<T>::right_brocket);
else
wr_.putc(chars<T>::left_brocket)
.putc(chars<T>::slash)
.puts(name_.c_str())
.putc(chars<T>::right_brocket);
}
wr_.level_--;
}
// write an attribute for the current element
element& attr(const T* name, const T* value)
{
assert(name != 0);
assert(value != 0);
assert(tagopen_);
wr_.putc(chars<T>::space)
.puts(name)
.putc(chars<T>::eq)
.putc(chars<T>::quote);
qputs(value);
wr_.putc(chars<T>::quote);
return *this;
}
// attr() overload for std::string type
element& attr(const T* name, const std::basic_string<T, std::char_traits<T>, std::allocator<T> >& value)
{
return attr(name, value.c_str());
}
// attr() function template for all streamable types
template <class V>
element& attr(const T* name, V value)
{
std::basic_stringstream<T, std::char_traits<T>, std::allocator<T> > ss;
ss << value;
attr(name, ss.str());
return *this;
}
// write text content for the current element
element& contents(const T* str)
{
assert(str != 0);
check_parent();
qputs(str);
return *this;
}
// contents() overload for std::string type
element& contents(const std::basic_string<T, std::char_traits<T>, std::allocator<T> >& str)
{
return contents(str.c_str());
}
// contents() function template for all streamable types
template <class V>
element& contents(V value)
{
std::basic_stringstream<T, std::char_traits<T>, std::allocator<T> > ss;
ss << value;
contents(ss.str());
return *this;
}
std::basic_ostream<T>& stream()
{
check_parent();
return wr_.os_;
}
// write CDATA section
element& cdata(const T * str)
{
assert(str != 0);
check_parent();
wr_.puts(chars<T>::cdata_open());
wr_.puts(str);
wr_.puts(chars<T>::cdata_close());
return *this;
}
// cdata() overload for std::string type
element& cdata(const std::basic_string<T, std::char_traits<T>, std::allocator<T> >& str)
{
return cdata(str.c_str());
}
private:
writer<T>& wr_; // bound XML writer
//const T* name_; // name of current element
const std::basic_string<T, std::char_traits<T>, std::allocator<T> > name_;
bool tagopen_; // is the element tag for this element still open?
// write a string quoting characters which have meaning in xml
element& qputs(const T* str)
{
for (; *str; ++str)
{
switch (*str)
{
case chars<T>::amp:
wr_.puts(chars<T>::amp_str()); break;
case chars<T>::left_brocket:
wr_.puts(chars<T>::left_brocket_str()); break;
case chars<T>::right_brocket:
wr_.puts(chars<T>::right_brocket_str()); break;
case chars<T>::apos:
wr_.puts(chars<T>::apos_str()); break;
case chars<T>::quote:
wr_.puts(chars<T>::quote_str()); break;
default:
wr_.putc(*str); break;
}
}
return *this;
}
// check to see if we have a parent tag which needs to be closed
void check_parent()
{
if (!wr_.elements_.empty() && wr_.elements_.top()->tagopen_)
{
wr_.putc(chars<T>::right_brocket);
wr_.elements_.top()->tagopen_ = false;
}
}
};
}
}
typedef xml::writer::writer<wchar_t> xml_writer;
typedef xml::writer::element<wchar_t> xml_element;
#define CP_XML_WRITER(STRM) if (bool _b_ = false) {} else for (xml_writer _xml_wr_((STRM));!_b_;_b_=true)
#define CP_XML_NODE(NAME) if (bool _b_ = false) {} else for (xml_element _xml_node_(_xml_wr_, (NAME));!_b_;_b_=true)
#define CP_XML_ATTR(NAME, VAL) _xml_node_.attr((NAME),(VAL))
#define CP_XML_ATTR2(NAME, VAL) _xml_node_.attr((std::wstring(NAME).c_str()),(VAL))
#define CP_XML_CONTENT(VAL) _xml_node_.contents((VAL))
#define CP_XML_STREAM() _xml_node_.stream()
#define CP_GET_XML_NODE() _xml_node_
#define CP_ATTR_NODE xml_element & _xml_node_
#define CP_XML_ATTR_OPT(NAME, VAL) if (VAL)CP_XML_ATTR(NAME, (*VAL))
#define CP_XML_NODE_SIMPLE() std::wstring NS_NAME = std::wstring(ns) + std::wstring(L":") + std::wstring(name); CP_XML_NODE(NS_NAME)
}
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include <string>
#include <iostream>
#include <sstream>
#include <stack>
#include <cassert>
namespace cpdoccore
{
namespace xml
{
namespace writer
{
template <class T> struct chars { };
template <>
struct chars<char>
{
static const char eq = '=';
static const char quote = '\"';
static const char space = ' ';
static const char left_brocket = '<';
static const char right_brocket = '>';
static const char slash = '/';
static const char colon = ':';
static const char amp = '&';
static const char apos = '\'';
static const char * cdata_open() { return "<![CDATA["; }
static const char * cdata_close() { return "]]>"; }
static const char * amp_str(){ return "&amp;"; }
static const char * left_brocket_str() { return "&lt;"; }
static const char * right_brocket_str() { return "&gt;"; }
static const char * apos_str() { return "&apos;"; }
static const char * quote_str() { return "&quot;"; }
};
template <>
struct chars<wchar_t>
{
static const wchar_t eq = L'=';
static const wchar_t quote = L'\"';
static const wchar_t space = L' ';
static const wchar_t left_brocket = L'<';
static const wchar_t right_brocket = L'>';
static const wchar_t slash = L'/';
static const wchar_t colon = L':';
static const wchar_t amp = L'&';
static const wchar_t apos = L'\'';
static const wchar_t * cdata_open() { return L"<![CDATA["; }
static const wchar_t * cdata_close() { return L"]]>"; }
static const wchar_t * amp_str(){ return L"&"/* L"&amp;"*/; }
static const wchar_t * left_brocket_str() { return L"&lt;"; }
static const wchar_t * right_brocket_str() { return L"&gt;"; }
static const wchar_t * apos_str() { return L"&apos;"; }
static const wchar_t * quote_str() { return L"&quot;"; }
};
template <class V>
class element;
//
// xml::writer class
//
template <class T>
class writer
{
public:
// writer must be bound to an ostream
writer(std::basic_ostream<T>& os, bool need_header = false) : level_(0), os_(os), need_header_(need_header) {}
~writer(void) { assert(elements_.empty()); }
private:
size_t level_;
std::basic_ostream<T>& os_; // output stream
bool need_header_; // have we written an XML header yet?
std::stack<element<T>*> elements_; // stack of open element tags
// write XML header, if necessary
writer& header()
{
if (need_header_)
{
// TODO
//os_ << "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
need_header_ = false;
}
return *this;
}
// write a single character to the output stream
writer& putc(T c)
{
os_.put(c);
return *this;
}
// write a string to the output stream
writer& puts(const T* str) {
os_ << str;
return *this;
}
template <class V>
friend class element;
};
//
// xml::element class
//
template <class T>
class element
{
public:
// create a new element tag, bound to an xml::writer
element(writer<T>& wr, std::basic_string<T, std::char_traits<T>, std::allocator<T> > const & name) : wr_(wr), name_(name)
{
wr_.level_++;
check_parent();
wr_.header().putc('<').puts(name_.c_str());
tagopen_ = true;
wr_.elements_.push(this);
}
// close the current element tag
~element()
{
if (!wr_.elements_.empty() && wr_.elements_.top() == this)
{
wr_.elements_.pop();
if (tagopen_)
wr_.putc(chars<T>::slash)
.putc(chars<T>::right_brocket);
else
wr_.putc(chars<T>::left_brocket)
.putc(chars<T>::slash)
.puts(name_.c_str())
.putc(chars<T>::right_brocket);
}
wr_.level_--;
}
// write an attribute for the current element
element& attr(const T* name, const T* value)
{
assert(name != 0);
assert(value != 0);
assert(tagopen_);
wr_.putc(chars<T>::space)
.puts(name)
.putc(chars<T>::eq)
.putc(chars<T>::quote);
qputs(value);
wr_.putc(chars<T>::quote);
return *this;
}
// attr() overload for std::string type
element& attr(const T* name, const std::basic_string<T, std::char_traits<T>, std::allocator<T> >& value)
{
return attr(name, value.c_str());
}
// attr() function template for all streamable types
template <class V>
element& attr(const T* name, V value)
{
std::basic_stringstream<T, std::char_traits<T>, std::allocator<T> > ss;
ss << value;
attr(name, ss.str());
return *this;
}
// write text content for the current element
element& contents(const T* str)
{
assert(str != 0);
check_parent();
qputs(str);
return *this;
}
// contents() overload for std::string type
element& contents(const std::basic_string<T, std::char_traits<T>, std::allocator<T> >& str)
{
return contents(str.c_str());
}
// contents() function template for all streamable types
template <class V>
element& contents(V value)
{
std::basic_stringstream<T, std::char_traits<T>, std::allocator<T> > ss;
ss << value;
contents(ss.str());
return *this;
}
std::basic_ostream<T>& stream()
{
check_parent();
return wr_.os_;
}
// write CDATA section
element& cdata(const T * str)
{
assert(str != 0);
check_parent();
wr_.puts(chars<T>::cdata_open());
wr_.puts(str);
wr_.puts(chars<T>::cdata_close());
return *this;
}
// cdata() overload for std::string type
element& cdata(const std::basic_string<T, std::char_traits<T>, std::allocator<T> >& str)
{
return cdata(str.c_str());
}
private:
writer<T>& wr_; // bound XML writer
//const T* name_; // name of current element
const std::basic_string<T, std::char_traits<T>, std::allocator<T> > name_;
bool tagopen_; // is the element tag for this element still open?
// write a string quoting characters which have meaning in xml
element& qputs(const T* str)
{
for (; *str; ++str)
{
switch (*str)
{
case chars<T>::amp:
wr_.puts(chars<T>::amp_str()); break;
case chars<T>::left_brocket:
wr_.puts(chars<T>::left_brocket_str()); break;
case chars<T>::right_brocket:
wr_.puts(chars<T>::right_brocket_str()); break;
case chars<T>::apos:
wr_.puts(chars<T>::apos_str()); break;
case chars<T>::quote:
wr_.puts(chars<T>::quote_str()); break;
default:
wr_.putc(*str); break;
}
}
return *this;
}
// check to see if we have a parent tag which needs to be closed
void check_parent()
{
if (!wr_.elements_.empty() && wr_.elements_.top()->tagopen_)
{
wr_.putc(chars<T>::right_brocket);
wr_.elements_.top()->tagopen_ = false;
}
}
};
}
}
typedef xml::writer::writer<wchar_t> xml_writer;
typedef xml::writer::element<wchar_t> xml_element;
#define CP_XML_WRITER(STRM) if (bool _b_ = false) {} else for (xml_writer _xml_wr_((STRM));!_b_;_b_=true)
#define CP_XML_NODE(NAME) if (bool _b_ = false) {} else for (xml_element _xml_node_(_xml_wr_, (NAME));!_b_;_b_=true)
#define CP_XML_ATTR(NAME, VAL) _xml_node_.attr((NAME),(VAL))
#define CP_XML_ATTR2(NAME, VAL) _xml_node_.attr((std::wstring(NAME).c_str()),(VAL))
#define CP_XML_CONTENT(VAL) _xml_node_.contents((VAL))
#define CP_XML_STREAM() _xml_node_.stream()
#define CP_GET_XML_NODE() _xml_node_
#define CP_ATTR_NODE xml_element & _xml_node_
#define CP_XML_ATTR_OPT(NAME, VAL) if (VAL)CP_XML_ATTR(NAME, (*VAL))
#define CP_XML_ATTR_OPT_ENCODE_STRING(NAME, STR) if (STR)CP_XML_ATTR(NAME, XmlUtils::EncodeXmlString(XmlUtils::EncodeXmlString(*STR)))
#define CP_XML_NODE_SIMPLE() std::wstring NS_NAME = std::wstring(ns) + std::wstring(L":") + std::wstring(name); CP_XML_NODE(NS_NAME)
#define CP_XML_NODE_SIMPLE_NONS() CP_XML_NODE(std::wstring(name))
}

View File

@ -33,7 +33,7 @@
#include <iostream>
#include "conversionelement.h"
#include "logging.h"
#include "../include/logging.h"
namespace cpdoccore {
namespace oox {

View File

@ -30,9 +30,7 @@
*
*/
#include <xml/attributes.h>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "docx_content_type.h"
#include "namespaces.h"

View File

@ -33,7 +33,9 @@
#include <string>
#include <iosfwd>
#include <xml/xmlelement.h>
#include <vector>
#include "../../include/xml/xmlelement.h"
namespace cpdoccore {
namespace oox {

View File

@ -32,9 +32,9 @@
#include <iostream>
#include <xml/utils.h>
#include <odf/odf_document.h>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/utils.h"
#include "../../include/odf/odf_document.h"
#include "../../include/xml/simple_xml_writer.h"
#include "docx_conversion_context.h"
@ -49,7 +49,7 @@
#include "docx_package.h"
#include "xlsx_package.h"
#include "oox_rels.h"
#include "logging.h"
#include "../../include/logging.h"
#include "../../../DesktopEditor/graphics/pro/Fonts.h"
#include "../../../Common/DocxFormat/Source/XML/Utils.h"

View File

@ -31,7 +31,7 @@
*/
#include "docx_drawing.h"
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../odf/datatypes/custom_shape_types_convert.h"
namespace cpdoccore {

View File

@ -33,9 +33,6 @@
#include <iosfwd>
#include <iostream>
#include <CPScopedPtr.h>
#include <CPOptional.h>
#include <xml/attributes.h>
#include "oox_drawing.h"
#include "mediaitems.h"

View File

@ -34,8 +34,6 @@
#include <string>
#include <vector>
#include <CPSharedPtr.h>
#include "oox_rels.h"
#include "docx_content_type.h"
#include "oox_package.h"

View File

@ -29,11 +29,12 @@
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#include <iostream>
#include "docx_conversion_context.h"
#include "logging.h"
#include <iostream>
#include <odf/odf_document.h>
#include "../../include/logging.h"
#include "../../include/odf/odf_document.h"
#include "../odf/odfcontext.h"
namespace cpdoccore {

View File

@ -46,7 +46,12 @@ struct _rect
double x;
double y;
};
enum _anchor_rel
{
anchor_none = 0,
anchor_start = 1,
anchor_end = 2
};
struct drawing_object_description
{
bool bNotes_;
@ -58,6 +63,7 @@ struct drawing_object_description
_CP_OPT(_rect) svg_rect_;
_anchor_rel anchor_rel_;
std::wstring anchor_;
double anchor_x_;
double anchor_y_;

View File

@ -32,7 +32,7 @@
#include "hyperlinks.h"
#include <xml/utils.h>
#include "../../include/xml/utils.h"
namespace cpdoccore {
namespace oox {

View File

@ -32,8 +32,8 @@
#include "measuredigits.h"
#include <boost/lexical_cast.hpp>
#include <logging.h>
#include "../../include/logging.h"
#include "../../../DesktopEditor/graphics/pro/Fonts.h"
namespace cpdoccore {

View File

@ -34,14 +34,14 @@
#include <boost/regex.hpp>
#include <xml/utils.h>
#include "../../include/xml/utils.h"
#include "../../Common/DocxFormat/Source/Base/Base.h"
#include "../../Common/DocxFormat/Source/SystemUtility/File.h"
#include "../../../Common/DocxFormat/Source/Base/Base.h"
#include "../../../Common/DocxFormat/Source/SystemUtility/File.h"
#include "../../DesktopEditor/common/Directory.h"
#include "../../DesktopEditor/raster/ImageFileFormatChecker.h"
#include "../../DesktopEditor/graphics/pro/Fonts.h"
#include "../../../DesktopEditor/common/Directory.h"
#include "../../../DesktopEditor/raster/ImageFileFormatChecker.h"
#include "../../../DesktopEditor/graphics/pro/Fonts.h"
namespace cpdoccore {
namespace oox {

View File

@ -30,10 +30,9 @@
*
*/
#include "../../include/xml/simple_xml_writer.h"
#include "oox_chart_axis.h"
#include <xml/simple_xml_writer.h>
#include "oox_title.h"
#include "oox_chart_shape.h"

View File

@ -32,8 +32,8 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include <CPSharedPtr.h>
#include "../../include/CPOptional.h"
#include "../../include/CPSharedPtr.h"
#include "oox_chart_shape.h"

View File

@ -32,7 +32,7 @@
#include <vector>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "oox_rels.h"
#include "oox_chart_context.h"

View File

@ -32,10 +32,10 @@
#pragma once
#include "oox_package.h"
#include <CPNoncopyable.h>
#include "../../include/CPNoncopyable.h"
#include <CPScopedPtr.h>
#include <CPSharedPtr.h>
#include "../../include/CPScopedPtr.h"
#include "../../include/CPSharedPtr.h"
#include "oox_title.h"
#include "oox_plot_area.h"
@ -75,9 +75,12 @@ public:
}
void set_3D_chart(bool val)
{
for (size_t i = 0 ; i < plot_area_.charts_.size(); i++)
for (size_t i = 0 ; i < plot_area_.charts_.size(); ++i)
{
plot_area_.charts_[i]->is3D_ = val;
for (size_t j = 0; j < plot_area_.charts_[i]->series_.size(); ++j)
plot_area_.charts_[i]->series_[j]->is3D_ = val;
}
}
void set_externalData(const std::wstring & href);

View File

@ -32,11 +32,9 @@
#include <boost/functional.hpp>
#include <CPOptional.h>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "oox_chart_legend.h"
#include "oox_chart_shape.h"
namespace cpdoccore {

View File

@ -32,8 +32,8 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include <CPScopedPtr.h>
#include "../../include/CPOptional.h"
#include "../../include/CPScopedPtr.h"
#include "oox_layout.h"

View File

@ -34,13 +34,13 @@
#include <boost/algorithm/string.hpp>
#include <boost/ref.hpp>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../odf/style_text_properties.h"
#include "xlsx_utils.h"
#include "oox_chart_series.h"
#include "../formulasconvert/formulasconvert.h"
#include "../../formulasconvert/formulasconvert.h"
#include "oox_chart_shape.h"
@ -58,6 +58,7 @@ oox_chart_series::oox_chart_series()
iSymbolMarkerType_ = 0;
bCacheOnly_ = false;
labelPosEnabled_ = true;
is3D_ = false;
}
void oox_chart_series::setName(const std::wstring &value)
{
@ -571,10 +572,30 @@ void oox_bar_series::oox_serialize(std::wostream & _Wostream)
CP_XML_NODE(L"c:ser")
{
oox_serialize_common(CP_XML_STREAM());
if (is3D_)
{
CP_XML_NODE(L"c:shape")
{
switch (iSolidType.get_value_or(0))
{
case 1: CP_XML_ATTR(L"val", L"cylinder"); break;
case 2: CP_XML_ATTR(L"val", L"cone"); break;
case 3: CP_XML_ATTR(L"val", L"pyramid"); break;
case 0:
default: CP_XML_ATTR(L"val", L"box"); break;
}
}
}
}
}
}
void oox_bar_series::set_properties(std::vector<odf_reader::_property> g)
{
oox_chart_series::set_properties(g);
odf_reader::GetProperty(g, L"solid-type", iSolidType);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
_CP_PTR(oox_chart_series) oox_line_series::create()

View File

@ -32,7 +32,7 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include "../odf/chart_objects.h"
#include "oox_chart_values.h"
@ -55,6 +55,8 @@ public:
virtual void oox_serialize(std::wostream & _Wostream) = 0;
bool is3D_;
bool labelPosEnabled_;
_oox_chart_values values_[5]; //cat, common, x, y, bubble,
@ -78,6 +80,8 @@ public:
odf_reader::chart::series content_;
virtual void set_properties(std::vector<odf_reader::_property> g) {}
//extLst (Chart Extensibility) §21.2.2.64
//idx (Index) §21.2.2.84
//order (Order) §21.2.2.128
@ -95,7 +99,11 @@ public:
static oox_series_ptr create();
virtual void set_properties(std::vector<odf_reader::_property> g);
virtual void oox_serialize(std::wostream & _Wostream);
_CP_OPT(int) iSolidType;
};
//cat (Category Axis Data) §21.2.2.24
//errBars (Error Bars) §21.2.2.55

View File

@ -30,8 +30,7 @@
*
*/
#include <boost/functional.hpp>
#include <CPOptional.h>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "oox_chart_shape.h"
#include "oox_drawing.h"

View File

@ -32,8 +32,8 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include <CPScopedPtr.h>
#include "../../include/CPOptional.h"
#include "../../include/CPScopedPtr.h"
#include "../odf/chart_objects.h"
#include "oox_drawing_fills.h"

View File

@ -32,7 +32,7 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include "../../include/CPOptional.h"
namespace cpdoccore {

View File

@ -33,9 +33,9 @@
#include "oox_conversion_context.h"
#include <iostream>
#include <xml/utils.h>
#include <odf/odf_document.h>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/utils.h"
#include "../../include/odf/odf_document.h"
#include "../../include/xml/simple_xml_writer.h"
#include "../odf/odfcontext.h"
#include "../odf/style_text_properties.h"
@ -44,7 +44,7 @@
namespace cpdoccore {
namespace oox
{
void forms_context::start_element (int type)
void forms_context::start_element (_form_type type)
{
current_state_.clear();

View File

@ -60,15 +60,32 @@ namespace odf_reader
typedef boost::shared_ptr<office_element> office_element_ptr;
};
namespace oox {
namespace oox
{
enum _form_type
{
formNone = 0,
formButton = 1,
formLabel = 2,
formCheckbox = 3,
formCombobox = 4,
formListbox = 5,
formDateTime = 6,
formSpin = 7,
formScroll = 8,
formFrame = 9,
formImage = 10,
formText = 11
};
class forms_context
{
public:
struct _state
{
std::wstring id;
std::wstring name;
int type = 0; //enum?
_form_type type;
std::wstring label;
std::wstring uuid;
std::wstring value;
@ -78,7 +95,7 @@ public:
void clear()
{
type = 0;
type = formNone;
id.clear();
name.clear();
label.clear();
@ -90,7 +107,7 @@ public:
};
forms_context(){}
void start_element (int type);
void start_element (_form_type type);
void set_id (const std::wstring& id);
void set_name (const std::wstring& name);
void set_label (const std::wstring& label);

View File

@ -29,10 +29,7 @@
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#include <CPOptional.h>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "oox_data_labels.h"
#include "oox_chart_shape.h"

View File

@ -36,9 +36,9 @@
#include <vector>
#include <boost/noncopyable.hpp>
#include <CPOptional.h>
#include <CPScopedPtr.h>
#include <xml/attributes.h>
#include "../../include/CPOptional.h"
#include "../../include/CPScopedPtr.h"
#include "../../include/xml/attributes.h"
namespace cpdoccore {

View File

@ -33,8 +33,7 @@
#include <boost/algorithm/string.hpp>
#include "oox_drawing.h"
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../odf/datatypes/custom_shape_types_convert.h"
using namespace cpdoccore;

View File

@ -33,9 +33,6 @@
#include <iosfwd>
#include <iostream>
#include <CPScopedPtr.h>
#include <CPOptional.h>
#include <xml/attributes.h>
#include "mediaitems.h"
#include "oox_drawing_fills.h"

View File

@ -32,7 +32,7 @@
#include "oox_drawing_fills.h"
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
namespace cpdoccore {
namespace oox {

View File

@ -32,12 +32,9 @@
#pragma once
#include <string>
#include <CPOptional.h>
#include <CPSharedPtr.h>
#include "../odf/datatypes/lengthorpercent.h"
namespace cpdoccore {
namespace oox {

View File

@ -32,8 +32,8 @@
#include "oox_layout.h"
#include <boost/functional.hpp>
#include <CPOptional.h>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../odf/style_text_properties.h"
namespace cpdoccore {

View File

@ -32,8 +32,6 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include <CPScopedPtr.h>
#include "../odf/chart_objects.h"

View File

@ -34,14 +34,14 @@
#include <boost/ref.hpp>
#include <utf8cpp/utf8.h>
#include "../../include/utf8cpp/utf8.h"
#include "mediaitems.h"
#include "../../DesktopEditor/common/File.h"
#include "../../DesktopEditor/common/SystemUtils.h"
#include "../../DesktopEditor/graphics/pro/Image.h"
#include "../../DesktopEditor/raster/ImageFileFormatChecker.h"
#include "../../Common/DocxFormat/Source/Base/Base.h"
#include "../../../DesktopEditor/common/File.h"
#include "../../../DesktopEditor/common/SystemUtils.h"
#include "../../../DesktopEditor/graphics/pro/Image.h"
#include "../../../DesktopEditor/raster/ImageFileFormatChecker.h"
#include "../../../Common/DocxFormat/Source/Base/Base.h"
namespace cpdoccore {
namespace oox {

View File

@ -29,12 +29,13 @@
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#ifndef _CPDOCCORE_OOX_PACKAGE_H_75f74d15
#define _CPDOCCORE_OOX_PACKAGE_H_75f74d15
#pragma once
#include <vector>
#include <CPSharedPtr.h>
#include <CPNoncopyable.h>
#include "../../include/CPSharedPtr.h"
#include "../../include/CPNoncopyable.h"
#include "../../include/CPOptional.h"
#include "docx_content_type.h"
#include "oox_rels.h"
@ -269,4 +270,3 @@ private:
} // namespace oox
} // namespace cpdoccore
#endif

View File

@ -33,14 +33,15 @@
#include "oox_plot_area.h"
#include <random>
#include <CPOptional.h>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include <boost/algorithm/string.hpp>
#include "../odf/style_text_properties.h"
#include "oox_chart_shape.h"
#include "../../ASCOfficeOdfFile/src/odf/datatypes/chartclass.h"
#include "../odf/datatypes/chartclass.h"
namespace cpdoccore {
namespace oox {

View File

@ -32,8 +32,6 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include <CPScopedPtr.h>
#include "oox_types_chart.h"
#include "oox_chart_axis.h"

View File

@ -31,9 +31,10 @@
*/
#include "oox_rels.h"
#include <xml/attributes.h>
#include "namespaces.h"
#include <xml/simple_xml_writer.h>
#include "../../include/xml/attributes.h"
#include "../../include/xml/simple_xml_writer.h"
namespace cpdoccore {
namespace oox {

View File

@ -34,8 +34,8 @@
#include <string>
#include <vector>
#include <iosfwd>
#include <xml/xmlelement.h>
#include <CPSharedPtr.h>
#include "../../include/xml/xmlelement.h"
#include "../../include/CPSharedPtr.h"
namespace cpdoccore {
namespace oox {

View File

@ -32,8 +32,8 @@
#include "oox_title.h"
#include <boost/functional.hpp>
#include <CPOptional.h>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../odf/odfcontext.h"
#include "../odf/style_text_properties.h"

View File

@ -32,8 +32,8 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include <CPScopedPtr.h>
#include "../../include/CPOptional.h"
#include "../../include/CPScopedPtr.h"
#include "oox_layout.h"

View File

@ -30,7 +30,7 @@
*
*/
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "oox_types_chart.h"
namespace cpdoccore {
@ -59,6 +59,7 @@ void oox_chart::set_name(const std::wstring& val)
void oox_chart::set_content_series(odf_reader::chart::series & content)
{
series_.back()->content_= content;
series_.back()->set_properties(content.properties_);
}
void oox_chart::set_values_series(int ind, std::vector<std::wstring> & val)
@ -146,6 +147,7 @@ void oox_bar_chart::set_properties(std::vector<odf_reader::_property> g)
odf_reader::GetProperty(g, L"gap-width", iGapWidth);
odf_reader::GetProperty(g, L"overlap", iOverlap);
odf_reader::GetProperty(g, L"solid-type", iSolidType);
}
void oox_bar_chart::set_additional_properties(std::vector<odf_reader::_property> g)
@ -199,7 +201,14 @@ void oox_bar_chart::oox_serialize(std::wostream & _Wostream)
{
CP_XML_NODE(L"c:shape")
{
CP_XML_ATTR(L"val", L"box");
switch (iSolidType.get_value_or(0))
{
case 1: CP_XML_ATTR(L"val", L"cylinder"); break;
case 2: CP_XML_ATTR(L"val", L"cone"); break;
case 3: CP_XML_ATTR(L"val", L"pyramid"); break;
case 0:
default: CP_XML_ATTR(L"val", L"box"); break;
}
}
}
}

View File

@ -140,7 +140,7 @@ class oox_bar_chart: public oox_chart
_CP_OPT(bool) bConnectBars;
_CP_OPT(int) iGapWidth;
_CP_OPT(int) iOverlap;
_CP_OPT(int) iSolidType;
//gapWidth (Gap Width) §21.2.2.75
//overlap (Overlap) §21.2.2.131

View File

@ -31,7 +31,7 @@
*/
#pragma once
#include <CPSharedPtr.h>
#include "../../include/CPSharedPtr.h"
#include <string>
namespace cpdoccore {

View File

@ -32,7 +32,7 @@
#include "pptx_comments.h"
#include <vector>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "oox_rels.h"
namespace cpdoccore {

View File

@ -32,9 +32,9 @@
#pragma once
#include <iosfwd>
#include <CPScopedPtr.h>
#include <CPSharedPtr.h>
#include <xml/attributes.h>
#include "../../include/CPScopedPtr.h"
#include "../../include/CPSharedPtr.h"
#include "../../include/xml/attributes.h"
#include "mediaitems.h"
namespace cpdoccore {

View File

@ -34,8 +34,6 @@
#include <string>
#include <boost/noncopyable.hpp>
#include <CPScopedPtr.h>
#include <CPSharedPtr.h>
#include "pptx_comments.h"

View File

@ -34,8 +34,8 @@
#include "pptx_package.h"
#include <odf/odf_document.h>
#include <xml/simple_xml_writer.h>
#include "../../include/odf/odf_document.h"
#include "../../include/xml/simple_xml_writer.h"
#include <iostream>

View File

@ -31,7 +31,7 @@
*/
#pragma once
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
namespace cpdoccore {

View File

@ -31,7 +31,8 @@
*/
#include "pptx_drawing.h"
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../odf/datatypes/custom_shape_types_convert.h"
namespace cpdoccore {

View File

@ -33,9 +33,6 @@
#include <iosfwd>
#include <iostream>
#include <CPScopedPtr.h>
#include <CPOptional.h>
#include <xml/attributes.h>
#include "oox_drawing.h"
#include "mediaitems.h"

View File

@ -31,7 +31,7 @@
*/
#include <vector>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "oox_rels.h"

View File

@ -32,9 +32,9 @@
#pragma once
#include <iosfwd>
#include <CPScopedPtr.h>
#include <CPSharedPtr.h>
#include <xml/attributes.h>
#include "../../include/CPScopedPtr.h"
#include "../../include/CPSharedPtr.h"
#include "../../include/xml/attributes.h"
#include "mediaitems.h"
namespace cpdoccore {

View File

@ -32,7 +32,7 @@
#include <boost/make_shared.hpp>
#include <boost/lexical_cast.hpp>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "pptx_output_xml.h"

View File

@ -32,9 +32,9 @@
#pragma once
#include <iosfwd>
#include <CPSharedPtr.h>
#include <CPScopedPtr.h>
#include <CPNoncopyable.h>
#include "../../include/CPSharedPtr.h"
#include "../../include/CPScopedPtr.h"
#include "../../include/CPNoncopyable.h"
#include "oox_rels.h"

View File

@ -34,7 +34,7 @@
#include "pptx_package.h"
#include "pptx_output_xml.h"
#include <utf8cpp/utf8.h>
#include "../../include/utf8cpp/utf8.h"
namespace cpdoccore {
namespace oox {

View File

@ -31,8 +31,9 @@
*/
#pragma once
#include "../../include/CPNoncopyable.h"
#include "oox_package.h"
#include <CPNoncopyable.h>
#include "pptx_comments.h"
namespace NSFonts

View File

@ -31,9 +31,10 @@
*/
#include <iostream>
#include <xml/simple_xml_writer.h>
#include <xml/utils.h>
#include <odf/odf_document.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../../include/xml/utils.h"
#include "../../include/odf/odf_document.h"
#include "pptx_drawing.h"
#include "pptx_drawings.h"

View File

@ -32,15 +32,15 @@
#include <iostream>
#include <xml/simple_xml_writer.h>
#include <odf/odf_document.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../../include/odf/odf_document.h"
#include "../odf/odfcontext.h"
#include "../odf/draw_common.h"
#include "../odf/calcs_styles.h"
#include "../odf/datatypes/borderstyle.h"
#include "logging.h"
#include "../../include/logging.h"
#include "pptx_conversion_context.h"

View File

@ -37,9 +37,9 @@
#include <iostream>
#include <list>
#include <xml/simple_xml_writer.h>
#include <odf/odf_document.h>
#include <xml/utils.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../../include/odf/odf_document.h"
#include "../../include/xml/utils.h"
#include "../odf/odfcontext.h"
#include "../odf/calcs_styles.h"

View File

@ -33,10 +33,7 @@
#include <string>
#include <boost/noncopyable.hpp>
#include <CPScopedPtr.h>
#include <CPOptional.h>
#include <xml/attributes.h>
#include "../../include/CPScopedPtr.h"
#include "oox_conversion_context.h"
#include "../odf/datatypes/stylefamily.h"

View File

@ -40,7 +40,7 @@
#include <ostream>
#include <boost/functional.hpp>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
namespace cpdoccore {
namespace oox {

View File

@ -32,8 +32,8 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include <string>
#include "../../include/CPOptional.h"
namespace cpdoccore {

View File

@ -32,8 +32,7 @@
#include "xlsx_border.h"
#include <boost/functional.hpp>
#include <CPOptional.h>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../odf/style_text_properties.h"
namespace cpdoccore {

View File

@ -32,7 +32,6 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include <string>
#include <vector>

View File

@ -34,7 +34,7 @@
#include <boost/functional.hpp>
#include <boost/unordered_set.hpp>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "xlsx_border.h"
#include "../odf/datatypes/length.h"

View File

@ -32,8 +32,8 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include <CPScopedPtr.h>
#include "../../include/CPOptional.h"
#include "../../include/CPScopedPtr.h"
namespace cpdoccore {
namespace odf_reader {

View File

@ -32,7 +32,7 @@
#include "xlsx_cell_style.h"
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
namespace cpdoccore {
namespace oox {

View File

@ -29,14 +29,13 @@
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#ifndef _CPDOCCORE_XLSX_CELL_STYLE_H_
#define _CPDOCCORE_XLSX_CELL_STYLE_H_
#pragma once
#include <iosfwd>
#include <string>
#include <CPSharedPtr.h>
#include <CPOptional.h>
#include "../../include/CPSharedPtr.h"
#include "../../include/CPOptional.h"
namespace cpdoccore {
namespace oox {
@ -54,4 +53,3 @@ namespace oox {
}
}
#endif

View File

@ -31,7 +31,7 @@
*/
#include <vector>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "xlsx_cell_styles.h"
#include "xlsx_cell_style.h"

View File

@ -31,7 +31,7 @@
*/
#pragma once
#include <CPScopedPtr.h>
#include "../../include/CPScopedPtr.h"
namespace cpdoccore {
namespace oox {

View File

@ -32,10 +32,11 @@
#pragma once
#include <iosfwd>
#include <CPOptional.h>
#include <string>
#include <vector>
#include "../../include/CPOptional.h"
namespace cpdoccore {
namespace oox {

View File

@ -34,7 +34,7 @@
#include "oox_rels.h"
#include <vector>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
namespace cpdoccore {
namespace oox {

View File

@ -32,9 +32,8 @@
#pragma once
#include <iosfwd>
#include <CPScopedPtr.h>
#include <CPSharedPtr.h>
#include <xml/attributes.h>
#include "../../include/CPScopedPtr.h"
#include "../../include/xml/attributes.h"
#include "mediaitems.h"
namespace cpdoccore {

View File

@ -33,8 +33,7 @@
#include <string>
#include <boost/noncopyable.hpp>
#include <CPScopedPtr.h>
#include <CPSharedPtr.h>
#include "../../include/CPScopedPtr.h"
#include "xlsx_comments.h"

View File

@ -29,11 +29,10 @@
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#ifndef CPDOCCORE_COMPLEX_NUMBER_FORMAT
#define CPDOCCORE_COMPLEX_NUMBER_FORMAT
#pragma once
#include <string>
#include <CPScopedPtr.h>
#include "../../include/CPScopedPtr.h"
namespace cpdoccore {
namespace oox {
@ -57,6 +56,4 @@ private:
};
}
}
#endif
}

View File

@ -35,10 +35,10 @@
#include <vector>
#include <boost/lexical_cast.hpp>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../../../Common/DocxFormat/Source/XML/Utils.h"
#include "../formulasconvert/formulasconvert.h"
#include "../../formulasconvert/formulasconvert.h"
namespace cpdoccore {
namespace oox {

View File

@ -31,8 +31,8 @@
*/
#pragma once
#include <CPOptional.h>
#include <CPScopedPtr.h>
#include "../../include/CPOptional.h"
#include "../../include/CPScopedPtr.h"
#include <string>
namespace cpdoccore {

View File

@ -36,12 +36,13 @@
#include <vector>
#include <map>
#include <xml/simple_xml_writer.h>
#include <CPSharedPtr.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../../include/CPSharedPtr.h"
#include <boost/regex.hpp>
#include <boost/algorithm/string/regex.hpp>
#include "../formulasconvert/formulasconvert.h"
#include "../../formulasconvert/formulasconvert.h"
#include "../../../Common/DocxFormat/Source/XML/Utils.h"
namespace cpdoccore {

View File

@ -31,8 +31,7 @@
*/
#pragma once
#include <CPOptional.h>
#include <CPScopedPtr.h>
#include "../../include/CPScopedPtr.h"
#include <string>
namespace cpdoccore {

View File

@ -33,9 +33,9 @@
#include "xlsx_defined_names.h"
#include <vector>
#include <xml/simple_xml_writer.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../formulasconvert/formulasconvert.h"
#include "../../formulasconvert/formulasconvert.h"
namespace cpdoccore {
namespace oox {

View File

@ -29,13 +29,12 @@
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#ifndef _CPDOCCORE_XLSX_DEFINED_NAMES_H_
#define _CPDOCCORE_XLSX_DEFINED_NAMES_H_
#pragma once
#include <iosfwd>
#include <string>
#include <CPOptional.h>
#include <CPScopedPtr.h>
#include "../../include/CPScopedPtr.h"
namespace cpdoccore {
namespace oox {
@ -59,6 +58,3 @@ namespace oox {
}
}
#endif

View File

@ -31,8 +31,8 @@
*/
#include "xlsx_drawing.h"
#include <xml/simple_xml_writer.h>
#include <xml/utils.h>
#include "../../include/xml/simple_xml_writer.h"
#include "../../include/xml/utils.h"
#include "../odf/datatypes/custom_shape_types_convert.h"
#include "../../formulasconvert/formulasconvert.h"
@ -538,7 +538,7 @@ void _xlsx_drawing::serialize_vml(std::wostream & strm)
case OBJ_SpinControl: CP_XML_ATTR(L"ObjectType", L"Spin"); break;
case OBJ_Scrollbar: CP_XML_ATTR(L"ObjectType", L"Scroll"); break;
case OBJ_List: CP_XML_ATTR(L"ObjectType", L"List"); break;
case OBJ_DropdownList: CP_XML_ATTR(L"ObjectType", L"List"); break;
case OBJ_DropdownList: CP_XML_ATTR(L"ObjectType", L"Drop"); break;
case OBJ_Note: CP_XML_ATTR(L"ObjectType", L"Note"); break;
}
@ -576,7 +576,7 @@ void _xlsx_drawing::serialize_vml(std::wostream & strm)
if (sVal)
{
formulasconvert::odf2oox_converter converter;
std::wstring fmla = converter.convert_named_ref(*sVal);
std::wstring fmla = converter.convert_named_ref(*sVal, true, L" ", true);
CP_XML_NODE(L"x:FmlaLink")
{
CP_XML_STREAM() << fmla;
@ -586,7 +586,7 @@ void _xlsx_drawing::serialize_vml(std::wostream & strm)
if (sVal)
{
formulasconvert::odf2oox_converter converter;
std::wstring fmla = converter.convert_named_ref(*sVal);
std::wstring fmla = converter.convert_named_ref(*sVal, true, L" ", true);
CP_XML_NODE(L"x:FmlaRange")
{
CP_XML_STREAM() << fmla;

View File

@ -33,9 +33,6 @@
#include <iosfwd>
#include <iostream>
#include <CPScopedPtr.h>
#include <CPOptional.h>
#include <xml/attributes.h>
#include "oox_drawing.h"
#include "xlsx_table_position.h"

Some files were not shown because too many files have changed in this diff Show More