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
f2c63c56
Kaydet (Commit)
f2c63c56
authored
Kas 05, 2002
tarafından
Malte Timmermann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#96441# EnableStoreUnicodeNames
üst
e3c0f8d4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
15 deletions
+44
-15
fontitem.hxx
svx/inc/fontitem.hxx
+6
-2
impedit2.cxx
svx/source/editeng/impedit2.cxx
+5
-2
textitem.cxx
svx/source/items/textitem.cxx
+33
-11
No files found.
svx/inc/fontitem.hxx
Dosyayı görüntüle @
f2c63c56
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: fontitem.hxx,v $
*
* $Revision: 1.
5
$
* $Revision: 1.
6
$
*
* last change: $Author: m
ib $ $Date: 2001-07-05 09:48:22
$
* last change: $Author: m
t $ $Date: 2002-11-05 15:40:35
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -98,6 +98,8 @@ class SvxFontItem : public SfxPoolItem
FontPitch
ePitch
;
rtl_TextEncoding
eTextEncoding
;
static
BOOL
bEnableStoreUnicodeNames
;
public
:
TYPEINFO
();
...
...
@@ -147,6 +149,8 @@ public:
return
*
this
;
}
static
void
EnableStoreUnicodeNames
(
BOOL
bEnable
)
{
bEnableStoreUnicodeNames
=
bEnable
;
}
};
void
GetDefaultFonts
(
SvxFontItem
&
rLatin
,
SvxFontItem
&
rAsian
,
...
...
svx/source/editeng/impedit2.cxx
Dosyayı görüntüle @
f2c63c56
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: impedit2.cxx,v $
*
* $Revision: 1.8
1
$
* $Revision: 1.8
2
$
*
* last change: $Author: mt $ $Date: 2002-11-0
1 12:37:49
$
* last change: $Author: mt $ $Date: 2002-11-0
5 15:42:43
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -86,6 +86,7 @@
#include <adjitem.hxx>
#include <scripttypeitem.hxx>
#include <frmdiritem.hxx>
#include <fontitem.hxx>
#ifndef _SFXVIEWFRM_HXX //autogen
#include <sfx2/viewfrm.hxx>
...
...
@@ -2938,8 +2939,10 @@ uno::Reference< datatransfer::XTransferable > ImpEditEngine::CreateTransferable(
aText
.
ConvertLineEnd
();
// Systemspezifisch
pDataObj
->
GetString
()
=
aText
;
SvxFontItem
::
EnableStoreUnicodeNames
(
TRUE
);
WriteBin
(
pDataObj
->
GetStream
(),
aSelection
,
TRUE
);
pDataObj
->
GetStream
().
Seek
(
0
);
SvxFontItem
::
EnableStoreUnicodeNames
(
FALSE
);
((
ImpEditEngine
*
)
this
)
->
WriteRTF
(
pDataObj
->
GetRTFStream
(),
aSelection
);
pDataObj
->
GetRTFStream
().
Seek
(
0
);
...
...
svx/source/items/textitem.cxx
Dosyayı görüntüle @
f2c63c56
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: textitem.cxx,v $
*
* $Revision: 1.4
8
$
* $Revision: 1.4
9
$
*
* last change: $Author: mt $ $Date: 2002-11-0
1 12:32:47
$
* last change: $Author: mt $ $Date: 2002-11-0
5 15:40:55
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -241,6 +241,8 @@
#include <tools/tenccvt.hxx>
#endif
#define STORE_UNICODE_MAGIC_MARKER 0xFE331188
using
namespace
::
rtl
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
text
;
...
...
@@ -249,6 +251,8 @@ using namespace ::com::sun::star::text;
#define TWIP_TO_MM100(TWIP) ((TWIP) >= 0 ? (((TWIP)*127L+36L)/72L) : (((TWIP)*127L-36L)/72L))
#define MM100_TO_TWIP(MM100) ((MM100) >= 0 ? (((MM100)*72L+63L)/127L) : (((MM100)*72L-63L)/127L))
BOOL
SvxFontItem
::
bEnableStoreUnicodeNames
=
FALSE
;
// STATIC DATA -----------------------------------------------------------
// -----------------------------------------------------------------------
...
...
@@ -476,18 +480,20 @@ SvStream& SvxFontItem::Store( SvStream& rStrm , USHORT nItemVersion ) const
rStrm
<<
(
BYTE
)
GetFamily
()
<<
(
BYTE
)
GetPitch
()
<<
(
BYTE
)(
bToBats
?
RTL_TEXTENCODING_SYMBOL
:
GetSOStoreTextEncoding
(
GetCharSet
(),
(
sal_uInt16
)
rStrm
.
GetVersion
()));
String
aStoreFamilyName
(
GetFamilyName
()
);
if
(
bToBats
)
aStoreFamilyName
=
String
(
"StarBats"
,
sizeof
(
"StarBats"
)
-
1
,
RTL_TEXTENCODING_ASCII_US
);
rStrm
.
WriteByteString
(
aStoreFamilyName
);
rStrm
.
WriteByteString
(
GetStyleName
());
// #96441# Kach for EditEngine, only set while creating clipboard stream.
if
(
bEnableStoreUnicodeNames
)
{
String
sStarBats
(
"StarBats"
,
sizeof
(
"StarBats"
)
-
1
,
RTL_TEXTENCODING_ASCII_US
);
rStrm
.
WriteByteString
(
sStarBats
);
ULONG
nMagic
=
STORE_UNICODE_MAGIC_MARKER
;
rStrm
<<
nMagic
;
rStrm
.
WriteByteString
(
aStoreFamilyName
,
RTL_TEXTENCODING_UNICODE
);
rStrm
.
WriteByteString
(
GetStyleName
(),
RTL_TEXTENCODING_UNICODE
);
}
else
rStrm
.
WriteByteString
(
GetFamilyName
());
// UNICODE: rStrm << GetFamilyName();
// UNICODE: rStrm << GetStyleName();
rStrm
.
WriteByteString
(
GetStyleName
());
return
rStrm
;
}
...
...
@@ -515,6 +521,22 @@ SfxPoolItem* SvxFontItem::Create(SvStream& rStrm, USHORT) const
if
(
RTL_TEXTENCODING_SYMBOL
!=
eFontTextEncoding
&&
aName
.
EqualsAscii
(
"StarBats"
)
)
eFontTextEncoding
=
RTL_TEXTENCODING_SYMBOL
;
// Check if we have stored unicode
ULONG
nStreamPos
=
rStrm
.
Tell
();
ULONG
nMagic
=
STORE_UNICODE_MAGIC_MARKER
;
rStrm
>>
nMagic
;
if
(
nMagic
==
STORE_UNICODE_MAGIC_MARKER
)
{
rStrm
.
ReadByteString
(
aName
,
RTL_TEXTENCODING_UNICODE
);
rStrm
.
ReadByteString
(
aStyle
,
RTL_TEXTENCODING_UNICODE
);
}
else
{
rStrm
.
Seek
(
nStreamPos
);
}
return
new
SvxFontItem
(
(
FontFamily
)
eFamily
,
aName
,
aStyle
,
(
FontPitch
)
eFontPitch
,
(
rtl_TextEncoding
)
eFontTextEncoding
,
Which
()
);
}
...
...
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