[Libreoffice-commits] core.git: 2 commits - officecfg/registry reportdesign/source sc/inc sc/sdi sc/source sc/uiconfig

Maxim Monastirsky momonasmon at gmail.com
Fri Jul 10 06:47:50 PDT 2015


 officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu |    8 --
 reportdesign/source/ui/misc/toolboxcontroller.cxx                 |    7 --
 sc/inc/sc.hrc                                                     |    1 
 sc/sdi/scalc.sdi                                                  |   27 ----------
 sc/sdi/tabvwsh.sdi                                                |    1 
 sc/source/ui/app/scdll.cxx                                        |    1 
 sc/source/ui/cctrl/tbinsert.cxx                                   |    5 -
 sc/source/ui/inc/tabvwsh.hxx                                      |    1 
 sc/source/ui/view/tabvwsh4.cxx                                    |   11 ----
 sc/uiconfig/scalc/toolbar/insertbar.xml                           |    4 -
 sc/uiconfig/scalc/toolbar/toolbar.xml                             |    1 
 11 files changed, 3 insertions(+), 64 deletions(-)

New commits:
commit 3dc95e2d1fce543ef2981c9743161da6c4cfc291
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Fri Jul 10 16:26:51 2015 +0300

    tdf#83541 Fix also for reportdesign
    
    Forgot about this ugly wrapper in reportdesign
    
    Change-Id: I8a1d7206165d8c6db8a506eaa0c56d019fdadfb2

diff --git a/reportdesign/source/ui/misc/toolboxcontroller.cxx b/reportdesign/source/ui/misc/toolboxcontroller.cxx
index aa9eb3f..9c9e844 100644
--- a/reportdesign/source/ui/misc/toolboxcontroller.cxx
+++ b/reportdesign/source/ui/misc/toolboxcontroller.cxx
@@ -284,12 +284,7 @@ void SAL_CALL OToolboxController::execute( sal_Int16 KeyModifier ) throw (uno::R
 
 sal_Bool SAL_CALL OToolboxController::opensSubToolbar() throw (uno::RuntimeException, std::exception)
 {
-    return ( m_nSlotId == SID_DRAWTBX_CS_BASIC ||
-             m_nSlotId == SID_DRAWTBX_CS_SYMBOL ||
-             m_nSlotId == SID_DRAWTBX_CS_ARROW ||
-             m_nSlotId == SID_DRAWTBX_CS_FLOWCHART ||
-             m_nSlotId == SID_DRAWTBX_CS_CALLOUT ||
-             m_nSlotId == SID_DRAWTBX_CS_STAR );
+    return ( m_nSlotId != SID_ATTR_CHAR_FONT );
 }
 
 OUString SAL_CALL OToolboxController::getSubToolbarName() throw (uno::RuntimeException, std::exception)
commit 4a7c89fe51149a51ba29120288e4c5e732726097
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Sun Jul 5 18:24:20 2015 +0300

    Kill SID_TBXCTL_INSOBJ
    
    The associated toolbar doesn't exist anymore, and most of the
    buttons that were there in (at least) OOo 2.0 were moved to the
    Insert toolbar (it's the one that's pulled from the "Insert"
    button). So kill it, and make Insert Chart/Object visible by
    default in the Insert toolbar.
    
    Change-Id: I84ea43f560ea23ceff2e885e9ce615b9d76f3075

diff --git a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
index 830bcb3..66566f1 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
@@ -829,14 +829,6 @@
           <value>1</value>
         </prop>
       </node>
-      <node oor:name=".uno:InsObjCtrl" oor:op="replace">
-        <prop oor:name="Label" oor:type="xs:string">
-          <value xml:lang="en-US">Insert Object</value>
-        </prop>
-        <prop oor:name="Properties" oor:type="xs:int">
-          <value>1</value>
-        </prop>
-      </node>
       <node oor:name=".uno:ShowChanges" oor:op="replace">
         <prop oor:name="Label" oor:type="xs:string">
           <value xml:lang="en-US">~Show Changes...</value>
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index da4678d..c332cd2 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -616,7 +616,6 @@
 //  slots for toolbox controller in toolbar
 #define SID_TBXCTL_INSERT       (SID_NEW_SLOTS+55)
 #define SID_TBXCTL_INSCELLS     (SID_NEW_SLOTS+56)
-#define SID_TBXCTL_INSOBJ       (SID_NEW_SLOTS+57)
 
 #define SID_DEFINE_COLROWNAMERANGES (SID_NEW_SLOTS+58)
 
diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi
index 744d2de..aa9d0da 100644
--- a/sc/sdi/scalc.sdi
+++ b/sc/sdi/scalc.sdi
@@ -4537,33 +4537,6 @@ SfxVoidItem InsertRowsAfter FID_INS_ROWS_AFTER
 ]
 
 
-SfxUInt16Item InsObjCtrl SID_TBXCTL_INSOBJ
-
-[
-    /* flags: */
-    AutoUpdate = FALSE,
-    Cachable = Cachable,
-    FastCall = FALSE,
-    HasCoreId = FALSE,
-    HasDialog = FALSE,
-    ReadOnlyDoc = TRUE,
-    Toggle = FALSE,
-    Container = FALSE,
-    RecordAbsolute = FALSE,
-    RecordPerSet;
-    Synchron;
-
-    Readonly = FALSE,
-
-    /* config: */
-    AccelConfig = FALSE,
-    MenuConfig = FALSE,
-    StatusBarConfig = FALSE,
-    ToolBoxConfig = TRUE,
-    GroupId = GID_VIEW;
-]
-
-
 SfxVoidItem JumpToNextCell SID_CURSORENTERDOWN
 ()
 [
diff --git a/sc/sdi/tabvwsh.sdi b/sc/sdi/tabvwsh.sdi
index 89439b8..d2ff989 100644
--- a/sc/sdi/tabvwsh.sdi
+++ b/sc/sdi/tabvwsh.sdi
@@ -269,7 +269,6 @@ shell ScTabViewShell
     SID_STATUS_PAGESTYLE    [ ExecMethod = Execute; StateMethod = GetState; ]
     SID_TBXCTL_INSERT       [ ExecMethod = ExecTbx; StateMethod = GetTbxState; ]
     SID_TBXCTL_INSCELLS     [ ExecMethod = ExecTbx; StateMethod = GetTbxState; ]
-    SID_TBXCTL_INSOBJ       [ ExecMethod = ExecTbx; StateMethod = GetTbxState; ]
 
 }
 
diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx
index 384ae4c..f303727 100644
--- a/sc/source/ui/app/scdll.cxx
+++ b/sc/source/ui/app/scdll.cxx
@@ -157,7 +157,6 @@ void ScDLL::Init()
     // Own Controller
     ScTbxInsertCtrl     ::RegisterControl(SID_TBXCTL_INSERT, pMod);
     ScTbxInsertCtrl     ::RegisterControl(SID_TBXCTL_INSCELLS, pMod);
-    ScTbxInsertCtrl     ::RegisterControl(SID_TBXCTL_INSOBJ, pMod);
     ScZoomSliderControl ::RegisterControl(SID_PREVIEW_SCALINGFACTOR, pMod);
 
     // SvxToolboxController
diff --git a/sc/source/ui/cctrl/tbinsert.cxx b/sc/source/ui/cctrl/tbinsert.cxx
index 85f9f6d..049949c 100644
--- a/sc/source/ui/cctrl/tbinsert.cxx
+++ b/sc/source/ui/cctrl/tbinsert.cxx
@@ -84,11 +84,6 @@ VclPtr<SfxPopupWindow> ScTbxInsertCtrl::CreatePopupWindow()
         OUString aInsertCellsBarResStr( "private:resource/toolbar/insertcellsbar" );
         createAndPositionSubToolBar( aInsertCellsBarResStr );
     }
-    else
-    {
-        OUString aInsertObjectBarResStr( "private:resource/toolbar/insertobjectbar" );
-        createAndPositionSubToolBar( aInsertObjectBarResStr );
-    }
     return NULL;
 }
 
diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx
index 04e21a9..1d79989 100644
--- a/sc/source/ui/inc/tabvwsh.hxx
+++ b/sc/source/ui/inc/tabvwsh.hxx
@@ -94,7 +94,6 @@ class ScTabViewShell: public SfxViewShell, public ScDBFunc
 private:
     static sal_uInt16           nInsertCtrlState;
     static sal_uInt16           nInsCellsCtrlState;
-    static sal_uInt16           nInsObjCtrlState;
 
     SvxHtmlOptions          aHTMLOpt;
     ObjectSelectionType     eCurOST;
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx
index fa35ea9..7351d0a 100644
--- a/sc/source/ui/view/tabvwsh4.cxx
+++ b/sc/source/ui/view/tabvwsh4.cxx
@@ -106,7 +106,6 @@ using namespace com::sun::star;
 
 sal_uInt16 ScTabViewShell::nInsertCtrlState = SID_INSERT_GRAPHIC;
 sal_uInt16 ScTabViewShell::nInsCellsCtrlState = 0;
-sal_uInt16 ScTabViewShell::nInsObjCtrlState = SID_INSERT_DIAGRAM;
 
 void ScTabViewShell::Activate(bool bMDI)
 {
@@ -1849,10 +1848,6 @@ void ScTabViewShell::ExecTbx( SfxRequest& rReq )
             if ( pItem )
                 nInsCellsCtrlState = static_cast<const SfxUInt16Item*>(pItem)->GetValue();
             break;
-        case SID_TBXCTL_INSOBJ:
-            if ( pItem )
-                nInsObjCtrlState = static_cast<const SfxUInt16Item*>(pItem)->GetValue();
-            break;
         default:
             OSL_FAIL("Slot im Wald");
     }
@@ -1863,12 +1858,6 @@ void ScTabViewShell::GetTbxState( SfxItemSet& rSet )
 {
     rSet.Put( SfxUInt16Item( SID_TBXCTL_INSERT,   nInsertCtrlState ) );
     rSet.Put( SfxUInt16Item( SID_TBXCTL_INSCELLS, nInsCellsCtrlState ) );
-
-    //  ohne installiertes Chart darf Chart nicht Default sein...
-    if ( nInsObjCtrlState == SID_DRAW_CHART && !SvtModuleOptions().IsChart() )
-        nInsObjCtrlState = SID_INSERT_OBJECT;
-
-    rSet.Put( SfxUInt16Item( SID_TBXCTL_INSOBJ,   nInsObjCtrlState ) );
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/uiconfig/scalc/toolbar/insertbar.xml b/sc/uiconfig/scalc/toolbar/insertbar.xml
index bdd373a..98cb2b8 100644
--- a/sc/uiconfig/scalc/toolbar/insertbar.xml
+++ b/sc/uiconfig/scalc/toolbar/insertbar.xml
@@ -25,6 +25,6 @@
  <toolbar:toolbaritem xlink:href=".uno:InsertGraphic"/>
  <toolbar:toolbaritem xlink:href=".uno:InsertAVMedia"/>
  <toolbar:toolbaritem xlink:href=".uno:InsertObjectStarMath"/>
- <toolbar:toolbaritem xlink:href=".uno:DrawChart" toolbar:visible="false"/>
- <toolbar:toolbaritem xlink:href=".uno:InsertObject" toolbar:visible="false"/>
+ <toolbar:toolbaritem xlink:href=".uno:DrawChart"/>
+ <toolbar:toolbaritem xlink:href=".uno:InsertObject"/>
 </toolbar:toolbar>
diff --git a/sc/uiconfig/scalc/toolbar/toolbar.xml b/sc/uiconfig/scalc/toolbar/toolbar.xml
index 0bc03ae..2760b49 100644
--- a/sc/uiconfig/scalc/toolbar/toolbar.xml
+++ b/sc/uiconfig/scalc/toolbar/toolbar.xml
@@ -20,7 +20,6 @@
 <toolbar:toolbar xmlns:toolbar="http://openoffice.org/2001/toolbar" xmlns:xlink="http://www.w3.org/1999/xlink" toolbar:id="toolbar">
  <toolbar:toolbaritem xlink:href=".uno:InsertCtrl" toolbar:style="dropdown"/>
  <toolbar:toolbaritem xlink:href=".uno:InsCellsCtrl" toolbar:style="dropdown"/>
- <toolbar:toolbaritem xlink:href=".uno:InsObjCtrl" toolbar:style="dropdown"/>
  <toolbar:toolbaritem xlink:href=".uno:Config" toolbar:style="dropdown"/>
  <toolbar:toolbarseparator/>
  <toolbar:toolbaritem xlink:href=".uno:AutoFormat"/>


More information about the Libreoffice-commits mailing list