include/svl/intitem.hxx | 3 +++ svl/source/items/intitem.cxx | 8 ++++++++ sw/source/uibase/shells/grfsh.cxx | 7 +++++++ 3 files changed, 18 insertions(+)
New commits: commit fc34df00c47e97fa1a9633c1e14e8b9df52f77f5 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Tue Nov 26 15:03:27 2019 +0100 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Thu Nov 28 09:45:24 2019 +0100 jsdialogs: send graphic items updates Change-Id: I57d05726f80115b92e7599a7d033bf1ea8f79695 Reviewed-on: https://gerrit.libreoffice.org/83955 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> diff --git a/include/svl/intitem.hxx b/include/svl/intitem.hxx index f6064ed8a335..8ecf53fadb08 100644 --- a/include/svl/intitem.hxx +++ b/include/svl/intitem.hxx @@ -22,6 +22,7 @@ #include <svl/svldllapi.h> #include <svl/cintitem.hxx> +#include <boost/property_tree/json_parser.hpp> class SVL_DLLPUBLIC SfxByteItem: public CntByteItem @@ -55,6 +56,8 @@ public: const IntlWrapper&) const override; + virtual boost::property_tree::ptree dumpAsJSON() const override; + virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; diff --git a/svl/source/items/intitem.cxx b/svl/source/items/intitem.cxx index 1345308281fa..f4016097637f 100644 --- a/svl/source/items/intitem.cxx +++ b/svl/source/items/intitem.cxx @@ -58,6 +58,14 @@ bool SfxInt16Item::GetPresentation(SfxItemPresentation, } +boost::property_tree::ptree SfxInt16Item::dumpAsJSON() const +{ + boost::property_tree::ptree aTree = SfxPoolItem::dumpAsJSON(); + aTree.put("state", GetValue()); + return aTree; +} + + // virtual bool SfxInt16Item::QueryValue(css::uno::Any& rVal, sal_uInt8) const { diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx index 9bc4d34fcf1b..13cd9a22b4ad 100644 --- a/sw/source/uibase/shells/grfsh.cxx +++ b/sw/source/uibase/shells/grfsh.cxx @@ -77,6 +77,9 @@ #include <unocrsr.hxx> #include <memory> +#include <comphelper/lok.hxx> +#include <LibreOfficeKit/LibreOfficeKitEnums.h> + #define TOOLBOX_NAME "colorbar" class SwGrfShell::SwExternalToolEdit @@ -921,6 +924,10 @@ void SwGrfShell::GetAttrState(SfxItemSet &rSet) nWhich = aIter.NextWhich(); } SetGetStateSet( nullptr ); + + SfxViewShell* pViewShell = GetShell().GetSfxViewShell(); + if (pViewShell && comphelper::LibreOfficeKit::isActive()) + pViewShell->sendUnoStatus( &rSet ); } void SwGrfShell::ExecuteRotation(SfxRequest const &rReq) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits