Commit Graph

985 Commits

Author SHA1 Message Date
03276df2ae Remove unused xmlns:fn namespace aliases
Change-Id: I634fdfd2b206fbb91e8032fe2fbf4ec66c8623a2
2014-09-02 07:47:44 +02:00
5b7d7f35e0 Clean up duplicated xmlns:c definitions
Change-Id: Ibd8fdfeeac89da8c8c259bae3de22f87a0d59b2a
2014-09-02 07:47:44 +02:00
314241ed0e Clean up 6 times duplicated xmlns:a definition
Change-Id: I935856965bcb1f710059801621124685aeb65a03
2014-09-01 08:04:22 +02:00
024d135a5b Unused arguments / variables
Change-Id: I5903b2f72314f8518beb1821c218fca6a3550d7f
2014-08-31 13:23:46 +02:00
6561358611 Remove not needed xmlns:xsd attributes
Change-Id: I3ed897a7d5a3182d9ae9f64269e3eb6851eeab73
2014-08-31 13:21:35 +02:00
24a55a1250 writerfilter: fix namespace of CT_PictureLayer's r:embed
I just wanted to get rid of the duplicated xmlns:r attributes, but seems
model.xml had some inconsistency as well, that's how this refactoring
fixes a bug as a side effect.

Change-Id: I95d753253f03a001c68dbbac7c86740040a180fa
2014-08-31 11:26:22 +02:00
4e0d84c2c1 writerfilter: fix namespace of CT_SaveThroughXslt's r:id
We only tried to read "id", not "r:id".

Change-Id: I35580fda05841d8c8a11b961016ec4be5059c5f8
2014-08-30 13:30:04 +02:00
0da23c0922 Remove unused prefix attribute of namespace elements
Change-Id: I6fd33f9050eb3f7394315bbd0c617513767adce6
2014-08-29 23:29:11 +02:00
9f05a87092 Remove unused url attribute
And also make sure that the model is re-checked when the schema changes.

Change-Id: I348d11aa770255329cd47535dff4b15a95e4bd8e
2014-08-29 18:32:48 +02:00
cf5a6919e1 coverity#705090 Unchecked dynamic_cast
Change-Id: I4cd2dcd457c8f41c1c7fd82e2c99d056cf2a8c37
2014-08-29 16:08:02 +02:00
5170d822aa writerfilter: remove unused application attribute
Change-Id: Ic4e16f8303611197e7d2a149e85c7b73dc30bcc8
2014-08-25 09:40:31 +02:00
7163f563ce Indentation fixes
This makes model.xml about 20kb smaller. Most inconsistencies were
introduced when unused tags were removed, like <optional>.

Change-Id: I5e77860cf09bad4cad3e9dd7383371a10386c260
2014-08-24 13:43:34 +02:00
552f139d2a writerfilter: remove mce token generator
Commit af7d4a5ebf3e6a09cd2079f241dee16aa22e0276 (n#820503: initial MCE
support in writerfilter ooxml tokenizer, 2013-07-03) added these, but in
fact only the namespace-alias part was necessary. Now that oox provides
the list of namespaces to be registered, it can be removed completely.

Change-Id: If8f1b0c07602a0170c63b53d806a5b466d485747
2014-08-23 11:46:13 +02:00
8e9c340362 writerfilter: unused namespacealias attribute
Change-Id: I12f59c6d06323d3d9ebcd55ee5fe7e43597a11b4
2014-08-22 14:13:30 +02:00
42faa9f051 writerfilter: remove unused qname attribute
Change-Id: I412390fba4caa4579dec0dab68f4a1c276284118
2014-08-21 15:28:20 +02:00
67c98f6f64 Simplify ((A && B) || !A) to (!A || B)
Change-Id: Iae4f45f1e64effa1369e9aba13b6b972a5ba76a0
2014-08-21 14:30:39 +02:00
0eabc890cc Avoid invalid downcasts
Change-Id: I8550da2c6afb4e7de394879ef75312a0c9c2df25
2014-08-21 14:27:38 +02:00
c52e417505 Avoid invalid downcasts
Change-Id: I1666321916d08b326bb0c1c1f21273d568523691
2014-08-21 14:13:27 +02:00
8b6ce55b90 writerfilter: remove now unused namespace-alias elements
Change-Id: If58b3a9f5b1d79d164bb1c2a7c18aa4f99f00ca8
2014-08-19 23:26:09 +02:00
a5396d64a4 writerfilter: stop reading namespace-alias elements
The same info is already available from oox.

Change-Id: I0725799e1f3ffebf6140ad38a0ce376e5417265d
2014-08-19 23:26:09 +02:00
1c06dc14a1 writerfilter: stop reading namespace-alias elements in factoryimpl
Change-Id: I52c2298c9583617481069040e118520cf8935c6d
2014-08-19 18:19:03 +02:00
23b49f2390 writerfilter: fail on mistyped namespace URL's
And also fix one typo detected by this new check.

Change-Id: Iaa7a4bb0b6dc3f81e5dd0b352584029cfed4ffbb
2014-08-19 08:17:34 +02:00
a3a5d4fcdc writerfilter: sort namespaces in OOXMLStreamImpl::getFastParser()
The motivation is that <namespace-alias> elements in model.xml are
redundant, as the same info is available from oox as well. But without
sorting, it's impossible to generate the same output, as the (not
interesting) order isn't the same there.

Change-Id: I634c62e43d1b54100bfa623c6f43dddd34279fb1
2014-08-18 22:17:37 +02:00
221d874ec8 Fix -Werror=sign-compare
Change-Id: I5c5f31a4970c1c5f2930dd3ae99a46c568101ac4
2014-08-18 16:15:21 +02:00
33959c7177 fix dbglevel=2 build
Change-Id: Ie570a84bfca530c6763c6aa7b0ca12ae1a16f0f3
2014-08-17 15:53:27 +02:00
bb19f58ed0 writerfilter: remove now not necessary namespaceids.py
Change-Id: Ic15362b9a7687c7cba2e3b1554f2eac593afab3b
2014-08-17 15:53:27 +02:00
8b0e5be91b writerfilter: OOXMLnamespaceids.hxx -> namespaces.hxx
Change-Id: Icfb104b0f77d5303751a30f9188319bca7a14e6b
2014-08-17 15:53:27 +02:00
54ac480baf Sync oox -> writerfilter alias for remaining namespaces
Change-Id: I47bb934102dd18695b3e4647c0f6216ee98f059c
2014-08-17 15:53:27 +02:00
99b9e06b7c Sync oox -> writerfilter namespace includes
Change-Id: I940efc1197e0694c93d25e5c4542eeef12cbb10f
2014-08-17 13:06:29 +02:00
7791b3f600 writerfilter: sort namespaces in generated header
Change-Id: I1c08fbe841161323325c6ffd153f09daf30c095b
2014-08-17 13:06:28 +02:00
e33f6f499f Sync oox -> writerfilter alias for generic VML
See 656ab07b2924dd2703f31f460c8586c375c7878a (Sync oox -> writerfilter
alias for wordprocessingml, 2014-08-10).

Change-Id: I5179961b683473a502693923422171bb274fc845
2014-08-16 18:56:35 +02:00
28bf20625c Sync oox -> writerfilter namespace prefixes
Change-Id: Ifbcb7716640cd05d4b98eef22f9ddf49f3bd79aa
2014-08-16 18:56:35 +02:00
2035b719c3 Remove unused datatypeLibrary attribute
Change-Id: Ib3e896d8e602d09b36e526ebf923bf0374dd17a4
2014-08-15 16:59:37 +02:00
84abae8c52 Sync oox -> writerfilter alias for relationships
See 656ab07b2924dd2703f31f460c8586c375c7878a (Sync oox -> writerfilter
alias for wordprocessingml, 2014-08-10).

Change-Id: Iaa28855fbef836768a21d5b3153a1d5c2cd0d685
2014-08-13 20:47:47 +02:00
487c48b8b5 Remove unused action element
There are other action elements directly under <resource>, those are
used, but not this one.

Change-Id: Iba0f844230fa91fc33ff3b1f2a40a651819fa2cb
2014-08-13 20:04:31 +02:00
3c491f05d5 Remove unused default attribute
Change-Id: I66e78b7815173ec9181b9449252da740c10f09ec
2014-08-13 14:45:59 +02:00
bea342be30 Remove unused default element
Change-Id: I703f54ef8640f9be70f16441c330e53fce3f7489
2014-08-12 16:54:34 +02:00
f91b81c24e Add reference to 'DomainMapper' to some DOCX import classes
The reason for adding 'DomainMapper' is to be able to check
during import in these classes whether or not the import is
in a 'styles.xml' file or not.

Also added blank handling for new XML nodes.

Reviewed on:
	https://gerrit.libreoffice.org/10870

Change-Id: Ib2acde736d96f30eda40ee327991dc6ae0ed7f25
2014-08-12 08:34:47 +02:00
aacdc61b5d remove redundant anyName element
Change-Id: Ib05a4dd232850bb00b66079df53e0679548324e1
2014-08-11 18:25:25 +02:00
766af75b6e no need to repeat the name
Change-Id: I209e7b8018f22a8e6f21b268aeebf38972091c27
2014-08-11 18:25:25 +02:00
cdf1300140 writerfilter: remove ignored type elements
Change-Id: I67734caea31e60f2c0e27d7b5477464d95c0d7f7
2014-08-11 17:16:17 +02:00
ba774649fb Another tblLook having the wrong complex type
Change-Id: Ia9b22a3a042cb22499e8b1fdfbc57b27a3f50911
2014-08-11 09:21:22 +02:00
656ab07b29 Sync oox -> writerfilter alias for wordprocessingml
The motivation is that once all the namespace aliases in
writerfilter/source/ooxml/model.xml match the ones in
oox/source/token/namespaces.txt, then the writerfilter copies could be
dropped.

Change-Id: I1f9abb8bb457189997f28c99b0f6b00660252c14
2014-08-10 21:04:49 +02:00
e617c5173b Remove unused empty elements
Change-Id: I17815878be292bb23602232456648f9571b8de06
2014-08-10 21:04:49 +02:00
19ccb678d2 Remove unused group elements
Change-Id: I6ea77279a002179f2dd30bc835bb810c91ee51c4
2014-08-10 11:17:49 +02:00
676efaa5a1 Remove unused list elements
Change them to choice, what was probably really meant here: allow one of
the values, not a whitespace-separated list of one or more values.

Also, clean up nested choices.

Change-Id: I87bc30b710569e317da05933502b36d8d97e4155
2014-08-10 11:17:49 +02:00
b17f4ecea1 Remove unused name attributes
For <value> elements inside <resource> ones, the name attribute and the
text of the element was the same, but our scripts only parsed the text.
So remove the redundant code that's ignored anyway.

Change-Id: I0d96b485c9e095be51571f2d68eb395920c97bc8
2014-08-10 11:17:49 +02:00
3808a32749 Remove unused interleave elements
Change-Id: Ia4f7c828c5633fe2b7747cfd00cd53cd916a6d4a
2014-08-10 11:17:49 +02:00
9d98c42b32 Unreferenced simple types
Stuff like
NS_ooxml::LN_Value_wordprocessingml_ST_TargetScreenSz_1920x1200 is no
doubt not mapped to anything or quite some VML bits, which are handled
in oox.

Change-Id: Id50af0b61c25794b5d2c34f3deb3f16f3a8ab838
2014-08-09 12:50:58 +02:00
71c5499711 detect start elements pointing to non-existing defines
Change-Id: I0ac0d77bccfa4e69af11df3019bd8dec920bfad3
2014-08-09 12:50:58 +02:00