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
f3ec707e
Kaydet (Commit)
f3ec707e
authored
Haz 01, 2001
tarafından
Oliver Specht
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#86941# get/setRubyList: PositionIsAbove added
üst
0a6814b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
unotxvw.cxx
sw/source/ui/uno/unotxvw.cxx
+12
-4
No files found.
sw/source/ui/uno/unotxvw.cxx
Dosyayı görüntüle @
f3ec707e
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: unotxvw.cxx,v $
* $RCSfile: unotxvw.cxx,v $
*
*
* $Revision: 1.
9
$
* $Revision: 1.
10
$
*
*
* last change: $Author: os $ $Date: 2001-0
4-17 08:32:32
$
* last change: $Author: os $ $Date: 2001-0
6-01 10:13:04
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -824,7 +824,7 @@ Sequence< Sequence< PropertyValue > > SwXTextView::getRubyList( sal_Bool bAutoma
...
@@ -824,7 +824,7 @@ Sequence< Sequence< PropertyValue > > SwXTextView::getRubyList( sal_Bool bAutoma
const
String
&
rEntryText
=
pEntry
->
GetText
();
const
String
&
rEntryText
=
pEntry
->
GetText
();
const
SwFmtRuby
&
rAttr
=
pEntry
->
GetRubyAttr
();
const
SwFmtRuby
&
rAttr
=
pEntry
->
GetRubyAttr
();
pRet
[
n
].
realloc
(
4
);
pRet
[
n
].
realloc
(
5
);
PropertyValue
*
pValues
=
pRet
[
n
].
getArray
();
PropertyValue
*
pValues
=
pRet
[
n
].
getArray
();
pValues
[
0
].
Name
=
C2U
(
UNO_NAME_RUBY_BASE_TEXT
);
pValues
[
0
].
Name
=
C2U
(
UNO_NAME_RUBY_BASE_TEXT
);
pValues
[
0
].
Value
<<=
OUString
(
rEntryText
);
pValues
[
0
].
Value
<<=
OUString
(
rEntryText
);
...
@@ -835,6 +835,9 @@ Sequence< Sequence< PropertyValue > > SwXTextView::getRubyList( sal_Bool bAutoma
...
@@ -835,6 +835,9 @@ Sequence< Sequence< PropertyValue > > SwXTextView::getRubyList( sal_Bool bAutoma
SwXStyleFamilies
::
GetProgrammaticName
(
rAttr
.
GetCharFmtName
(),
SFX_STYLE_FAMILY_CHAR
));
SwXStyleFamilies
::
GetProgrammaticName
(
rAttr
.
GetCharFmtName
(),
SFX_STYLE_FAMILY_CHAR
));
pValues
[
3
].
Name
=
C2U
(
UNO_NAME_RUBY_ADJUST
);
pValues
[
3
].
Name
=
C2U
(
UNO_NAME_RUBY_ADJUST
);
pValues
[
3
].
Value
<<=
(
sal_Int16
)
rAttr
.
GetAdjustment
();
pValues
[
3
].
Value
<<=
(
sal_Int16
)
rAttr
.
GetAdjustment
();
pValues
[
4
].
Name
=
C2U
(
UNO_NAME_RUBY_IS_ABOVE
);
sal_Bool
bVal
=
!
rAttr
.
GetPosition
();
pValues
[
4
].
Value
.
setValue
(
&
bVal
,
::
getBooleanCppuType
());
}
}
return
aRet
;
return
aRet
;
}
}
...
@@ -882,7 +885,7 @@ void SAL_CALL SwXTextView::setRubyList(
...
@@ -882,7 +885,7 @@ void SAL_CALL SwXTextView::setRubyList(
pProperties
[
nProp
].
Value
>>=
sTmp
;
pProperties
[
nProp
].
Value
>>=
sTmp
;
String
sName
(
SwXStyleFamilies
::
GetUIName
(
sTmp
,
SFX_STYLE_FAMILY_CHAR
));
String
sName
(
SwXStyleFamilies
::
GetUIName
(
sTmp
,
SFX_STYLE_FAMILY_CHAR
));
sal_uInt16
nPoolId
=
sName
.
Len
()
?
sal_uInt16
nPoolId
=
sName
.
Len
()
?
SwDoc
::
GetPoolId
(
sName
,
GET_POOLID_CHRFMT
)
:
-
1
;
SwDoc
::
GetPoolId
(
sName
,
GET_POOLID_CHRFMT
)
:
0
;
pEntry
->
GetRubyAttr
().
SetCharFmtName
(
sName
);
pEntry
->
GetRubyAttr
().
SetCharFmtName
(
sName
);
pEntry
->
GetRubyAttr
().
SetCharFmtId
(
nPoolId
);
pEntry
->
GetRubyAttr
().
SetCharFmtId
(
nPoolId
);
...
@@ -893,6 +896,11 @@ void SAL_CALL SwXTextView::setRubyList(
...
@@ -893,6 +896,11 @@ void SAL_CALL SwXTextView::setRubyList(
pProperties
[
nProp
].
Value
>>=
nTmp
;
pProperties
[
nProp
].
Value
>>=
nTmp
;
pEntry
->
GetRubyAttr
().
SetAdjustment
(
nTmp
);
pEntry
->
GetRubyAttr
().
SetAdjustment
(
nTmp
);
}
}
else
if
(
!
pProperties
[
nProp
].
Name
.
compareToAscii
(
UNO_NAME_RUBY_IS_ABOVE
.
pName
))
{
sal_Bool
bValue
=
*
(
sal_Bool
*
)
pProperties
[
nProp
].
Value
.
getValue
();
pEntry
->
GetRubyAttr
().
SetPosition
(
bValue
?
0
:
1
);
}
}
}
aList
.
Insert
(
pEntry
,
(
USHORT
)
nPos
);
aList
.
Insert
(
pEntry
,
(
USHORT
)
nPos
);
}
}
...
...
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