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
d7eacc57
Kaydet (Commit)
d7eacc57
authored
Haz 25, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: outline SwTextSizeInfo ctors
Change-Id: I8964701bf5b1ecdb11851d7cc8540175e007dd2b
üst
b13fbaf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
33 deletions
+39
-33
inftxt.cxx
sw/source/core/text/inftxt.cxx
+37
-0
inftxt.hxx
sw/source/core/text/inftxt.hxx
+2
-33
No files found.
sw/source/core/text/inftxt.cxx
Dosyayı görüntüle @
d7eacc57
...
...
@@ -188,6 +188,35 @@ inline sal_Int32 GetMinLen( const SwTextSizeInfo &rInf )
return
std
::
min
(
nTextLen
,
nInfLen
);
}
SwTextSizeInfo
::
SwTextSizeInfo
()
:
m_pKanaComp
(
0
)
,
m_pVsh
(
0
)
,
m_pOut
(
0
)
,
m_pRef
(
0
)
,
m_pFnt
(
0
)
,
m_pUnderFnt
(
0
)
,
m_pFrm
(
0
)
,
m_pOpt
(
0
)
,
m_pText
(
0
)
,
m_nIdx
(
0
)
,
m_nLen
(
0
)
,
m_nKanaIdx
(
0
)
,
m_bOnWin
(
false
)
,
m_bNotEOL
(
false
)
,
m_bURLNotify
(
false
)
,
m_bStopUnderflow
(
false
)
,
m_bFootnoteInside
(
false
)
,
m_bOtherThanFootnoteInside
(
false
)
,
m_bMulti
(
false
)
,
m_bFirstMulti
(
false
)
,
m_bRuby
(
false
)
,
m_bHanging
(
false
)
,
m_bScriptSpace
(
false
)
,
m_bForbiddenChars
(
false
)
,
m_bSnapToGrid
(
false
)
,
m_nDirection
(
0
)
{}
SwTextSizeInfo
::
SwTextSizeInfo
(
const
SwTextSizeInfo
&
rNew
)
:
SwTextInfo
(
rNew
),
m_pKanaComp
(
rNew
.
GetpKanaComp
()),
...
...
@@ -334,6 +363,14 @@ SwTextSizeInfo::SwTextSizeInfo( const SwTextSizeInfo &rNew, const OUString* pTex
SetLen
(
GetMinLen
(
*
this
)
);
}
SwTextSizeInfo
::
SwTextSizeInfo
(
SwTextFrm
*
pTextFrm
,
SwFont
*
pTextFnt
,
const
sal_Int32
nIndex
,
const
sal_Int32
nLength
)
:
m_bOnWin
(
false
)
{
CtorInitTextSizeInfo
(
pTextFrm
,
pTextFnt
,
nIndex
,
nLength
);
}
void
SwTextSizeInfo
::
SelectFont
()
{
// The path needs to go via ChgPhysFnt or the FontMetricCache gets confused.
...
...
sw/source/core/text/inftxt.hxx
Dosyayı görüntüle @
d7eacc57
...
...
@@ -194,34 +194,7 @@ protected:
void
CtorInitTextSizeInfo
(
SwTextFrm
*
pFrm
,
SwFont
*
pFnt
=
0
,
const
sal_Int32
nIdx
=
0
,
const
sal_Int32
nLen
=
COMPLETE_STRING
);
SwTextSizeInfo
()
:
m_pKanaComp
(
0
)
,
m_pVsh
(
0
)
,
m_pOut
(
0
)
,
m_pRef
(
0
)
,
m_pFnt
(
0
)
,
m_pUnderFnt
(
0
)
,
m_pFrm
(
0
)
,
m_pOpt
(
0
)
,
m_pText
(
0
)
,
m_nIdx
(
0
)
,
m_nLen
(
0
)
,
m_nKanaIdx
(
0
)
,
m_bOnWin
(
false
)
,
m_bNotEOL
(
false
)
,
m_bURLNotify
(
false
)
,
m_bStopUnderflow
(
false
)
,
m_bFootnoteInside
(
false
)
,
m_bOtherThanFootnoteInside
(
false
)
,
m_bMulti
(
false
)
,
m_bFirstMulti
(
false
)
,
m_bRuby
(
false
)
,
m_bHanging
(
false
)
,
m_bScriptSpace
(
false
)
,
m_bForbiddenChars
(
false
)
,
m_bSnapToGrid
(
false
)
,
m_nDirection
(
0
)
{}
SwTextSizeInfo
();
public
:
SwTextSizeInfo
(
const
SwTextSizeInfo
&
rInf
);
SwTextSizeInfo
(
const
SwTextSizeInfo
&
rInf
,
const
OUString
*
pText
,
...
...
@@ -230,11 +203,7 @@ public:
SwTextSizeInfo
(
SwTextFrm
*
pTextFrm
,
SwFont
*
pTextFnt
=
0
,
const
sal_Int32
nIndex
=
0
,
const
sal_Int32
nLength
=
COMPLETE_STRING
)
:
m_bOnWin
(
false
)
{
CtorInitTextSizeInfo
(
pTextFrm
,
pTextFnt
,
nIndex
,
nLength
);
}
const
sal_Int32
nLength
=
COMPLETE_STRING
);
// GetMultiAttr returns the text attribute of the multiportion,
// if rPos is inside any multi-line part.
...
...
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