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
6229149a
Kaydet (Commit)
6229149a
authored
Agu 19, 2011
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
have the twip->mm100 conversion code for frame props at a single place
üst
d62e4809
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+18
-14
No files found.
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
6229149a
...
@@ -717,6 +717,7 @@ void RTFDocumentImpl::checkChangedFrame()
...
@@ -717,6 +717,7 @@ void RTFDocumentImpl::checkChangedFrame()
// Check if this is a frame.
// Check if this is a frame.
if
(
inFrame
()
&&
!
m_bWasInFrame
)
if
(
inFrame
()
&&
!
m_bWasInFrame
)
{
{
OSL_TRACE
(
"%s starting frame"
,
OSL_THIS_FUNC
);
uno
::
Reference
<
text
::
XTextFrame
>
xTextFrame
;
uno
::
Reference
<
text
::
XTextFrame
>
xTextFrame
;
xTextFrame
.
set
(
getModelFactory
()
->
createInstance
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.text.TextFrame"
))),
uno
::
UNO_QUERY
);
xTextFrame
.
set
(
getModelFactory
()
->
createInstance
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.text.TextFrame"
))),
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XShape
>
xShape
(
xTextFrame
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XShape
>
xShape
(
xTextFrame
,
uno
::
UNO_QUERY
);
...
@@ -745,6 +746,7 @@ void RTFDocumentImpl::checkChangedFrame()
...
@@ -745,6 +746,7 @@ void RTFDocumentImpl::checkChangedFrame()
}
}
else
if
(
!
inFrame
()
&&
m_bWasInFrame
)
else
if
(
!
inFrame
()
&&
m_bWasInFrame
)
{
{
OSL_TRACE
(
"%s ending frame"
,
OSL_THIS_FUNC
);
Mapper
().
endParagraphGroup
();
Mapper
().
endParagraphGroup
();
Mapper
().
endShape
();
Mapper
().
endShape
();
Mapper
().
endParagraphGroup
();
Mapper
().
endParagraphGroup
();
...
@@ -1946,6 +1948,22 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
...
@@ -1946,6 +1948,22 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
if
(
nSprm
>
0
)
if
(
nSprm
>
0
)
return
0
;
return
0
;
// Frame size / position.
int
*
pSprm
=
0
;
switch
(
nKeyword
)
{
case
RTF_ABSW
:
pSprm
=
&
m_aStates
.
top
().
aFrame
.
nW
;
break
;
case
RTF_ABSH
:
pSprm
=
&
m_aStates
.
top
().
aFrame
.
nH
;
break
;
case
RTF_POSX
:
pSprm
=
&
m_aStates
.
top
().
aFrame
.
nX
;
m_aStates
.
top
().
aFrame
.
nHoriOrient
=
text
::
HoriOrientation
::
NONE
;
break
;
case
RTF_POSY
:
pSprm
=
&
m_aStates
.
top
().
aFrame
.
nY
;
m_aStates
.
top
().
aFrame
.
nVertOrient
=
text
::
VertOrientation
::
NONE
;
break
;
default
:
break
;
}
if
(
pSprm
)
{
*
pSprm
=
TWIP_TO_MM100
(
nParam
);
return
0
;
}
// Then check for the more complex ones.
// Then check for the more complex ones.
switch
(
nKeyword
)
switch
(
nKeyword
)
{
{
...
@@ -2418,20 +2436,6 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
...
@@ -2418,20 +2436,6 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
case
RTF_AFTNSTART
:
case
RTF_AFTNSTART
:
lcl_putNestedSprm
(
m_aDefaultState
.
aParagraphSprms
,
NS_ooxml
::
LN_EG_SectPrContents_endnotePr
,
NS_ooxml
::
LN_EG_FtnEdnNumProps_numStart
,
pIntValue
);
lcl_putNestedSprm
(
m_aDefaultState
.
aParagraphSprms
,
NS_ooxml
::
LN_EG_SectPrContents_endnotePr
,
NS_ooxml
::
LN_EG_FtnEdnNumProps_numStart
,
pIntValue
);
break
;
break
;
case
RTF_ABSW
:
m_aStates
.
top
().
aFrame
.
nW
=
TWIP_TO_MM100
(
nParam
);
break
;
case
RTF_ABSH
:
m_aStates
.
top
().
aFrame
.
nH
=
TWIP_TO_MM100
(
nParam
);
break
;
case
RTF_POSX
:
m_aStates
.
top
().
aFrame
.
nHoriOrient
=
text
::
HoriOrientation
::
NONE
;
m_aStates
.
top
().
aFrame
.
nX
=
TWIP_TO_MM100
(
nParam
);
break
;
case
RTF_POSY
:
m_aStates
.
top
().
aFrame
.
nVertOrient
=
text
::
VertOrientation
::
NONE
;
m_aStates
.
top
().
aFrame
.
nY
=
TWIP_TO_MM100
(
nParam
);
break
;
case
RTF_DFRMTXTX
:
case
RTF_DFRMTXTX
:
m_aStates
.
top
().
aFrame
.
nLeftMargin
=
m_aStates
.
top
().
aFrame
.
nRightMargin
=
TWIP_TO_MM100
(
nParam
);
m_aStates
.
top
().
aFrame
.
nLeftMargin
=
m_aStates
.
top
().
aFrame
.
nRightMargin
=
TWIP_TO_MM100
(
nParam
);
break
;
break
;
...
...
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