summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2019-08-02 11:47:52 +0200
committerJulien Nabet <serval2412@yahoo.fr>2019-08-03 09:47:55 +0200
commitf7613d2132e8115b7741e9397b111508f24615cc (patch)
tree8fdd0b068ea8579a36156618bbc33d2995345ecc /svx/source/fmcomp
parent3b28713ef82829fd1958d1ecf8c29b7391af78f5 (diff)
Fix typos
Change-Id: Iaf2691b60796300f6c3acf56f60dcc526685eeb9 Reviewed-on: https://gerrit.libreoffice.org/76855 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r--svx/source/fmcomp/fmgridcl.cxx2
-rw-r--r--svx/source/fmcomp/fmgridif.cxx8
-rw-r--r--svx/source/fmcomp/gridctrl.cxx14
3 files changed, 12 insertions, 12 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index 8605f053e07c..6bdc11d34938 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -684,7 +684,7 @@ void FmGridHeader::PreExecuteColumnContextMenu(sal_uInt16 nColId, PopupMenu& rMe
sal_Int32 nColType = xServiceQuestion.is() ? getColumnTypeByModelName(xServiceQuestion->getServiceName()) : 0;
if (nColType == TYPE_TEXTFIELD)
{ // edit fields and formatted fields have the same service name, thus getColumnTypeByModelName returns TYPE_TEXTFIELD
- // in both cases. And as columns don't have an css::lang::XServiceInfo interface, we have to distinguish both
+ // in both cases. And as columns don't have a css::lang::XServiceInfo interface, we have to distinguish both
// types via the existence of special properties
if (xPropSet.is())
{
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index 5a18461de6a2..fb89600530f8 100644
--- a/svx/source/fmcomp/fmgridif.cxx
+++ b/svx/source/fmcomp/fmgridif.cxx
@@ -540,7 +540,7 @@ void SAL_CALL FmXGridControl::createPeer(const Reference< css::awt::XToolkit >&
// forward the design mode
bool bForceAlivePeer = m_bInDraw && !maComponentInfos.bVisible;
// (we force an alive-mode peer if we're in "draw", cause in this case the peer will be used for drawing in
- // foreign devices. We ensure this with the visibility check as an living peer is assumed to be noncritical
+ // foreign devices. We ensure this with the visibility check as a living peer is assumed to be noncritical
// only if invisible)
Any aOldCursorBookmark;
if (!mbDesignMode || bForceAlivePeer)
@@ -1468,8 +1468,8 @@ sal_Bool FmXGridPeer::commit()
void FmXGridPeer::cursorMoved(const EventObject& _rEvent)
{
VclPtr< FmGridControl > pGrid = GetAs< FmGridControl >();
- // we are not interested in move to insert row only in the resetted event
- // which is fired after positioning an the insert row
+ // we are not interested in moving to insert row only in the reset event
+ // which is fired after positioning and the insert row
if (pGrid && pGrid->IsOpen() && !::comphelper::getBOOL(Reference< XPropertySet > (_rEvent.Source, UNO_QUERY_THROW)->getPropertyValue(FM_PROP_ISNEW)))
pGrid->positioned();
}
@@ -2622,7 +2622,7 @@ Sequence< css::util::URL>& FmXGridPeer::getSupportedURLs()
for ( sal_Int32 i = 0; i < tmp.getLength(); ++i, ++pSupported)
pSupported->Complete = OUString::createFromAscii(sSupported[i]);
- // let an css::util::URL-transformer normalize the URLs
+ // let a css::util::URL-transformer normalize the URLs
Reference< css::util::XURLTransformer > xTransformer(
util::URLTransformer::create(::comphelper::getProcessComponentContext()) );
for (css::util::URL & rURL : tmp)
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index 202efac174f4..d30818511578 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -1224,7 +1224,7 @@ namespace
_rMode &= ~BrowserMode( BrowserMode::NO_HSCROLL | BrowserMode::NO_VSCROLL );
}
- // note: if we have a navigation bar, we always have a AUTO_HSCROLL. In particular,
+ // note: if we have a navigation bar, we always have an AUTO_HSCROLL. In particular,
// _bHideScrollbars is ignored then
if ( _bNavigationBar )
{
@@ -1418,7 +1418,7 @@ void DbGridControl::setDataSource(const Reference< XRowSet >& _xCursor, DbGridCo
// is the new cursor valid ?
// the cursor is only valid if it contains some columns
- // if there is no cursor or the cursor is not valid we have to clean up an leave
+ // if there is no cursor or the cursor is not valid we have to clean up and leave
if (!_xCursor.is() || !Reference< XColumnsSupplier > (_xCursor, UNO_QUERY_THROW)->getColumns()->hasElements())
{
RemoveRows();
@@ -1482,7 +1482,7 @@ void DbGridControl::setDataSource(const Reference< XRowSet >& _xCursor, DbGridCo
// (Normally one class would be sufficient : the multiplexer which could forward the property change to us.
// But for that we would have been derived from ::comphelper::OPropertyChangeListener, which isn't exported.
// So we introduce a second class, which is a ::comphelper::OPropertyChangeListener (in the implementation file we know this class)
- // and forwards the property changes to a our special method "DataSourcePropertyChanged".)
+ // and forwards the property changes to our special method "DataSourcePropertyChanged".)
if (m_pDataCursor)
{
m_pDataSourcePropListener = new FmXGridSourcePropListener(this);
@@ -2287,7 +2287,7 @@ sal_Int32 DbGridControl::AlignSeekCursor()
// somewhere) -> retry
m_pSeekCursor->moveToBookmark(m_pDataCursor->getBookmark());
// Now there is still the chance of a failure but it is less likely.
- // The alternative would be an loop until everything is fine - no good solution...
+ // The alternative would be a loop until everything is fine - no good solution...
m_nSeekPos = m_pSeekCursor->getRow() - 1;
}
}
@@ -2714,7 +2714,7 @@ void DbGridControl::DataSourcePropertyChanged(const PropertyChangeEvent& evt)
sal_Int32 nRecordCount = 0;
xSource->getPropertyValue(FM_PROP_ROWCOUNT) >>= nRecordCount;
if (::comphelper::getBOOL(evt.NewValue))
- { // modified state changed from sal_False to sal_True and we're on a insert row
+ { // modified state changed from sal_False to sal_True and we're on an insert row
// -> we've to add a new grid row
if ((nRecordCount == GetRowCount() - 1) && m_xCurrentRow->IsNew())
{
@@ -2724,7 +2724,7 @@ void DbGridControl::DataSourcePropertyChanged(const PropertyChangeEvent& evt)
}
}
else
- { // modified state changed from sal_True to sal_False and we're on a insert row
+ { // modified state changed from sal_True to sal_False and we're on an insert row
// we have two "new row"s at the moment : the one we're editing currently (where the current
// column is the only dirty element) and a "new new" row which is completely clean. As the first
// one is about to be cleaned, too, the second one is obsolete now.
@@ -3007,7 +3007,7 @@ void DbGridControl::Undo()
// remove the row
if (m_nCurrentPos == GetRowCount() - 2)
{ // maybe we already removed it (in resetCurrentRow, called if the above moveToInsertRow
- // caused our data source form to be reset - which should be the usual case ....)
+ // caused our data source form to be reset - which should be the usual case...)
RowRemoved(GetRowCount() - 1);
m_aBar->InvalidateAll(m_nCurrentPos);
}