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
640c1788
Kaydet (Commit)
640c1788
authored
Ara 19, 2011
tarafından
Stefan Knorr (astron)
Kaydeden (comit)
Jan Holesovsky
Ara 27, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Try to draw replacement preview at original size
üst
8efd3f8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
frmpage.cxx
sw/source/ui/frmdlg/frmpage.cxx
+14
-4
No files found.
sw/source/ui/frmdlg/frmpage.cxx
Dosyayı görüntüle @
640c1788
...
@@ -224,7 +224,7 @@ static FrmMap aHFlyHtmlMap[] =
...
@@ -224,7 +224,7 @@ static FrmMap aHFlyHtmlMap[] =
{
SwFPos
::
FROMLEFT
,
SwFPos
::
MIR_FROMLEFT
,
text
::
HoriOrientation
::
NONE
,
LB_FLY_REL_PG_FRAME
}
{
SwFPos
::
FROMLEFT
,
SwFPos
::
MIR_FROMLEFT
,
text
::
HoriOrientation
::
NONE
,
LB_FLY_REL_PG_FRAME
}
};
};
// own vertical alignment map for
to frame anchored objects
// own vertical alignment map for
objects anchored to frame
#define VERT_FRAME_REL (LB_FLY_VERT_FRAME|LB_FLY_VERT_PRTAREA)
#define VERT_FRAME_REL (LB_FLY_VERT_FRAME|LB_FLY_VERT_PRTAREA)
static
FrmMap
aVFrameMap
[]
=
static
FrmMap
aVFrameMap
[]
=
...
@@ -1941,7 +1941,7 @@ IMPL_LINK( SwFrmPage, PosHdl, ListBox *, pLB )
...
@@ -1941,7 +1941,7 @@ IMPL_LINK( SwFrmPage, PosHdl, ListBox *, pLB )
}
}
/*--------------------------------------------------------------------
/*--------------------------------------------------------------------
Description: horizonal Pos
Description: horizon
t
al Pos
--------------------------------------------------------------------*/
--------------------------------------------------------------------*/
IMPL_LINK
(
SwFrmPage
,
RelHdl
,
ListBox
*
,
pLB
)
IMPL_LINK
(
SwFrmPage
,
RelHdl
,
ListBox
*
,
pLB
)
{
{
...
@@ -2555,14 +2555,24 @@ void BmpWindow::Paint( const Rectangle& )
...
@@ -2555,14 +2555,24 @@ void BmpWindow::Paint( const Rectangle& )
aGrfSize
=
::
GetGraphicSizeTwip
(
aGraphic
,
this
);
aGrfSize
=
::
GetGraphicSizeTwip
(
aGraphic
,
this
);
//it should show the default bitmap also if no graphic can be found
//it should show the default bitmap also if no graphic can be found
if
(
!
aGrfSize
.
Width
()
&&
!
aGrfSize
.
Height
())
if
(
!
aGrfSize
.
Width
()
&&
!
aGrfSize
.
Height
())
aGrfSize
=
PixelToLogic
(
aBmp
.
GetSizePixel
());
aGrfSize
=
PixelToLogic
(
aBmp
.
GetSizePixel
());
long
nRelGrf
=
aGrfSize
.
Width
()
*
100L
/
aGrfSize
.
Height
();
long
nRelGrf
=
aGrfSize
.
Width
()
*
100L
/
aGrfSize
.
Height
();
long
nRelWin
=
aPntSz
.
Width
()
*
100L
/
aPntSz
.
Height
();
long
nRelWin
=
aPntSz
.
Width
()
*
100L
/
aPntSz
.
Height
();
if
(
nRelGrf
<
nRelWin
)
if
(
nRelGrf
<
nRelWin
)
{
{
const
long
nWidth
=
aPntSz
.
Width
();
const
long
nWidth
=
aPntSz
.
Width
();
aPntSz
.
Width
()
=
aPntSz
.
Height
()
*
nRelGrf
/
100
;
// if we use a replacement preview, try to draw at original size
if
(
!
bGraphic
&&
(
aGrfSize
.
Width
()
<=
aPntSz
.
Width
()
)
&&
(
aGrfSize
.
Height
()
<=
aPntSz
.
Height
()
)
)
{
const
long
nHeight
=
aPntSz
.
Height
();
aPntSz
.
Width
()
=
aGrfSize
.
Width
();
aPntSz
.
Height
()
=
aGrfSize
.
Height
();
aPntPos
.
Y
()
+=
(
nHeight
-
aPntSz
.
Height
())
/
2
;
}
else
aPntSz
.
Width
()
=
aPntSz
.
Height
()
*
nRelGrf
/
100
;
if
(
!
bLeftAlign
)
if
(
!
bLeftAlign
)
aPntPos
.
X
()
+=
nWidth
-
aPntSz
.
Width
()
;
aPntPos
.
X
()
+=
nWidth
-
aPntSz
.
Width
()
;
}
}
...
...
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