summaryrefslogtreecommitdiff
path: root/include/sfx2
AgeCommit message (Collapse)Author
2016-03-02loplugin:unuseddefaultparam in sfx2Noel Grandin
Change-Id: I37afde801a6468c79259fe51acbdea0614c2c8c5
2016-02-29sfx2 classification: fix category name duplicationMiklos Vajna
A category name was stored in m_aName and also as a label value with key name PROP_BACNAME(). Fix this by always using m_aName, and doing the conversion in both directions in SfxClassificationHelper::Impl::pushToObjectShell() and the SfxClassificationHelper() ctor, as document metadata wants to work with only key-vaulue pairs. Change-Id: Iad386840038966e4483e3503c5fcdc046ca9effc
2016-02-28Unused definesMaxim Monastirsky
Change-Id: Idc31e498a7223e7827533b24ab26928e21660ff2
2016-02-28Kill sfx2 menu supportMaxim Monastirsky
Change-Id: I340a066881b1962a4bcd5a2b7d9a0425d8b9557c
2016-02-26tdf#98188: Crash when closing File->Properties->CMIS Properties tabGiuseppe Castagno
Change-Id: I22e1d6cc1c50b9ae613dab7c253ba21451aac584 Reviewed-on: https://gerrit.libreoffice.org/22704 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2016-02-25sfx2 classification: expose category names as parsed from the policyMiklos Vajna
Change-Id: I53b958dff2f43d4762445c4b474f2b00ae6dc9d0
2016-02-24let SvxSearchItem use SearchOptions2Eike Rathke
And all those places that interface to SvxSearchItem. Change-Id: I08915824a596cd0f247a89f44e4684cd22b98082
2016-02-24sw classification: name watermark objects, so later it's possible to find themMiklos Vajna
Given that they are not fields, it's necessary to re-create them every time their textural content would change. Change-Id: I1276ef686b1b622dccaa8ac4996af8e4cb4de329
2016-02-24sw classification: put the relevant field to the footer if policy wants soMiklos Vajna
Change-Id: I61c235660366ec1aba137097600605aae76c39a7
2016-02-24sfx2 classification: expose document header presenceMiklos Vajna
Change-Id: Ic69af56982a89356571f0016164b60e22ab94cf8
2016-02-23sfx2 classification: update infobar after setting category nameMiklos Vajna
So one doesn't need to reload the document to see an up to date infobar. Change-Id: I42b0b8c2d7e4953157d73f06b724ba23f6b79cab
2016-02-23-Werror,-Wmismatched-tagsStephan Bergmann
Change-Id: Iec4901265fc79992ab43194744d838d949d87f9b
2016-02-23sfx2 classification: add interface to set category nameMiklos Vajna
Change-Id: I289b46f5f57ef000de5f482b5c8ed7bcaa89ddab
2016-02-22Resolve SfxDocTemplate_ImplRef typedefStephan Bergmann
Change-Id: I9dfe4557a471f1b33cc4cad879bec1797e03f8d1
2016-02-22Pick a single place to declare SfxObjectShellRef typedefStephan Bergmann
Change-Id: Ie949f4d9002beefb810c87cdd44bf59f575da101
2016-02-22sw classification: add initial UNO commandMiklos Vajna
It doesn't do anything useful yet, though. Change-Id: Ib6574f79996cfc7b09596f8aba21aaf106ee7c79
2016-02-19sfx classification: give access to document header/footer and watermarkMiklos Vajna
Change-Id: I07e22f16cfa0229f609e7fc406e98e9f0c843153
2016-02-17sfx2 classification: color the infobar according to the impact levelMiklos Vajna
Change-Id: I43c6537290aa5ce8a9dcc034d4ff6776668cde0c
2016-02-17sfx2 infobar: allow setting the message styleMiklos Vajna
Change-Id: I73151a78d1b396179776847d6fbb2da1dd8755e8
2016-02-17sfx2 infobar: allow setting the message colorMiklos Vajna
Change-Id: I32bb73dfd8ecb78bb2eb9907b0c008e84fd2233a
2016-02-17loplugin:nullptrStephan Bergmann
Change-Id: Iadf6c245e4902ef98d5e3de09c1648bdd74644bc
2016-02-17sfx2 infobar: allow setting the back/foreground colorMiklos Vajna
It would be easier to set these after the infobar is created, but the infobar is shown right after creating it, so that way the infobar would be always yellow for a short period of time -> annoying flashing. Change-Id: Ie23efd2fd1bba624cf2921f11a6fc40014ac4215
2016-02-17use consistent #define checks for the Windows platformNoel Grandin
stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-17sfx2 classification infobar: improve messageMiklos Vajna
Change-Id: If8fe5b145014055639a9a2eadd8fded7ebf7c2b3
2016-02-17sfx2: introduce initial SfxClassificationHelperMiklos Vajna
A document's metadata has predefinied keys like title, and has user-defined ones as well. The BAILS specification at <http://www.tscp.org/wp-content/uploads/2013/08/TSCP_BAILSv1.pdf> describes a mechanism to use the generic user-defined key-value pairs to embed classification-related (read: is it public? is it internal only? etc) information in a standard way. One approach in handling these in LO would be to let code here and there parse these user-defined key-value pairs again and again. An other one would be to handle these as first-class properties, even if the majority of the users would never need them. A middle between the above two approaches is this class: all these properties are still just user-defined properties, but if the document has them, then all related code is supposed to be implemented in this central class. Change-Id: Ib0297a5e91779b330c310a153f1a1628759dd028
2016-02-09Remove excess newlinesChris Sherlock
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-09Formatting changes across all modulesChris Sherlock
+ Removed comment cruft + Tab formatting in number of files + Some commented out code removed + Tab characters replaced with spaces + Newline cleanup in quite a few files + Tweak header guard #endifs Change-Id: I3208ff2f047da890edcc49b73389aca22442f5fc Reviewed-on: https://gerrit.libreoffice.org/22221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-08revert part of "loplugin:unusedmethods"Noel Grandin
<sberg> noelgrandin, just happen to look at b14224fe again; looks a bit scary to remove == or != from cases where both where declared <noelgrandin> sberg, ok, I can revert that part <sberg> noelgrandin, I guess that would be safer (there could be cases where now a different overload could kick in) Change-Id: I5dc41c05dc4439d5adee0e5b3e0a9e1dfb9de3af Reviewed-on: https://gerrit.libreoffice.org/22211 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-08convert SfxSlotKind to scoped enumNoel Grandin
Change-Id: I742e83bd455bc0efa4ad5a34575d3255c3a9a16f
2016-02-08loplugin:unusedmethodsNoel Grandin
using an idea from dtardon: <dtardon> noelgrandin, hi. could you try to run the unusedmethods clang plugin with "make build-nocheck"? that would catch functions that are only used in tests. e.g., i just removed the whole o3tl::range class, which has not been used in many years, but htere was a test for it... <noelgrandin> dtardon, interesting idea! Sure, I can do that. Change-Id: I5653953a426a2186a1e43017212d87ffce520387 Reviewed-on: https://gerrit.libreoffice.org/22041 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-05remove unused SlotId/Volatile from .SDI filesNoel Grandin
Change-Id: I29f039c2fec8433fa062c603b64afffa60e7b0d0
2016-02-05Fix typosAndrea Gelmini
Change-Id: Ice72f8d9971e15dd6ef365e64cd567b8581a92d3 Reviewed-on: https://gerrit.libreoffice.org/21797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-02-04remove unused GET/SET/STATUSBARCONFIG in .SDI filesNoel Grandin
Change-Id: I74404d72e9146950a9881d2a59323c2bf08c9742 Reviewed-on: https://gerrit.libreoffice.org/22100 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused RecordManual from SDI filesNoel Grandin
Change-Id: Ia6af0d00b68f5694c9fc9cc453fe36fb923f0a2d Reviewed-on: https://gerrit.libreoffice.org/22099 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused HasDialog from SDI filesNoel Grandin
Change-Id: I26f2cef48fcc7a6c4a6b93668b836879254f3eb0 Reviewed-on: https://gerrit.libreoffice.org/22098 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused Synchron from SDI filesNoel Grandin
Change-Id: I0b8c63a97bfa4a49ac87869e164ab22d2aa99de3 Reviewed-on: https://gerrit.libreoffice.org/22097 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused Cachable keyword from SDI filesNoel Grandin
Change-Id: I60c423b799f34f79f58bc39cf7ea616ec4f5d16a Reviewed-on: https://gerrit.libreoffice.org/22096 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-02Avoid unncessary, premature null derefStephan Bergmann
...when SfxTabPage::Reset (sfx2/source/dialog/tabdlg.cxx) calls into DoApplyFlags/DoRest with a null rSet (but which apparently isn't actually used then), e.g. upon "File - Export as PDF..." in Impress. Change-Id: Ie2f255694212356fa8fc994287c45f2b4730a5bd
2016-01-31implement missing FID_FUNCTION_BOX GetStateCaolán McNamara
since it was turned into a sidebar thing Change-Id: Ic7e53b9da3255bb8dfde048e0a12f1d9c89102d0
2016-01-29sfx2: remove unused boost includeMichael Stahl
Change-Id: I75d9e953bc99f0af70e09ee07568a7a31b904573
2016-01-25Revert "fdo#62947 make IDs unique, fixes, better names"Maxim Monastirsky
This reverts commit 5398664eed621fbcc644ff949d4841590973bfa3. Conflicts: include/sfx2/sfxcommands.h sw/source/ui/app/mn.src Change-Id: Ic55cfb51a726ab9ee19bac6719d5e2670d1fb494
2016-01-20i#107205 Remove SfxDispatcher::Popup and SfxPopupMenuManager::PopupMaxim Monastirsky
Change-Id: I1a8bee75a2dbfb039ec32faf001b75b26ea1f3fe
2016-01-19Kill .src based Writer context menusMaxim Monastirsky
Change-Id: I854e2dd48b2f59b561c0d0cd3e52297046d25b96
2016-01-18loplugin:unusedfieldsNoel Grandin
Change-Id: I321b594f1190cdd997b4769161e1c02d31f46213 Reviewed-on: https://gerrit.libreoffice.org/21566 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-13resolve TODO, remove SVVERB_SHOWMichael Stahl
Change-Id: I10148330f1a356dbd423af98267c25d7128c3a86
2016-01-13loplugin:unusedmethods unused return value in include/sfx2Noel Grandin
Change-Id: Id4017bdfe18f8224d28a9f787865c7a880aeeed8
2016-01-12comphelper: initial SfxFilterFlags::SUPPORTSSIGNINGMiklos Vajna
Currently digital signatures can be made only on OWN formats. Add a new flag that can be used to mark filters (only DOCX as a start) which could also support signing and fix the first place that assumes that only OWN formats support signing. Change-Id: If9fbf956b765d75838986762e4d4063a9e8c0b5e
2016-01-10Fix typosAndrea Gelmini
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-08SfxTemplatePanelControl doesn't have to be a DockingWindow anymoreCaolán McNamara
so we can drop one more DockingWindow from .src files leaving just one left Change-Id: I2e12398ce7682193aace966ebb8d153ec9acea2e
2015-12-30Kill remaining plugin bitsMaxim Monastirsky
Change-Id: Icd99757b48626ef43313e8de42c4e5462f85a958 Reviewed-on: https://gerrit.libreoffice.org/21008 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>