Commit Graph
28 Commits
Author SHA1 Message Date
Vatsal32 a804a0a548 tdf#132293 removed all the unused imports from the folder sw
Change-Id: I5a37f30941a73c276bc238fa9fbdfcfd8381791f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112563
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-04-08 15:00:03 +02:00
Anshu a56aa46fcc tdf#101965 : Add No List default in Styles deck in sidebar
Change-Id: I167b379f31809bc252d3c091d0f545f8c2a3f13e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112143
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-03-29 14:08:10 +02:00
Mike Kaganski bd96a6f7b7 Don't rely on Python's treatment of unrecognized escape sequences
According to [1]:

> Changed in version 3.6: Unrecognized escape sequences produce a DeprecationWarning.
> In a future Python version they will be a SyntaxWarning and eventually a SyntaxError.

[1] https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals

Change-Id: Ia4f79f17ccb121f423f35b1e1306d5ae285e8762
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98321
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-07-13 22:23:44 +02:00
Seth Chaiklin aeac2420bc tdf#114090 Create a new paragraph style with name "Appendix"
followed recommendation in bug report: 16pt, bold, centered

  - inheritance from Heading
  - when tdf#128858 is resolved then Appendix will inherit
      outline level 1

One attempt at filter modifications, but maybe there are others?

Change-Id: I0f91327cfe5578cd888528b2c6fac5065951eec0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85657
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2020-01-27 10:04:05 +01:00
Mayank Suman d5dc19402e tdf#97361: Removed getByIndex in calc and writer
Change-Id: I477e1129d7b8deb91920b3ffd715bc217e606d20
Reviewed-on: https://gerrit.libreoffice.org/80140
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2019-10-24 14:23:45 +02:00
Bjoern Michaelsen 1cd4959008 tdf#125307: move range properties check to own test
- the document styles tests seems mostly unrelated
- also: add bug reference in commit message subject, so that the
  bugzilla bot can do its shtick
- all the real work done already by Thomas Viehmann on commit
  2f679fd3e6

Change-Id: Ice5860c15c05fae37f0ba337d804de70acf3d936
Reviewed-on: https://gerrit.libreoffice.org/79132
Tested-by: Jenkins
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2019-09-19 19:59:37 +02:00
Thomas Viehmann 2f679fd3e6 sw: Mark uno property ParaChapterNumberingLevel as MAYBEVOID
tdf#127534 TextRange.getPropertyValues runs into RuntimeException when
getting all properties form PropertySetinfo

We suspect that the property might be completely unused / useless.
However, removing it might be BC breaking for "buggy" uses of
the property, so this is a lower-risk fix.

Björn helped with great advice, thank you! All errors in the patch
are my own, though.

Change-Id: Ie80b61003de2b8516e458c800531aac951ebc148
Reviewed-on: https://gerrit.libreoffice.org/78865
Tested-by: Jenkins
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2019-09-17 11:59:18 +02:00
heiko tietze a9022502e0 tdf#121369 - Header and Footer parent styles
New "Header and Footer" style introduced as parent to header/footer styles
Right alignment set for HeaderR and FooterR

Change-Id: Iff407da8907b761236ebc2aa8877b9d6b8294e10
Reviewed-on: https://gerrit.libreoffice.org/64152
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
2018-11-28 18:49:48 +01:00
Miklos Vajna 9d754a5915 sw: give the 'Default Style' char style a programmatic name
So that referring to that style is possible from UNO API client code in
a way that is portable across multiple locales.

This also improves consistency between the default para and default char
styles, as the default para style already had this behavior.

Also add a new CppunitTest_sw_unowriter for such tests which assert the
UNO API from cppunit, instead of hacking this into
CppunitTest_sw_uiwriter.

Change-Id: I0a2b02378dce53c6b79c57780d1b7f14e89242e8
Reviewed-on: https://gerrit.libreoffice.org/57191
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-07-09 20:04:26 +02:00
Nickson Thanda f8b59486ca tdf#117013 renamed Illustration Index to Table of Figures
Illustration Index has been renamed to Table of Figures
Default category changed from Illustration to Figures

Change-Id: I2c4fbf4036c245ea98cda4e3652c300449abd4b1
Reviewed-on: https://gerrit.libreoffice.org/54372
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Heiko Tietze <tietze.heiko@gmail.com>
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
2018-06-05 15:53:49 +02:00
Nickson Thanda 28012351ae tdf#58407 Inserted images are now called Figure by default in caption
Created a new field type called Figure

Change-Id: Ic7f3d3b878d03f4d6a98727db489e48158f946a1
Reviewed-on: https://gerrit.libreoffice.org/52178
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-04-04 00:03:22 +02:00
Yousuf Philips 74c527abc0 tdf#106988 New names for the new numbering styles
Change-Id: Ibc93aaa552652d61ac49652cf0ac5fcb68b48a12
Reviewed-on: https://gerrit.libreoffice.org/37995
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-12-07 22:13:18 +01:00
Michael Stahl aa70294ffc normalize existing emacs/vim mode-lines in python files
Bunch of these were setting C++ or Make modes and icky tabs...

Also, reportedly Emacs can figure out to enable python-mode
automatically.

Change-Id: I50072488fb92cb4d27aa3f74f717a28ae3967543
2016-10-26 22:16:08 +02:00
Jakub Trzebiatowski b7138e03eb GSoC Writer Table Styles; Import bugfix
+ Binary autoformats are loaded into document on document creation
+ Imported table styles overwrite existing styles.

Change-Id: I88c08d1356e1c54a03624a051611357670f225ba
Reviewed-on: https://gerrit.libreoffice.org/27539
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-07-27 12:13:18 +00:00
Jakub Trzebiatowski d945e97d8f GSoC Table Style Family: insertByName, replaceByName, removeByName
- also implements SwXTextTableStyle::replaceByName

- some refactorization
  + use std::unique_ptr

- fixes some bugs:
 + posible nullptr dereference in tblafmt.cxx
 + SwXTextTableStyle::getName() returned translated name
 + remvoed unnecesary SetXObject in Cell Style Family replacebyName

- tests

Change-Id: Idd25d54695ab5a4bdd4daf7ebf37b05fbc2366e7
Reviewed-on: https://gerrit.libreoffice.org/26578
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-06-24 08:51:43 +00:00
Jakub Trzebiatowski 309bc35559 GSoC Table Styles, Export Cell Styles
Exporting cell-styles
Exporting table-template
To be able to map SwTableAutoFormat to table-template 1:1
extended table-template by the following elements:
	loext:first-row-even-column
	loext:last-row-even-column
	loext:first-row-end-column
	loext:first-row-start-column
	loext:last-row-end-column
	loext:last-row-start-column

Added attributes describing box format to SwXTextCellStyle

Change-Id: I2967ba461dfc6f030c1e5cdbba62e2673d3b232b
Reviewed-on: https://gerrit.libreoffice.org/26185
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-06-20 12:08:01 +00:00
Jakub Trzebiatowski 17f440e7e7 GSoC Table Styles, TableStyle isInUse, isUserDefined, mutex fixes
Also added:
+ SwXTextCellStyle::IsInUse()
+ check_styles.py
	SwXTextTableStyle::isUserDefined() tests

Change-Id: I76cb166107f186098599c4a8da6f94f7c40cc545
Reviewed-on: https://gerrit.libreoffice.org/26366
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-06-17 07:18:54 +00:00
Jakub Trzebiatowski 3464befb48 GSoC Table Styles, CellStyle
- insertByName
- replaceByName
- removeByName

Change-Id: I964aa0dc2e7f5a5be9eaec719b8944e847eb9d6a
Reviewed-on: https://gerrit.libreoffice.org/26037
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-06-13 10:48:55 +00:00
Jakub Trzebiatowski 45a6fdad81 sw UNO Cell Style family, SwXTextCellStyle
Cell Family :: getByName
Cell Family :: getElementNames
Cell Family :: getCount

Change-Id: I37d567ee284054f847c704d9fce370d174a0c48c
Reviewed-on: https://gerrit.libreoffice.org/25896
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-06-07 13:12:24 +00:00
Jakub Trzebiatowski be0c898587 Sw UNO API SwXTextCellStyle; TableStyles createInstance, XNameAccess
Making createInstance("com.sun.star.style.TableStyle") possible
Making SwXTextTableStyle a XNameAccess container of SwXTextCellStyles

Implementing basic SwXTextCellStyle

CellStyleMap based on svx/source/table/tabledesign.cxx

Change-Id: I5afff1f514582a63a6eb9f9fb44667665749855a
Reviewed-on: https://gerrit.libreoffice.org/25558
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-05-31 07:22:25 +00:00
Jakub Trzebiatowski d4188f643d Sw UNO API TableStyles getByName
Implementing TableStyle family getByName, hasByName, getByIndex
Implementing SwXTextTableStyle
Implementing basic tests

Change-Id: I256189db8631a713c4aae6b449409bbfaa776f24
Reviewed-on: https://gerrit.libreoffice.org/25410
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-05-26 19:00:41 +00:00
Jakub Trzebiatowski 8b81597848 Implement basic TableStyle Family
Change-Id: I3da13d26ced05e1948d483d432d6268b10c208b5
Implementing: getCount, getElementNames
Reviewed-on: https://gerrit.libreoffice.org/25351
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-05-24 09:46:44 +00:00
ackepenek 79e68375e4 tdf#99145 refactored to pep8
Change-Id: I4896cd0bda97331a8291588e6a4f29a881d1229c
Reviewed-on: https://gerrit.libreoffice.org/23925
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-05-11 07:25:11 +00:00
slideon d513cd3bf6 tdf#97361 Fix check_table and remove = None assignments
The = None (or null) pattern is a Java convention, its not needed in Python.

Change-Id: I0041d4030db05234eeefc8606f571da38174f962
Reviewed-on: https://gerrit.libreoffice.org/23669
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-04-05 10:33:08 +00:00
slideon c19219d5f4 tdf#97361 Refactor load_save_test
Make new helper functions, minor style cleanup in other tests

Change-Id: Ifb188fa8227cdd1a1a5af88e692315c5f93da67d
Reviewed-on: https://gerrit.libreoffice.org/23547
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-03-30 06:57:39 +00:00
Bjoern Michaelsen ddb248507f writer UNO style families: test insert/replace ops
Change-Id: I5a8daa1c0f2b62dbf56fa9fc1d14555f0ff613e2
2015-12-11 23:39:54 +01:00
Bjoern Michaelsen d275f36714 writer UNO style families: also check isUserDefined()
Change-Id: Iada331a12232fd83b6813e6db65bd011d3746142
2015-12-11 23:39:53 +01:00
Bjoern Michaelsen ce3d3f5543 add test for UNO writer style families ...
... and fix the breakages it finds.

Change-Id: Ibc7289cc0cd7fb5648d686bd55afff9016f58b3b
Reviewed-on: https://gerrit.libreoffice.org/20638
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Jenkins <ci@libreoffice.org>
2015-12-11 17:00:31 +00:00