[Libreoffice-commits] .: 3 commits - sfx2/source

Rafael Dominguez rdominguez at kemper.freedesktop.org
Sun Jul 8 06:27:17 PDT 2012


 sfx2/source/control/thumbnailview.cxx |    4 ++--
 sfx2/source/doc/templatedlg.cxx       |    8 ++++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

New commits:
commit bdbd2c3057683694a75d9d8f88fc33e7a26c0769
Author: Rafael Dominguez <venccsralph at gmail.com>
Date:   Sat Jul 7 23:56:30 2012 -0430

    Hide search view when theres no text to search for.
    
    Change-Id: Ic178bf641d313b45a750f4b56dc3de53000abd8a

diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index bf98f42..9ac7512 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -591,6 +591,11 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg, SearchUpdateHdl)
 
         mpSearchView->Invalidate();
     }
+    else
+    {
+        mpSearchView->Hide();
+        maView->Show();
+    }
 
     return 0;
 }
commit 72cbe83e2f6dfba9291a404f8f77d5da68f0631f
Author: Rafael Dominguez <venccsralph at gmail.com>
Date:   Sat Jul 7 23:35:20 2012 -0430

    Increase action toolbar width.
    
    Change-Id: Iec101fea2f1ed505219bd6892c733cc5bc3d1f24

diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 2d1ff04..bf98f42 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -128,7 +128,7 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
     Size aActionSize = mpActionBar->CalcMinimumWindowSizePixel();
     Size aTemplateSize = mpTemplateBar->CalcMinimumWindowSizePixel();
 
-    aActionSize.setWidth(2*aActionSize.getWidth());
+    aActionSize.setWidth(3*aActionSize.getWidth());
     aViewSize.setWidth(aWinSize.getWidth()-aActionSize.getWidth()-mpViewBar->GetPosPixel().X());
     aTemplateSize.setWidth(aWinSize.getWidth());
 
commit d3314abcd91b50158f229bc4fa8ad7f02fd84bd1
Author: Rafael Dominguez <venccsralph at gmail.com>
Date:   Sat Jul 7 22:23:23 2012 -0430

    Set default ThumbnailView fill color the same as the dialogs.
    
    Change-Id: Id67d2dc5b626cd63f55088b7cb7950d86244d4b9

diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index 3897f38..b8a962c 100644
--- a/sfx2/source/control/thumbnailview.cxx
+++ b/sfx2/source/control/thumbnailview.cxx
@@ -52,8 +52,7 @@ enum
 };
 
 ThumbnailView::ThumbnailView (Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren)
-    : Control( pParent, nWinStyle ),
-    maColor( pParent->GetBackground().GetColor() )
+    : Control( pParent, nWinStyle )
 {
     ImplInit();
     mbIsTransientChildrenDisabled = bDisableTransientChildren;
@@ -106,6 +105,7 @@ void ThumbnailView::ImplInit()
     mbSelectionMode = false;
     mbActive = true;
     maFilterFunc = ViewFilterAll();
+    maColor = GetSettings().GetStyleSettings().GetDialogColor();
 
     // Create the processor and process the primitives
     const drawinglayer::geometry::ViewInformation2D aNewViewInfos;
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index f2c961f..2d1ff04 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -176,7 +176,6 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
     mpSearchEdit->EnableUpdateData();
 
     maView->SetStyle(WB_VSCROLL);
-    maView->SetColor(GetBackground().GetColor());
     maView->SetSizePixel(aThumbSize);
     maView->setItemMaxTextLength(ITEM_MAX_TEXT_LENGTH);
 


More information about the Libreoffice-commits mailing list