Fix typo in code
It passed "make check" on Linux Change-Id: Ide85943961b6f5102294356ff623c6be8d7bc790 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101813 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
committed by
Julien Nabet
parent
7c0009fa74
commit
c26acd15a6
@@ -1387,7 +1387,7 @@ void CallbackFlushHandler::callback(const int type, const char* payload, void* d
|
|||||||
|
|
||||||
void CallbackFlushHandler::queue(const int type, const char* data)
|
void CallbackFlushHandler::queue(const int type, const char* data)
|
||||||
{
|
{
|
||||||
comphelper::ProfileZone aZone("CallbackFlushHander::queue");
|
comphelper::ProfileZone aZone("CallbackFlushHandler::queue");
|
||||||
|
|
||||||
CallbackData aCallbackData(type, (data ? data : "(nil)"));
|
CallbackData aCallbackData(type, (data ? data : "(nil)"));
|
||||||
const std::string& payload = aCallbackData.PayloadString;
|
const std::string& payload = aCallbackData.PayloadString;
|
||||||
@@ -1945,7 +1945,7 @@ bool CallbackFlushHandler::processWindowEvent(CallbackData& aCallbackData)
|
|||||||
|
|
||||||
void CallbackFlushHandler::Invoke()
|
void CallbackFlushHandler::Invoke()
|
||||||
{
|
{
|
||||||
comphelper::ProfileZone aZone("CallbackFlushHander::Invoke");
|
comphelper::ProfileZone aZone("CallbackFlushHandler::Invoke");
|
||||||
|
|
||||||
if (!m_pCallback)
|
if (!m_pCallback)
|
||||||
return;
|
return;
|
||||||
|
@@ -87,9 +87,9 @@ public class OfficeStylesReadHandler extends ElementReadHandler
|
|||||||
return xrh;
|
return xrh;
|
||||||
}
|
}
|
||||||
|
|
||||||
final SectionReadHandler genericReadHander = new SectionReadHandler();
|
final SectionReadHandler genericReadHandler = new SectionReadHandler();
|
||||||
otherStyleChildren.add(genericReadHander);
|
otherStyleChildren.add(genericReadHandler);
|
||||||
return genericReadHander;
|
return genericReadHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -61,13 +61,13 @@ const unsigned int SELECTION_WITH_NUM = 10;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
class SwAccTableSelHander_Impl
|
class SwAccTableSelHandler_Impl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void Unselect( sal_Int32 nRowOrCol, sal_Int32 nExt ) = 0;
|
virtual void Unselect( sal_Int32 nRowOrCol, sal_Int32 nExt ) = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
~SwAccTableSelHander_Impl() {}
|
~SwAccTableSelHandler_Impl() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -89,7 +89,7 @@ class SwAccessibleTableData_Impl
|
|||||||
|
|
||||||
void GetSelection( const Point& rTabPos, const SwRect& rArea,
|
void GetSelection( const Point& rTabPos, const SwRect& rArea,
|
||||||
const SwSelBoxes& rSelBoxes, const SwFrame *pFrame,
|
const SwSelBoxes& rSelBoxes, const SwFrame *pFrame,
|
||||||
SwAccTableSelHander_Impl& rSelHdl,
|
SwAccTableSelHandler_Impl& rSelHdl,
|
||||||
bool bColumns ) const;
|
bool bColumns ) const;
|
||||||
|
|
||||||
// #i77106#
|
// #i77106#
|
||||||
@@ -121,7 +121,7 @@ public:
|
|||||||
|
|
||||||
void GetSelection( sal_Int32 nStart, sal_Int32 nEnd,
|
void GetSelection( sal_Int32 nStart, sal_Int32 nEnd,
|
||||||
const SwSelBoxes& rSelBoxes,
|
const SwSelBoxes& rSelBoxes,
|
||||||
SwAccTableSelHander_Impl& rSelHdl,
|
SwAccTableSelHandler_Impl& rSelHdl,
|
||||||
bool bColumns ) const;
|
bool bColumns ) const;
|
||||||
|
|
||||||
/// @throws lang::IndexOutOfBoundsException
|
/// @throws lang::IndexOutOfBoundsException
|
||||||
@@ -220,7 +220,7 @@ void SwAccessibleTableData_Impl::GetSelection(
|
|||||||
const SwRect& rArea,
|
const SwRect& rArea,
|
||||||
const SwSelBoxes& rSelBoxes,
|
const SwSelBoxes& rSelBoxes,
|
||||||
const SwFrame *pFrame,
|
const SwFrame *pFrame,
|
||||||
SwAccTableSelHander_Impl& rSelHdl,
|
SwAccTableSelHandler_Impl& rSelHdl,
|
||||||
bool bColumns ) const
|
bool bColumns ) const
|
||||||
{
|
{
|
||||||
const SwAccessibleChildSList aList( *pFrame, mrAccMap );
|
const SwAccessibleChildSList aList( *pFrame, mrAccMap );
|
||||||
@@ -296,7 +296,7 @@ const SwFrame *SwAccessibleTableData_Impl::GetCell(
|
|||||||
void SwAccessibleTableData_Impl::GetSelection(
|
void SwAccessibleTableData_Impl::GetSelection(
|
||||||
sal_Int32 nStart, sal_Int32 nEnd,
|
sal_Int32 nStart, sal_Int32 nEnd,
|
||||||
const SwSelBoxes& rSelBoxes,
|
const SwSelBoxes& rSelBoxes,
|
||||||
SwAccTableSelHander_Impl& rSelHdl,
|
SwAccTableSelHandler_Impl& rSelHdl,
|
||||||
bool bColumns ) const
|
bool bColumns ) const
|
||||||
{
|
{
|
||||||
SwRect aArea( mpTabFrame->getFrameArea() );
|
SwRect aArea( mpTabFrame->getFrameArea() );
|
||||||
@@ -410,15 +410,15 @@ void SwAccessibleTableData_Impl::CheckRowAndCol(
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
class SwAccSingleTableSelHander_Impl : public SwAccTableSelHander_Impl
|
class SwAccSingleTableSelHandler_Impl : public SwAccTableSelHandler_Impl
|
||||||
{
|
{
|
||||||
bool m_bSelected;
|
bool m_bSelected;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
inline SwAccSingleTableSelHander_Impl();
|
inline SwAccSingleTableSelHandler_Impl();
|
||||||
|
|
||||||
virtual ~SwAccSingleTableSelHander_Impl() {}
|
virtual ~SwAccSingleTableSelHandler_Impl() {}
|
||||||
|
|
||||||
bool IsSelected() const { return m_bSelected; }
|
bool IsSelected() const { return m_bSelected; }
|
||||||
|
|
||||||
@@ -427,26 +427,26 @@ public:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline SwAccSingleTableSelHander_Impl::SwAccSingleTableSelHander_Impl() :
|
inline SwAccSingleTableSelHandler_Impl::SwAccSingleTableSelHandler_Impl() :
|
||||||
m_bSelected( true )
|
m_bSelected( true )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwAccSingleTableSelHander_Impl::Unselect( sal_Int32, sal_Int32 )
|
void SwAccSingleTableSelHandler_Impl::Unselect( sal_Int32, sal_Int32 )
|
||||||
{
|
{
|
||||||
m_bSelected = false;
|
m_bSelected = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
class SwAccAllTableSelHander_Impl : public SwAccTableSelHander_Impl
|
class SwAccAllTableSelHandler_Impl : public SwAccTableSelHandler_Impl
|
||||||
|
|
||||||
{
|
{
|
||||||
std::vector< bool > m_aSelected;
|
std::vector< bool > m_aSelected;
|
||||||
sal_Int32 m_nCount;
|
sal_Int32 m_nCount;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit SwAccAllTableSelHander_Impl(sal_Int32 nSize)
|
explicit SwAccAllTableSelHandler_Impl(sal_Int32 nSize)
|
||||||
: m_aSelected(nSize, true)
|
: m_aSelected(nSize, true)
|
||||||
, m_nCount(nSize)
|
, m_nCount(nSize)
|
||||||
{
|
{
|
||||||
@@ -455,16 +455,16 @@ public:
|
|||||||
uno::Sequence < sal_Int32 > GetSelSequence();
|
uno::Sequence < sal_Int32 > GetSelSequence();
|
||||||
|
|
||||||
virtual void Unselect( sal_Int32 nRowOrCol, sal_Int32 nExt ) override;
|
virtual void Unselect( sal_Int32 nRowOrCol, sal_Int32 nExt ) override;
|
||||||
virtual ~SwAccAllTableSelHander_Impl();
|
virtual ~SwAccAllTableSelHandler_Impl();
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SwAccAllTableSelHander_Impl::~SwAccAllTableSelHander_Impl()
|
SwAccAllTableSelHandler_Impl::~SwAccAllTableSelHandler_Impl()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Sequence < sal_Int32 > SwAccAllTableSelHander_Impl::GetSelSequence()
|
uno::Sequence < sal_Int32 > SwAccAllTableSelHandler_Impl::GetSelSequence()
|
||||||
{
|
{
|
||||||
OSL_ENSURE( m_nCount >= 0, "underflow" );
|
OSL_ENSURE( m_nCount >= 0, "underflow" );
|
||||||
uno::Sequence < sal_Int32 > aRet( m_nCount );
|
uno::Sequence < sal_Int32 > aRet( m_nCount );
|
||||||
@@ -485,7 +485,7 @@ uno::Sequence < sal_Int32 > SwAccAllTableSelHander_Impl::GetSelSequence()
|
|||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwAccAllTableSelHander_Impl::Unselect( sal_Int32 nRowOrCol,
|
void SwAccAllTableSelHandler_Impl::Unselect( sal_Int32 nRowOrCol,
|
||||||
sal_Int32 nExt )
|
sal_Int32 nExt )
|
||||||
{
|
{
|
||||||
OSL_ENSURE( o3tl::make_unsigned( nRowOrCol ) < m_aSelected.size(),
|
OSL_ENSURE( o3tl::make_unsigned( nRowOrCol ) < m_aSelected.size(),
|
||||||
@@ -924,7 +924,7 @@ uno::Sequence< sal_Int32 > SAL_CALL SwAccessibleTable::getSelectedAccessibleRows
|
|||||||
if( pSelBoxes )
|
if( pSelBoxes )
|
||||||
{
|
{
|
||||||
sal_Int32 nRows = GetTableData().GetRowCount();
|
sal_Int32 nRows = GetTableData().GetRowCount();
|
||||||
SwAccAllTableSelHander_Impl aSelRows( nRows );
|
SwAccAllTableSelHandler_Impl aSelRows( nRows );
|
||||||
|
|
||||||
GetTableData().GetSelection( 0, nRows, *pSelBoxes, aSelRows,
|
GetTableData().GetSelection( 0, nRows, *pSelBoxes, aSelRows,
|
||||||
false );
|
false );
|
||||||
@@ -947,7 +947,7 @@ uno::Sequence< sal_Int32 > SAL_CALL SwAccessibleTable::getSelectedAccessibleColu
|
|||||||
if( pSelBoxes )
|
if( pSelBoxes )
|
||||||
{
|
{
|
||||||
sal_Int32 nCols = GetTableData().GetColumnCount();
|
sal_Int32 nCols = GetTableData().GetColumnCount();
|
||||||
SwAccAllTableSelHander_Impl aSelCols( nCols );
|
SwAccAllTableSelHandler_Impl aSelCols( nCols );
|
||||||
|
|
||||||
GetTableData().GetSelection( 0, nCols, *pSelBoxes, aSelCols, true );
|
GetTableData().GetSelection( 0, nCols, *pSelBoxes, aSelCols, true );
|
||||||
|
|
||||||
@@ -971,7 +971,7 @@ sal_Bool SAL_CALL SwAccessibleTable::isAccessibleRowSelected( sal_Int32 nRow )
|
|||||||
const SwSelBoxes *pSelBoxes = GetSelBoxes();
|
const SwSelBoxes *pSelBoxes = GetSelBoxes();
|
||||||
if( pSelBoxes )
|
if( pSelBoxes )
|
||||||
{
|
{
|
||||||
SwAccSingleTableSelHander_Impl aSelRow;
|
SwAccSingleTableSelHandler_Impl aSelRow;
|
||||||
GetTableData().GetSelection( nRow, nRow+1, *pSelBoxes, aSelRow,
|
GetTableData().GetSelection( nRow, nRow+1, *pSelBoxes, aSelRow,
|
||||||
false );
|
false );
|
||||||
bRet = aSelRow.IsSelected();
|
bRet = aSelRow.IsSelected();
|
||||||
@@ -997,7 +997,7 @@ sal_Bool SAL_CALL SwAccessibleTable::isAccessibleColumnSelected(
|
|||||||
const SwSelBoxes *pSelBoxes = GetSelBoxes();
|
const SwSelBoxes *pSelBoxes = GetSelBoxes();
|
||||||
if( pSelBoxes )
|
if( pSelBoxes )
|
||||||
{
|
{
|
||||||
SwAccSingleTableSelHander_Impl aSelCol;
|
SwAccSingleTableSelHandler_Impl aSelCol;
|
||||||
|
|
||||||
GetTableData().GetSelection( nColumn, nColumn+1, *pSelBoxes, aSelCol,
|
GetTableData().GetSelection( nColumn, nColumn+1, *pSelBoxes, aSelCol,
|
||||||
true );
|
true );
|
||||||
|
Reference in New Issue
Block a user