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
8a639d24
Kaydet (Commit)
8a639d24
authored
Kas 24, 2009
tarafından
Daniel Rentz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i107170# use current script for default cell style
üst
590cca7e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
11 deletions
+32
-11
xehelper.cxx
sc/source/filter/excel/xehelper.cxx
+2
-2
xestyle.cxx
sc/source/filter/excel/xestyle.cxx
+0
-0
xestyle.hxx
sc/source/filter/inc/xestyle.hxx
+30
-9
No files found.
sc/source/filter/excel/xehelper.cxx
Dosyayı görüntüle @
8a639d24
...
...
@@ -415,7 +415,7 @@ XclExpStringRef lclCreateFormattedString(
nScript
=
nLastScript
;
// construct font from current text portion
SvxFont
aFont
(
XclExpFont
Buffer
::
GetFontFromItemSet
(
rItemSet
,
nScript
)
);
SvxFont
aFont
(
XclExpFont
Helper
::
GetFontFromItemSet
(
rRoot
,
rItemSet
,
nScript
)
);
// Excel start position of this portion
sal_uInt16
nXclPortionStart
=
xString
->
Len
();
...
...
@@ -529,7 +529,7 @@ XclExpStringRef lclCreateFormattedString(
sal_Int16
nScript
=
xBreakIt
->
getScriptType
(
aXclPortionText
,
0
);
if
(
nScript
==
ApiScriptType
::
WEAK
)
nScript
=
nLastScript
;
SvxFont
aFont
(
XclExpFont
Buffer
::
GetFontFromItemSet
(
aItemSet
,
nScript
)
);
SvxFont
aFont
(
XclExpFont
Helper
::
GetFontFromItemSet
(
rRoot
,
aItemSet
,
nScript
)
);
nLastScript
=
nScript
;
// add escapement
...
...
sc/source/filter/excel/xestyle.cxx
Dosyayı görüntüle @
8a639d24
This diff is collapsed.
Click to expand it.
sc/source/filter/inc/xestyle.hxx
Dosyayı görüntüle @
8a639d24
...
...
@@ -139,6 +139,36 @@ const size_t EXC_FONTLIST_NOTFOUND = static_cast< size_t >( -1 );
// ----------------------------------------------------------------------------
/** Static helper functions for font export. */
class
XclExpFontHelper
{
public
:
/** Returns the script type of the first font item found in the item set and its parents. */
static
sal_Int16
GetFirstUsedScript
(
const
XclExpRoot
&
rRoot
,
const
SfxItemSet
&
rItemSet
);
/** Returns a VCL font object filled from the passed item set. */
static
Font
GetFontFromItemSet
(
const
XclExpRoot
&
rRoot
,
const
SfxItemSet
&
rItemSet
,
sal_Int16
nScript
);
/** Returns true, if at least one font related item is set in the passed item set.
@param bDeep true = Searches in parent item sets too. */
static
bool
CheckItems
(
const
XclExpRoot
&
rRoot
,
const
SfxItemSet
&
rItemSet
,
sal_Int16
nScript
,
bool
bDeep
);
private
:
XclExpFontHelper
();
~
XclExpFontHelper
();
};
// ----------------------------------------------------------------------------
/** Stores all data of an Excel font and provides export of FONT records. */
class
XclExpFont
:
public
XclExpRecord
,
protected
XclExpRoot
{
...
...
@@ -228,15 +258,6 @@ public:
virtual
void
Save
(
XclExpStream
&
rStrm
);
virtual
void
SaveXml
(
XclExpXmlStream
&
rStrm
);
/** Returns the script type of the first font item found in the item set and its parents. */
static
sal_Int16
GetFirstUsedScript
(
const
SfxItemSet
&
rItemSet
);
/** Returns a VCL font object filled from the passed item set. */
static
Font
GetFontFromItemSet
(
const
SfxItemSet
&
rItemSet
,
sal_Int16
nScript
);
/** Returns true, if at least one font related item is set in the passed item set.
@param bDeep true = Searches in parent item sets too. */
static
bool
CheckItems
(
const
SfxItemSet
&
rItemSet
,
sal_Int16
nScript
,
bool
bDeep
);
private
:
/** Initializes the default fonts for the current BIFF version. */
void
InitDefaultFonts
();
...
...
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