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
35424908
Kaydet (Commit)
35424908
authored
Ara 02, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Uninitialized value
Change-Id: I7794546b22ffe688eeff6349031dd585e38b7ce7
üst
9bda6170
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
28 deletions
+13
-28
acccell.cxx
sw/source/core/access/acccell.cxx
+11
-24
acccell.hxx
sw/source/core/access/acccell.hxx
+2
-4
No files found.
sw/source/core/access/acccell.cxx
Dosyayı görüntüle @
35424908
...
@@ -110,10 +110,15 @@ SwAccessibleCell::SwAccessibleCell( SwAccessibleMap *pInitMap,
...
@@ -110,10 +110,15 @@ SwAccessibleCell::SwAccessibleCell( SwAccessibleMap *pInitMap,
bIsSelected
=
IsSelected
();
bIsSelected
=
IsSelected
();
//Need not assign the pointer of accessible table object to m_pAccTable,
css
::
uno
::
Reference
<
css
::
accessibility
::
XAccessible
>
xTableReference
(
//for it already done in SwAccessibleCell::GetTable(); Former codes:
getAccessibleParent
());
//m_pAccTable= GetTable();
css
::
uno
::
Reference
<
css
::
accessibility
::
XAccessibleContext
>
xContextTable
(
GetTable
();
xTableReference
,
css
::
uno
::
UNO_QUERY
);
SAL_WARN_IF
(
(
!
xContextTable
.
is
()
||
xContextTable
->
getAccessibleRole
()
!=
AccessibleRole
::
TABLE
),
"sw.core"
,
"bad accessible context"
);
m_pAccTable
=
static_cast
<
SwAccessibleTable
*>
(
xTableReference
.
get
());
}
}
sal_Bool
SwAccessibleCell
::
_InvalidateMyCursorPos
()
sal_Bool
SwAccessibleCell
::
_InvalidateMyCursorPos
()
...
@@ -137,7 +142,7 @@ sal_Bool SwAccessibleCell::_InvalidateMyCursorPos()
...
@@ -137,7 +142,7 @@ sal_Bool SwAccessibleCell::_InvalidateMyCursorPos()
if
(
bChanged
)
if
(
bChanged
)
{
{
FireStateChangedEvent
(
AccessibleStateType
::
SELECTED
,
bNew
);
FireStateChangedEvent
(
AccessibleStateType
::
SELECTED
,
bNew
);
if
(
m_pAccTable
)
if
(
m_pAccTable
.
is
()
)
{
{
m_pAccTable
->
AddSelectionCell
(
this
,
bNew
);
m_pAccTable
->
AddSelectionCell
(
this
,
bNew
);
}
}
...
@@ -214,7 +219,7 @@ void SwAccessibleCell::_InvalidateCursorPos()
...
@@ -214,7 +219,7 @@ void SwAccessibleCell::_InvalidateCursorPos()
_InvalidateChildrenCursorPos
(
pTabFrm
);
_InvalidateChildrenCursorPos
(
pTabFrm
);
pTabFrm
=
pTabFrm
->
GetFollow
();
pTabFrm
=
pTabFrm
->
GetFollow
();
}
}
if
(
m_pAccTable
)
if
(
m_pAccTable
.
is
()
)
{
{
m_pAccTable
->
FireSelectionEvent
();
m_pAccTable
->
FireSelectionEvent
();
}
}
...
@@ -527,22 +532,4 @@ void SwAccessibleCell::deselectAccessibleChild(
...
@@ -527,22 +532,4 @@ void SwAccessibleCell::deselectAccessibleChild(
aSelectionHelper
.
deselectAccessibleChild
(
nSelectedChildIndex
);
aSelectionHelper
.
deselectAccessibleChild
(
nSelectedChildIndex
);
}
}
SwAccessibleTable
*
SwAccessibleCell
::
GetTable
()
{
if
(
!
m_pAccTable
)
{
if
(
!
xTableReference
.
is
())
{
xTableReference
=
getAccessibleParent
();
#ifdef OSL_DEBUG_LEVEL
uno
::
Reference
<
XAccessibleContext
>
xContextTable
(
xTableReference
,
uno
::
UNO_QUERY
);
OSL_ASSERT
(
xContextTable
.
is
()
&&
xContextTable
->
getAccessibleRole
()
==
AccessibleRole
::
TABLE
);
#endif
//SwAccessibleTable aTable = *(static_cast<SwAccessibleTable *>(xTable.get()));
}
m_pAccTable
=
static_cast
<
SwAccessibleTable
*>
(
xTableReference
.
get
());
}
return
m_pAccTable
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/core/access/acccell.hxx
Dosyayı görüntüle @
35424908
...
@@ -42,6 +42,8 @@ class SwAccessibleCell : public SwAccessibleContext,
...
@@ -42,6 +42,8 @@ class SwAccessibleCell : public SwAccessibleContext,
sal_Bool
_InvalidateMyCursorPos
();
sal_Bool
_InvalidateMyCursorPos
();
sal_Bool
_InvalidateChildrenCursorPos
(
const
SwFrm
*
pFrm
);
sal_Bool
_InvalidateChildrenCursorPos
(
const
SwFrm
*
pFrm
);
rtl
::
Reference
<
SwAccessibleTable
>
m_pAccTable
;
protected
:
protected
:
// Set states for getAccessibleStateSet.
// Set states for getAccessibleStateSet.
// This drived class additionaly sets SELECTABLE(1) and SELECTED(+)
// This drived class additionaly sets SELECTABLE(1) and SELECTED(+)
...
@@ -155,10 +157,6 @@ public:
...
@@ -155,10 +157,6 @@ public:
sal_Int32
nSelectedChildIndex
)
sal_Int32
nSelectedChildIndex
)
throw
(
::
com
::
sun
::
star
::
lang
::
IndexOutOfBoundsException
,
throw
(
::
com
::
sun
::
star
::
lang
::
IndexOutOfBoundsException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
SwAccessibleTable
*
GetTable
();
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>
xTableReference
;
SwAccessibleTable
*
m_pAccTable
;
};
};
#endif
#endif
...
...
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