jsdialog: dump separator line
Change-Id: I2c9954a7f0ec3df3652733af54ea4b0f84af25e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107520 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108407 Tested-by: Jenkins
This commit is contained in:
@@ -62,6 +62,7 @@ public:
|
||||
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
|
||||
|
||||
virtual Size GetOptimalSize() const override;
|
||||
virtual void DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) override;
|
||||
};
|
||||
|
||||
class VCL_DLLPUBLIC FixedBitmap final : public Control
|
||||
|
@@ -25,6 +25,7 @@
|
||||
#include <comphelper/string.hxx>
|
||||
#include <sal/log.hxx>
|
||||
#include <controldata.hxx>
|
||||
#include <tools/json_writer.hxx>
|
||||
|
||||
#define FIXEDLINE_TEXT_BORDER 4
|
||||
|
||||
@@ -656,6 +657,13 @@ Size FixedLine::GetOptimalSize() const
|
||||
return CalcWindowSize( FixedText::CalcMinimumTextSize ( this ) );
|
||||
}
|
||||
|
||||
void FixedLine::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
|
||||
{
|
||||
Control::DumpAsPropertyTree(rJsonWriter);
|
||||
rJsonWriter.put("type", "separator");
|
||||
rJsonWriter.put("orientation", (GetStyle() & WB_VERT) ? "vertical" : "horizontal");
|
||||
}
|
||||
|
||||
void FixedBitmap::ImplInit( vcl::Window* pParent, WinBits nStyle )
|
||||
{
|
||||
nStyle = ImplInitStyle( nStyle );
|
||||
|
Reference in New Issue
Block a user