diff options
author | Gulsah Kose <gulsah.1004@gmail.com> | 2016-01-03 19:49:54 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2016-01-05 21:39:21 +0000 |
commit | 1949cc74b929e13799686b22b450ded8dbf4c064 (patch) | |
tree | abc7d4c463f7f7264d6ec42a03f60981090a9206 /svx/source/tbxctrls | |
parent | d929e3a6b478b0bc02aa90ba326aab79353a7799 (diff) |
tdf#90187 Added uno command for track changes bar.
v2: Solved dimmed button problem and changed controller class
for listen trackchangesbar button.
Change-Id: I5a921ad9bb6c8e53d3043e86492d0923a998f3d2
Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/21064
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r-- | svx/source/tbxctrls/tbxdrctl.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/svx/source/tbxctrls/tbxdrctl.cxx b/svx/source/tbxctrls/tbxdrctl.cxx index 0c40f0a404f7..a7de72434894 100644 --- a/svx/source/tbxctrls/tbxdrctl.cxx +++ b/svx/source/tbxctrls/tbxdrctl.cxx @@ -55,10 +55,17 @@ void SAL_CALL SvxTbxCtlDraw::initialize( const css::uno::Sequence< css::uno::Any * "private:resource/toolbar/toolbar" in draw and impress. Control is added for this * difference. */ - if ( m_sModuleName == "com.sun.star.presentation.PresentationDocument" || m_sModuleName == "com.sun.star.drawing.DrawingDocument" ) - m_sToolboxName="private:resource/toolbar/toolbar"; + if( m_aCommandURL==".uno:TrackChangesBar") + { + m_sToolboxName="private:resource/toolbar/changes"; + } else - m_sToolboxName="private:resource/toolbar/drawbar"; + { + if ( m_sModuleName == "com.sun.star.presentation.PresentationDocument" || m_sModuleName == "com.sun.star.drawing.DrawingDocument" ) + m_sToolboxName="private:resource/toolbar/toolbar"; + else + m_sToolboxName="private:resource/toolbar/drawbar"; + } } |