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
1cc0f307
Kaydet (Commit)
1cc0f307
authored
Şub 17, 2011
tarafından
Ivo Hinkelmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
CWS-TOOLING: integrate CWS gridsort
üst
22e7f369
779f996a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
31 deletions
+26
-31
AccessibleGridControlTable.cxx
accessibility/source/extended/AccessibleGridControlTable.cxx
+2
-4
AccessibleGridControlTableBase.cxx
...bility/source/extended/AccessibleGridControlTableBase.cxx
+4
-1
statemnt.cxx
automation/source/server/statemnt.cxx
+10
-7
Filter.cxx
forms/source/component/Filter.cxx
+7
-7
Filter.hxx
forms/source/component/Filter.hxx
+0
-1
richtextcontrol.cxx
forms/source/richtext/richtextcontrol.cxx
+1
-1
richtextcontrol.hxx
forms/source/richtext/richtextcontrol.hxx
+0
-4
navbarcontrol.cxx
forms/source/solar/component/navbarcontrol.cxx
+2
-2
navbarcontrol.hxx
forms/source/solar/component/navbarcontrol.hxx
+0
-4
No files found.
accessibility/source/extended/AccessibleGridControlTable.cxx
Dosyayı görüntüle @
1cc0f307
...
...
@@ -245,8 +245,7 @@ void SAL_CALL AccessibleGridControlTable::selectAccessibleChild( sal_Int32 nChil
ensureIsValidIndex
(
nChildIndex
);
sal_Int32
nColumns
=
m_aTable
.
GetColumnCount
();
sal_Int32
nRow
=
(
nChildIndex
/
nColumns
);
std
::
vector
<
sal_Int32
>
selectedRows
=
m_aTable
.
GetSelectedRows
();
selectedRows
.
push_back
(
nRow
);
m_aTable
.
SelectRow
(
nRow
,
sal_True
);
}
sal_Bool
SAL_CALL
AccessibleGridControlTable
::
isAccessibleChildSelected
(
sal_Int32
nChildIndex
)
throw
(
lang
::
IndexOutOfBoundsException
,
uno
::
RuntimeException
)
...
...
@@ -265,8 +264,7 @@ void SAL_CALL AccessibleGridControlTable::clearAccessibleSelection()
TCSolarGuard
aSolarGuard
;
::
osl
::
MutexGuard
aGuard
(
getOslMutex
()
);
ensureIsAlive
();
for
(
unsigned
int
i
=
0
;
i
<
m_aTable
.
GetSelectedRows
().
size
();
i
++
)
m_aTable
.
RemoveSelectedRow
((
sal_Int32
)
i
);
m_aTable
.
SelectAllRows
(
false
);
}
void
SAL_CALL
AccessibleGridControlTable
::
selectAllAccessibleChildren
()
throw
(
uno
::
RuntimeException
)
...
...
accessibility/source/extended/AccessibleGridControlTableBase.cxx
100755 → 100644
Dosyayı görüntüle @
1cc0f307
...
...
@@ -245,7 +245,10 @@ sal_Int32 AccessibleGridControlTableBase::implGetChildIndex(
void
AccessibleGridControlTableBase
::
implGetSelectedRows
(
Sequence
<
sal_Int32
>&
rSeq
)
{
rSeq
=
comphelper
::
containerToSequence
(
m_aTable
.
GetSelectedRows
());
sal_Int32
const
selectionCount
(
m_aTable
.
GetSelectedRowCount
()
);
rSeq
.
realloc
(
selectionCount
);
for
(
sal_Int32
i
=
0
;
i
<
selectionCount
;
++
i
)
rSeq
[
i
]
=
m_aTable
.
GetSelectedRowIndex
(
i
);
}
void
AccessibleGridControlTableBase
::
ensureIsValidRow
(
sal_Int32
nRow
)
...
...
automation/source/server/statemnt.cxx
Dosyayı görüntüle @
1cc0f307
...
...
@@ -82,6 +82,7 @@
#include <svtools/valueset.hxx>
#include <svtools/roadmap.hxx>
#include <svtools/table/tablecontrol.hxx>
#include <svtools/table/tablecontrolinterface.hxx>
#include <svl/poolitem.hxx>
#include <svtools/extensionlistbox.hxx>
// Hat keinen Includeschutz
...
...
@@ -6111,7 +6112,8 @@ protected:
ValueOK
(
aUId
,
MethodString
(
nMethodId
),
nNr2
,
pTC
->
GetRowCount
()
))
{
::
svt
::
table
::
PTableModel
pModel
=
pTC
->
GetModel
();
Any
aCell
=
pModel
->
getCellContent
()[
nNr2
-
1
][
nNr1
-
1
];
Any
aCell
;
pModel
->
getCellContent
(
nNr1
-
1
,
nNr2
-
1
,
aCell
);
pRet
->
GenReturn
(
RET_Value
,
aUId
,
String
(
aCell
.
getValueTypeName
()
));
}
}
...
...
@@ -6122,7 +6124,8 @@ protected:
ValueOK
(
aUId
,
MethodString
(
nMethodId
),
nNr2
,
pTC
->
GetRowCount
()
))
{
::
svt
::
table
::
PTableModel
pModel
=
pTC
->
GetModel
();
Any
aCell
=
pModel
->
getCellContent
()[
nNr2
-
1
][
nNr1
-
1
];
Any
aCell
;
pModel
->
getCellContent
(
nNr1
-
1
,
nNr2
-
1
,
aCell
);
/* doesn't work ATM since it gets casted to SbxDATE in VCLTestTool unfortunately
SbxVariableRef xRes = new SbxVariable( SbxVARIANT );
unoToSbxValue( xRes, aCell );
...
...
@@ -6206,7 +6209,7 @@ protected:
Point
aPos
(
aSize
.
Width
()
/
2
,
aSize
.
Height
()
/
2
);
long
nStep
=
aSize
.
Height
()
/
4
;
::
svt
::
table
::
RowPos
nLastPos
;
while
(
(
nLastPos
=
pTC
->
GetCurrentRow
(
aPos
)
)
!=
nNr1
-
1
&&
nStep
>
0
)
while
(
(
nLastPos
=
pTC
->
getTableControlInterface
().
hitTest
(
aPos
).
nRow
)
!=
nNr1
-
1
&&
nStep
>
0
)
{
if
(
nLastPos
>
nNr1
-
1
||
nLastPos
==
ROW_INVALID
)
aPos
.
Y
()
-=
nStep
;
...
...
@@ -6214,7 +6217,7 @@ protected:
aPos
.
Y
()
+=
nStep
;
nStep
/=
2
;
}
if
(
pTC
->
GetCurrentRow
(
aPos
)
==
nNr1
-
1
)
if
(
pTC
->
getTableControlInterface
().
hitTest
(
aPos
).
nRow
==
nNr1
-
1
)
{
MouseEvent
aMEvnt
(
aPos
,
1
,
MOUSE_SIMPLECLICK
|
MOUSE_SELECT
,
MOUSE_LEFT
,
KEY_MOD1
);
pTC
->
getSelEngine
()
->
SelMouseButtonDown
(
aMEvnt
);
...
...
@@ -6231,13 +6234,13 @@ protected:
}
break
;
case
M_GetSelCount
:
pRet
->
GenReturn
(
RET_Value
,
aUId
,
comm_USHORT
(
pTC
->
GetSelectedRow
s
().
size
()
));
pRet
->
GenReturn
(
RET_Value
,
aUId
,
comm_USHORT
(
pTC
->
GetSelectedRow
Count
()
));
break
;
case
M_GetSelIndex
:
if
(
!
(
nParams
&
PARAM_USHORT_1
)
)
nNr1
=
1
;
if
(
ValueOK
(
aUId
,
CUniString
(
"GetSelIndex"
),
nNr1
,
pTC
->
GetSelectedRow
s
().
size
()
)
)
pRet
->
GenReturn
(
RET_Value
,
aUId
,
comm_USHORT
(
pTC
->
GetSelectedRow
s
()[
nNr1
-
1
]
+
1
)
);
if
(
ValueOK
(
aUId
,
CUniString
(
"GetSelIndex"
),
nNr1
,
pTC
->
GetSelectedRow
Count
()
)
)
pRet
->
GenReturn
(
RET_Value
,
aUId
,
comm_USHORT
(
pTC
->
GetSelectedRow
Index
(
nNr1
-
1
)
+
1
)
);
break
;
/* case M_GetSelText :
if ( ! (nParams & PARAM_USHORT_1) )
...
...
forms/source/component/Filter.cxx
Dosyayı görüntüle @
1cc0f307
...
...
@@ -104,8 +104,8 @@ namespace frm
//=====================================================================
//---------------------------------------------------------------------
OFilterControl
::
OFilterControl
(
const
Reference
<
XMultiServiceFactory
>&
_rxORB
)
:
m_aTextListeners
(
*
this
)
,
m_a
Context
(
_rxORB
)
:
UnoControl
(
_rxORB
)
,
m_a
TextListeners
(
*
this
)
,
m_aParser
(
_rxORB
)
,
m_nControlClass
(
FormComponentType
::
TEXTFIELD
)
,
m_bFilterList
(
sal_False
)
...
...
@@ -132,11 +132,11 @@ namespace frm
if
(
!
m_xFormatter
.
is
()
)
{
// we can create one from the connection, if it's an SDB connection
Reference
<
XNumberFormatsSupplier
>
xFormatSupplier
=
::
dbtools
::
getNumberFormats
(
m_xConnection
,
sal_True
,
m
_
aContext
.
getLegacyServiceFactory
()
);
Reference
<
XNumberFormatsSupplier
>
xFormatSupplier
=
::
dbtools
::
getNumberFormats
(
m_xConnection
,
sal_True
,
maContext
.
getLegacyServiceFactory
()
);
if
(
xFormatSupplier
.
is
()
)
{
m
_
aContext
.
createComponent
(
"com.sun.star.util.NumberFormatter"
,
m_xFormatter
);
maContext
.
createComponent
(
"com.sun.star.util.NumberFormatter"
,
m_xFormatter
);
if
(
m_xFormatter
.
is
()
)
m_xFormatter
->
attachNumberFormatsSupplier
(
xFormatSupplier
);
}
...
...
@@ -354,7 +354,7 @@ namespace frm
sItemText
=
itemPos
->
second
;
if
(
sItemText
.
getLength
()
)
{
::
dbtools
::
OPredicateInputController
aPredicateInput
(
m
_
aContext
.
getLegacyServiceFactory
(),
m_xConnection
,
getParseContext
()
);
::
dbtools
::
OPredicateInputController
aPredicateInput
(
maContext
.
getLegacyServiceFactory
(),
m_xConnection
,
getParseContext
()
);
::
rtl
::
OUString
sErrorMessage
;
OSL_VERIFY
(
aPredicateInput
.
normalizePredicateString
(
sItemText
,
m_xField
,
&
sErrorMessage
)
);
}
...
...
@@ -539,7 +539,7 @@ namespace frm
aNewText
.
trim
();
if
(
aNewText
.
getLength
()
)
{
::
dbtools
::
OPredicateInputController
aPredicateInput
(
m
_
aContext
.
getLegacyServiceFactory
(),
m_xConnection
,
getParseContext
()
);
::
dbtools
::
OPredicateInputController
aPredicateInput
(
maContext
.
getLegacyServiceFactory
(),
m_xConnection
,
getParseContext
()
);
::
rtl
::
OUString
sErrorMessage
;
if
(
!
aPredicateInput
.
normalizePredicateString
(
aNewText
,
m_xField
,
&
sErrorMessage
)
)
{
...
...
@@ -743,7 +743,7 @@ namespace frm
static
::
rtl
::
OUString
s_sDialogServiceName
=
::
rtl
::
OUString
::
createFromAscii
(
"com.sun.star.sdb.ErrorMessageDialog"
);
Reference
<
XExecutableDialog
>
xErrorDialog
(
m
_
aContext
.
createComponentWithArguments
(
s_sDialogServiceName
,
aArgs
),
UNO_QUERY
);
Reference
<
XExecutableDialog
>
xErrorDialog
(
maContext
.
createComponentWithArguments
(
s_sDialogServiceName
,
aArgs
),
UNO_QUERY
);
if
(
xErrorDialog
.
is
()
)
xErrorDialog
->
execute
();
else
...
...
forms/source/component/Filter.hxx
Dosyayı görüntüle @
1cc0f307
...
...
@@ -68,7 +68,6 @@ namespace frm
{
TextListenerMultiplexer
m_aTextListeners
;
::
comphelper
::
ComponentContext
m_aContext
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
m_xField
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
util
::
XNumberFormatter
>
m_xFormatter
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XConnection
>
m_xConnection
;
...
...
forms/source/richtext/richtextcontrol.cxx
Dosyayı görüntüle @
1cc0f307
...
...
@@ -109,7 +109,7 @@ namespace frm
DBG_NAME
(
ORichTextControl
)
//------------------------------------------------------------------
ORichTextControl
::
ORichTextControl
(
const
Reference
<
XMultiServiceFactory
>&
_rxORB
)
:
m_xORB
(
_rxORB
)
:
UnoEditControl
(
_rxORB
)
{
DBG_CTOR
(
ORichTextControl
,
NULL
);
}
...
...
forms/source/richtext/richtextcontrol.hxx
Dosyayı görüntüle @
1cc0f307
...
...
@@ -59,10 +59,6 @@ namespace frm
class
ORichTextControl
:
public
UnoEditControl
,
public
ORichTextControl_Base
{
private
:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xORB
;
public
:
ORichTextControl
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
_rxORB
...
...
forms/source/solar/component/navbarcontrol.cxx
Dosyayı görüntüle @
1cc0f307
...
...
@@ -106,7 +106,7 @@ namespace frm
DBG_NAME
(
ONavigationBarControl
)
//------------------------------------------------------------------
ONavigationBarControl
::
ONavigationBarControl
(
const
Reference
<
XMultiServiceFactory
>&
_rxORB
)
:
m_xORB
(
_rxORB
)
:
UnoControl
(
_rxORB
)
{
DBG_CTOR
(
ONavigationBarControl
,
NULL
);
}
...
...
@@ -181,7 +181,7 @@ namespace frm
}
// create the peer
ONavigationBarPeer
*
pPeer
=
ONavigationBarPeer
::
Create
(
m
_xORB
,
pParentWin
,
getModel
()
);
ONavigationBarPeer
*
pPeer
=
ONavigationBarPeer
::
Create
(
m
aContext
.
getLegacyServiceFactory
()
,
pParentWin
,
getModel
()
);
DBG_ASSERT
(
pPeer
,
"ONavigationBarControl::createPeer: invalid peer returned!"
);
if
(
pPeer
)
// by definition, the returned component is aquired once
...
...
forms/source/solar/component/navbarcontrol.hxx
Dosyayı görüntüle @
1cc0f307
...
...
@@ -56,10 +56,6 @@ namespace frm
:
public
UnoControl
,
public
ONavigationBarControl_Base
{
private
:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xORB
;
public
:
ONavigationBarControl
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
_rxORB
...
...
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