diff options
author | Keith Curtis <keithcu@gmail.com> | 2014-01-02 16:01:07 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-12 13:04:22 -0500 |
commit | dfffb3244a4fd8cd58fa7786cbec626604dc61e1 (patch) | |
tree | c44de5cda1ef4a4afa3493dc26a0bb4049afe9eb /sfx2/source/dialog | |
parent | ab2739b37d8c331aa5ed26346c7e29199a369571 (diff) |
hidpi: Sidebar, fontwork, autoformat and other improvements.
This is a second batch of HiDPI changes. It fixes the following areas:
Sidebar
* Impress Master pages preview
* deck title height
* tab (icon) bar
* valueset dropdown control
* wider maximum width
* Draw and other misc. buttons which didn't get fixed by earlier
change to Toolbar.SetItemImage
There are several more sidebar issues, but it is much improved.
Other changes
* Writer and Calc auto-format dialog text
* file-properties document image
* fontwork gallery preview size
* Calc table border control
Change-Id: I95a0169a3b011836b1c75b3dcacb2733c9567ef3
Reviewed-on: https://gerrit.libreoffice.org/8519
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index c603adca604c..4975c615a126 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1055,7 +1055,16 @@ void SfxDocumentPage::Reset( const SfxItemSet& rSet ) aURL.SetSmartProtocol( INET_PROT_FILE ); aURL.SetSmartURL( aFactory); const OUString& rMainURL = aURL.GetMainURL( INetURLObject::NO_DECODE ); - m_pBmp->SetImage( SvFileInformationManager::GetImage( aURL, sal_True ) ); + Image aImage = SvFileInformationManager::GetImage( aURL, sal_True ); + + if ( GetDPIScaleFactor() > 1) + { + BitmapEx b = aImage.GetBitmapEx(); + b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor()); + aImage = Image(b); + } + + m_pBmp->SetImage( aImage ); // determine size and type OUString aSizeText( m_aUnknownSize ); |