diff options
author | Balazs Varga <balazs.varga.extern@allotropia.de> | 2023-11-23 12:20:37 +0100 |
---|---|---|
committer | Balazs Varga <balazs.varga.extern@allotropia.de> | 2023-11-24 15:16:43 +0100 |
commit | fbecf8009af8abdd218fbb3bd26087e8b805d06b (patch) | |
tree | 4ac4fd5850137d9ebbde10c8e23059ce481b0c2e /include | |
parent | 63ecd577f5fe95feda0d1d8577a7d3b493999d78 (diff) |
tdf#158239 - UI: Part 41 - Unify lockdown behavior of Options dialog
for Impress - Grid Page.
Change-Id: I0864a0a47a890c34154e775a1f960fdff09de81c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159868
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/optgrid.hxx | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/svx/optgrid.hxx b/include/svx/optgrid.hxx index c033d001871c..b8e1f5604286 100644 --- a/include/svx/optgrid.hxx +++ b/include/svx/optgrid.hxx @@ -104,8 +104,16 @@ public: virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; private: + enum ModuleMode + { + WRITER_MODE = 0, + CALC_MODE = 1, + IMPRESS_MODE = 2, + DRAW_MODE = 3, + HTML_MODE = 4 + }; bool bAttrModified; - bool m_bHTMLMode; + ModuleMode m_Emode; std::unique_ptr<weld::CheckButton> m_xCbxUseGridsnap; std::unique_ptr<weld::Widget> m_xCbxUseGridsnapImg; @@ -125,15 +133,24 @@ protected: //these controls are used in draw and impress std::unique_ptr<weld::Widget> m_xSnapFrames; std::unique_ptr<weld::CheckButton> m_xCbxSnapHelplines; + std::unique_ptr<weld::Widget> m_xCbxSnapHelplinesImg; std::unique_ptr<weld::CheckButton> m_xCbxSnapBorder; + std::unique_ptr<weld::Widget> m_xCbxSnapBorderImg; std::unique_ptr<weld::CheckButton> m_xCbxSnapFrame; + std::unique_ptr<weld::Widget> m_xCbxSnapFrameImg; std::unique_ptr<weld::CheckButton> m_xCbxSnapPoints; + std::unique_ptr<weld::Widget> m_xCbxSnapPointsImg; std::unique_ptr<weld::MetricSpinButton> m_xMtrFldSnapArea; + std::unique_ptr<weld::Widget> m_xMtrFldSnapAreaImg; std::unique_ptr<weld::CheckButton> m_xCbxOrtho; + std::unique_ptr<weld::Widget> m_xCbxOrthoImg; std::unique_ptr<weld::CheckButton> m_xCbxBigOrtho; + std::unique_ptr<weld::Widget> m_xCbxBigOrthoImg; std::unique_ptr<weld::CheckButton> m_xCbxRotate; + std::unique_ptr<weld::Widget> m_xCbxRotateImg; std::unique_ptr<weld::MetricSpinButton> m_xMtrFldAngle; std::unique_ptr<weld::MetricSpinButton> m_xMtrFldBezAngle; + std::unique_ptr<weld::Widget> m_xMtrFldBezAngleImg; DECL_LINK(ClickRotateHdl_Impl, weld::Toggleable&, void); private: |