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
6c9fc386
Kaydet (Commit)
6c9fc386
authored
Nis 11, 2003
tarafından
Vladimir Glazounov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS vcl07 (1.5.2); FILE ADDED
2003/04/08 14:28:31 obr 1.5.2.1: re-added accessibility workbench
üst
31876ffa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
+73
-0
AccessibleExtendedComponentHandler.java
...est/accessibility/AccessibleExtendedComponentHandler.java
+73
-0
No files found.
toolkit/test/accessibility/AccessibleExtendedComponentHandler.java
0 → 100644
Dosyayı görüntüle @
6c9fc386
import
com.sun.star.uno.UnoRuntime
;
import
drafts.com.sun.star.accessibility.XAccessibleContext
;
import
drafts.com.sun.star.accessibility.XAccessibleExtendedComponent
;
class
AccessibleExtendedComponentHandler
extends
NodeHandler
{
public
NodeHandler
createHandler
(
XAccessibleContext
xContext
)
{
XAccessibleExtendedComponent
xEComponent
=
(
XAccessibleExtendedComponent
)
UnoRuntime
.
queryInterface
(
XAccessibleExtendedComponent
.
class
,
xContext
);
if
(
xEComponent
!=
null
)
return
new
AccessibleExtendedComponentHandler
(
xEComponent
);
else
return
null
;
}
public
AccessibleExtendedComponentHandler
()
{
}
public
AccessibleExtendedComponentHandler
(
XAccessibleExtendedComponent
xEComponent
)
{
if
(
xEComponent
!=
null
)
maChildList
.
setSize
(
0
);
}
private
static
XAccessibleExtendedComponent
getComponent
(
AccTreeNode
aNode
)
{
return
(
XAccessibleExtendedComponent
)
UnoRuntime
.
queryInterface
(
XAccessibleExtendedComponent
.
class
,
aNode
.
getContext
());
}
public
AccessibleTreeNode
createChild
(
AccessibleTreeNode
aParent
,
int
nIndex
)
{
AccessibleTreeNode
aChild
=
null
;
if
(
aParent
instanceof
AccTreeNode
)
{
XAccessibleExtendedComponent
xEComponent
=
getComponent
((
AccTreeNode
)
aParent
);
if
(
xEComponent
!=
null
)
{
int
nColor
;
switch
(
nIndex
)
{
case
0
:
nColor
=
xEComponent
.
getForeground
();
aChild
=
new
StringNode
(
"Depricated Foreground color: R"
+
(
nColor
>>
16
&
0xff
)
+
"G"
+
(
nColor
>>
8
&
0xff
)
+
"B"
+
(
nColor
>>
0
&
0xff
)
+
"A"
+
(
nColor
>>
24
&
0xff
),
aParent
);
break
;
case
1
:
nColor
=
xEComponent
.
getBackground
();
aChild
=
new
StringNode
(
"Depricated Background color: R"
+
(
nColor
>>
16
&
0xff
)
+
"G"
+
(
nColor
>>
8
&
0xff
)
+
"B"
+
(
nColor
>>
0
&
0xff
)
+
"A"
+
(
nColor
>>
24
&
0xff
),
aParent
);
break
;
}
}
}
return
aChild
;
}
}
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