summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-03-19read and use simple solid fill stylesHEADmasterJaume Pujantell5-14/+128
Implemented the reading of simple solid fills from the fill styles list in a theme. And it's use with the quick style fill matrix value. Change-Id: I658340f73ced475bbc8999b4d09c4666fd50dea5 Reviewed-on: https://gerrit.libreoffice.org/c/libvisio/+/163580 Tested-by: Miklos Vajna <vmiklos@collabora.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-03-19Fix -Werror=switchMiklos Vajna1-0/+2
importtest.cpp: In function ‘librevenge::RVNGString {anonymous}::getXPathContent(xmlDocPtr, const librevenge::RVNGString&)’: importtest.cpp:150:3: error: case value ‘5’ not in enumerated type ‘xmlXPathObjectType’ [-Werror=switch] case XPATH_POINT: ^~~~ importtest.cpp:151:3: error: case value ‘6’ not in enumerated type ‘xmlXPathObjectType’ [-Werror=switch] case XPATH_RANGE: ^~~~ importtest.cpp:152:3: error: case value ‘7’ not in enumerated type ‘xmlXPathObjectType’ [-Werror=switch] case XPATH_LOCATIONSET: ^~~~ cc1plus: all warnings being treated as errors Change-Id: I04cf0caf6d0e51b4c02cbab0bd5b4219c7ac5a3b
2023-12-30tdf#77915 fix import of default shape fill colorAndras Timar3-1/+15
Change-Id: I5f2f5fd4678774b024301aede4be50ad04a22f87 Reviewed-on: https://gerrit.libreoffice.org/c/libvisio/+/161397 Tested-by: Bartosz Kosiorek <gang65@poczta.onet.pl> Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2023-12-23tests: Fix build with libxml 2.12Jan Tojnar1-0/+1
libxml 2.12.0 reorganized the headers, which removed `xmlParseMemory` function from the scope. Change-Id: Ibd747fe7f83eb7c3a8b8cf57ac4a06e365986d46 Reviewed-on: https://gerrit.libreoffice.org/c/libvisio/+/160542 Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2019-08-17bump releaseDavid Tardon1-1/+1
Change-Id: I1656c0a2bb5bbc44e434d89eeb7b40c89b5e3e0b
2019-08-17distribute new test fileslibvisio-0.1.7David Tardon1-1/+8
Change-Id: I87e0b4e921605a462b116c2820b2a7d55bbb5448
2019-08-17keep the file list sortedDavid Tardon1-2/+2
Change-Id: I072ae492e3ecc538d78ac071793042c77321b708
2019-08-17prepare for a releaseDavid Tardon1-0/+12
Change-Id: I660d3ccee41ef7fedf24819831cd56460cacba64
2019-08-12simplify creation of xmlReaderDavid Tardon8-29/+20
Change-Id: I95815a3f19c612a2926ea1d80f07abbaba1f5595
2019-08-07drop XML_PARSE_NOENT and default to not expanding entitiesCaolán McNamara6-6/+6
Change-Id: I3c3f143b97df19227e274a1591471faa3dd3ed5f Reviewed-on: https://gerrit.libreoffice.org/76779 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2019-08-04cid#1371582 check return valueDavid Tardon1-2/+2
Change-Id: If6f80449f6ba0584979aade8887d639996bc5e14
2019-08-04cid#1371581 check return valueDavid Tardon1-1/+1
Change-Id: I794e08141e15795ee19edca755e5cbfa4b9ff71d
2019-08-04cid#1452212 fix memory leakDavid Tardon1-2/+1
Change-Id: Idec224a8c688a624c67db07de28add2040f3bc59
2019-08-04sort includesDavid Tardon1-2/+7
Change-Id: Idf362dcc4ede95dceb80de5a5c2e6ac7dff5ff21
2019-08-04cid#1452210 fix memory leakDavid Tardon1-2/+1
Change-Id: Ifda9cbb926993364ddb68fcb96dc66e0c765d2ef
2019-08-04make trivial copy ctors default tooDavid Tardon6-93/+18
Change-Id: I9d1359ea3867add91eb9c86eea6b25c6c98abc44
2019-08-04make trivial assignment operators defaultDavid Tardon9-346/+18
Change-Id: Ibb939f38dbe4ff0a0a61aad29a4a4da58efcb743
2019-08-04un-constify return value of operator=David Tardon6-32/+32
Change-Id: Ib72d1f92e6b080e5c2dd17cc57b2c7f48c917a77
2019-08-03WaE: implicitly-declared Pointer::operator= is deprecatedDavid Tardon2-0/+19
Change-Id: I1a092b3e976bd31b1764698001b9f320757d2cc4
2019-08-03WaE: implicitly-declared VSDOptionalFillStyle::operator= is deprecatedDavid Tardon2-0/+21
Change-Id: Iabc5a0e4fa4b223fd39405829257cce35d44d92e
2019-08-03WaE: implicitly-declared VSDTextBlockStyle::operator= is deprecatedDavid Tardon2-0/+18
Change-Id: Ic482a4bdd3386504ec65fb04c5d302bc2218ecf9
2019-08-03WaE: implicitly-declared VSDOptionalTextBlockStyle::operator= is deprecatedDavid Tardon2-0/+18
Change-Id: Idfc7955fb75afd14cec262f8815d3cb1cebe3900
2019-08-03WaE: implicitly-declared VSDParaStyle::operator= is deprecatedDavid Tardon2-0/+23
Change-Id: I4b6e91f40cfb24f4492eb75f5b8ffff53fbddf7f
2019-08-03WaE: implicitly-declared VSDOptionalParaStyle::operator= is deprecatedDavid Tardon2-0/+23
Change-Id: Ide41be4bbae843c0f96240efcb0d85f60b6f37ec
2019-08-03WaE: implicitly-declared VSDCharStyle::operator= is deprecatedDavid Tardon2-0/+25
Change-Id: Iaa5ac6e94bb53afebc9a09c42134cd64583cfc43
2019-08-03WaE: implicitly-declared VSDOptionalCharStyle::operator= is deprecatedDavid Tardon2-0/+25
Change-Id: I1729b9229bc01062486f9e124c3d3f13f6aaacf8
2019-08-03WaE: implicitly-declared VSDFillStyle::operator= is deprecatedDavid Tardon2-0/+21
Change-Id: Ie3ca69e7386ebbf04f7b5972f3ed96139e26015c
2019-08-03WaE: implicitly-declared VSDLineStyle::operator= is deprecatedDavid Tardon2-0/+18
Change-Id: I6760c2d8bd4bb85e0d760abdb86beea45e4fffeb
2019-08-03WaE: implicitly-declared VSDOptionalLineStyle::operator= is deprecatedDavid Tardon4-0/+34
Change-Id: I599cc0a57aad586def69f548955800082a5a4bdf
2019-08-03WaE: implicitly-declared VSDBullet::operator= is deprecatedDavid Tardon2-0/+13
Change-Id: Ib3f64f30ffe1616c08bb383ed1c462da6d4a31bc
2019-08-03WaE: implicitly-declared XForm::operator= is deprecatedDavid Tardon2-1/+20
Change-Id: I60e9d0bc7f148f3289552d0169b6cebfba8edee4
2019-08-03WaE: implicitly-declared VSDMisc::operator= is deprecatedDavid Tardon2-0/+8
Change-Id: I02ff6e1dc02c58ea9fcf26aaacfef245f66fe61a
2019-08-03WaE: implicitly-declared VSDName::operator= is deprecatedDavid Tardon3-0/+29
Change-Id: Ic99122062fc314a3ae6e3b904e4415f8b276f646
2019-08-03astyleDavid Tardon2-34/+34
Change-Id: I2d5fac3180897b3a35fa62edf8dddb545b3595be
2019-07-24tdf#126402 Fix line formating issueBartosz Kosiorek3-42/+164
With this commit, I have implemented more Visio arrow styles and I have added support importing Center Line Ending. As a result many import issues of Visio diagrams was resolved. Change-Id: I5284e3e53b9d5174ab49e841c66be58e06060760 Reviewed-on: https://gerrit.libreoffice.org/75635 Tested-by: Bartosz Kosiorek <gang65@poczta.onet.pl> Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2019-07-12tdf#126292 Fix unit conversionBartosz Kosiorek16-150/+294
With this commit I have added unit support. In .VSD format, all length values (points, kilometers, feets etc.) are stored in Inches, all Elapsed time are stored in Days, all angles are stored in radians. It means that value should be converted from Inch/ Days or radians, even if the unit is not displayed. For example: - centimeter values should multipled by 2.54 - elapsed hour values should be multiplied by 24 - percent values should be multipled by 100 Change-Id: I88711a1bf1bfd6078dc6948194449bcc91f34cce Reviewed-on: https://gerrit.libreoffice.org/75374 Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl> Tested-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2019-07-09tdf#126292 Fix unit conversionBartosz Kosiorek14-26/+176
Change-Id: I88711a1bf1bfd6078dc6948194449bcc91f34cce
2019-07-09Replace magic numbers with definesBartosz Kosiorek4-13/+13
Change-Id: I76211f335341c4ebc40c38766dc04969d3b420df Reviewed-on: https://gerrit.libreoffice.org/75245 Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl> Tested-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2019-07-08tdf#76829 tdf#98291 Visio: Fix number conversion to stringBartosz Kosiorek4-18/+60
The method 'doubleToString' is copied from librevenge: https://sourceforge.net/p/libwpd/librevenge/ci/master/tree/src/lib/RVNGProperty.cpp#l35 Method duplication allows to do not break ABI of librevenge. Change-Id: Ie1bce018cf2e1fd38af07db4d19445d1bffe9005 Reviewed-on: https://gerrit.libreoffice.org/75070 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Miklos Vajna <vmiklos@collabora.com>
2019-07-03tdf#76829 tdf#98291 Visio: Fix date and time conversion to stringBartosz Kosiorek5-33/+160
The documentation which implementation was based on was taken from: https://docs.microsoft.com/en-us/openspecs/sharepoint_protocols/ms-vsdx/50c23601-c943-4ff2-b4a1-02445f52daf0 Change-Id: I8a3544d198d0376bdc31b158c073f5340dff7237 Reviewed-on: https://gerrit.libreoffice.org/74743 Tested-by: Miklos Vajna <vmiklos@collabora.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-01-31Fix too small loop variablesMiklos Vajna4-14/+14
These loop variables had narrower type than the iteration's upper bound. Change-Id: Ie289e2fd5b11e3b654fc2e214e8f03dadee6fc65
2018-03-25move define where it should beDavid Tardon2-4/+3
Change-Id: Ie8080354158b01bd29c14105dce3919eb19a01e6
2018-03-25make sure headers are self-containedDavid Tardon23-18/+39
Change-Id: I77beb4ce00ec070f2599362f6462d967613abd2b
2018-03-25drop unused headersDavid Tardon1-3/+0
Change-Id: I697c5ee7e9ed2c694452e00ca2ed77c92c7650a3
2018-03-25use unique_ptr for text xformDavid Tardon6-26/+20
Change-Id: I2dacd0bfe4024055e9233730ff6485c8631f6a48
2018-03-25use unique_ptr to hold foreign dataDavid Tardon7-25/+21
Change-Id: I605e3fc76a7f909566450ccff33649745f16f200
2018-03-25use unique_ptrDavid Tardon7-23/+20
Change-Id: I2677dfde71b049c287df2ea68d656b0ad63dc8df
2018-03-25avoid manual memory mgmtDavid Tardon2-23/+10
Change-Id: If7229a08104410cd2df3b84202c75e68cbcfc114
2018-03-25guard against self-assignmentDavid Tardon3-12/+21
Change-Id: I2eff7abe7d341455c111291ecf81ff348846bc11
2018-03-25avoid manual memory mgmtDavid Tardon2-14/+9
Change-Id: I4694b93a135dc568beb234a6300a492326122257