Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d798ee8f
Kaydet (Commit)
d798ee8f
authored
Nis 28, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:vclwidgets (best guess)
Change-Id: I682a0970fd667eacda781e799a941a11593ade90
üst
cd41fa43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
a11yfocustracker.hxx
vcl/inc/osx/a11yfocustracker.hxx
+1
-1
printaccessoryview.mm
vcl/osx/printaccessoryview.mm
+11
-11
No files found.
vcl/inc/osx/a11yfocustracker.hxx
Dosyayı görüntüle @
d798ee8f
...
...
@@ -84,7 +84,7 @@ private:
rtl
::
Reference
<
KeyboardFocusListener
>
m_aFocusListener
;
// the list of Windows that need deeper (focus) investigation
std
::
set
<
vcl
::
Window
*
>
m_aDocumentWindowList
;
std
::
set
<
VclPtr
<
vcl
::
Window
>
>
m_aDocumentWindowList
;
// the link object needed for Application::addEventListener
Link
m_aWindowEventLink
;
...
...
vcl/osx/printaccessoryview.mm
Dosyayı görüntüle @
d798ee8f
...
...
@@ -299,14 +299,14 @@ class ControllerProperties
{
GDIMetaFile aMtf;
PrinterController::PageSize aPageSize( mpController->getFilteredPageFile( i_nPage, aMtf, false ) );
VirtualDevice aDev
;
auto aDev(VclPtr<VirtualDevice>::Create())
;
if( mpController->getPrinter()->GetPrinterOptions().IsConvertToGreyscales() )
aDev
.SetDrawMode( aDev.
GetDrawMode() | ( DRAWMODE_GRAYLINE | DRAWMODE_GRAYFILL | DRAWMODE_GRAYTEXT |
aDev
->SetDrawMode( aDev->
GetDrawMode() | ( DRAWMODE_GRAYLINE | DRAWMODE_GRAYFILL | DRAWMODE_GRAYTEXT |
DRAWMODE_GRAYBITMAP | DRAWMODE_GRAYGRADIENT ) );
// see salprn.cxx, currently we pretend to be a 720dpi device on printers
aDev
.
SetReferenceDevice( 720, 720 );
aDev
.
EnableOutput( TRUE );
Size aLogicSize( aDev
.
PixelToLogic( aPixelSize, MapMode( MAP_100TH_MM ) ) );
aDev
->
SetReferenceDevice( 720, 720 );
aDev
->
EnableOutput( TRUE );
Size aLogicSize( aDev
->
PixelToLogic( aPixelSize, MapMode( MAP_100TH_MM ) ) );
double fScaleX = double(aLogicSize.Width())/double(aPageSize.aSize.Width());
double fScaleY = double(aLogicSize.Height())/double(aPageSize.aSize.Height());
double fScale = (fScaleX < fScaleY) ? fScaleX : fScaleY;
...
...
@@ -321,13 +321,13 @@ class ControllerProperties
aMtf.WindStart();
aLogicSize.Width() = long(double(aPageSize.aSize.Width()) * fScale);
aLogicSize.Height() = long(double(aPageSize.aSize.Height()) * fScale);
aPixelSize = aDev
.
LogicToPixel( aLogicSize, MapMode( MAP_100TH_MM ) );
aDev
.
SetOutputSizePixel( aPixelSize );
aPixelSize = aDev
->
LogicToPixel( aLogicSize, MapMode( MAP_100TH_MM ) );
aDev
->
SetOutputSizePixel( aPixelSize );
aMtf.WindStart();
aDev
.
SetMapMode( MapMode( MAP_100TH_MM ) );
aMtf.Play(
&aDev
, Point( 0, 0 ), aLogicSize );
aDev
.
EnableMapMode( FALSE );
Image aImage( aDev
.
GetBitmap( Point( 0, 0 ), aPixelSize ) );
aDev
->
SetMapMode( MapMode( MAP_100TH_MM ) );
aMtf.Play(
aDev.get()
, Point( 0, 0 ), aLogicSize );
aDev
->
EnableMapMode( FALSE );
Image aImage( aDev
->
GetBitmap( Point( 0, 0 ), aPixelSize ) );
NSImage* pImage = CreateNSImage( aImage );
[mpPreview setImage: [pImage autorelease]];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment