Fix typos
Change-Id: Ifc4510ef74eee9956e5bd704198e9558118e27eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209920 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
committed by
Julien Nabet
parent
f4007f4829
commit
eb53a3fbc7
@@ -60,7 +60,7 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > SwXMLBodyContentContex
|
||||
|
||||
void SwXMLBodyContentContext_Impl::endFastElement(sal_Int32 )
|
||||
{
|
||||
/* Code moved to SwXMLOmport::endDocument */
|
||||
/* Code moved to SwXMLImport::endDocument */
|
||||
GetImport().GetTextImport()->SetOutlineStyles( false );
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ static uno::Reference< container::XIndexAccess > lcl_getAddinCollection( const u
|
||||
uno::Reference< lang::XMultiComponentFactory > xMCF( xContext->getServiceManager(), uno::UNO_SET_THROW );
|
||||
uno::Reference<ucb::XSimpleFileAccess3> xSFA(ucb::SimpleFileAccess::create(xContext));
|
||||
SvtPathOptions aPathOpt;
|
||||
// FIXME: temporary the STARTUP path is located in $OO/basic3.1/program/addin
|
||||
// FIXME: temporarily the STARTUP path is located in $OO/basic3.1/program/addin
|
||||
const OUString& aAddinPath = aPathOpt.GetAddinPath();
|
||||
SAL_INFO("sw.vba", "lcl_getAddinCollection: " << aAddinPath );
|
||||
if( xSFA->isFolder( aAddinPath ) )
|
||||
@@ -49,7 +49,7 @@ static uno::Reference< container::XIndexAccess > lcl_getAddinCollection( const u
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: second get the customize addins in the org.openoffice.Office.Writer/GlobalTemplateList
|
||||
// TODO: second get the customized addins in the org.openoffice.Office.Writer/GlobalTemplateList
|
||||
|
||||
uno::Reference< container::XIndexAccess > xAddinsAccess( new XNamedObjectCollectionHelper< word::XAddin >( std::move(aAddins) ) );
|
||||
return xAddinsAccess;
|
||||
|
||||
@@ -176,7 +176,7 @@ SwVbaBookmarks::Add( const OUString& rName, const uno::Any& rRange )
|
||||
xTextRange.set( word::getXTextViewCursor( mxModel ), uno::UNO_QUERY_THROW );
|
||||
}
|
||||
|
||||
// remove the exist bookmark
|
||||
// remove the existing bookmark
|
||||
if( m_xNameAccess->hasByName( rName ) )
|
||||
removeBookmarkByName( rName );
|
||||
|
||||
@@ -194,7 +194,7 @@ SwVbaBookmarks::getDefaultSorting()
|
||||
void SAL_CALL
|
||||
SwVbaBookmarks::setDefaultSorting( sal_Int32/* _type*/ )
|
||||
{
|
||||
// not support in Writer
|
||||
// not supported in Writer
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL
|
||||
@@ -206,7 +206,7 @@ SwVbaBookmarks::getShowHidden()
|
||||
void SAL_CALL
|
||||
SwVbaBookmarks::setShowHidden( sal_Bool /*_hidden*/ )
|
||||
{
|
||||
// not support in Writer
|
||||
// not supported in Writer
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL
|
||||
|
||||
@@ -57,10 +57,10 @@ double SwVbaInformationHelper::handleWdVerticalPositionRelativeToPage( const rtl
|
||||
SwDoc* pDoc = xModel->GetDocShell()->GetDoc();
|
||||
SwViewShell* pViewSh = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell();
|
||||
sal_Int32 nPageHeight = pViewSh ? pViewSh->GetPageSize( nCurrentPage, false ).Height() : 0;
|
||||
// FIXME: handle multiple page style
|
||||
// it is very strange that the cursor position is incorrect when open Word file.
|
||||
// e.g. if current cursor in the top left of the text body of the first page without header,
|
||||
// the top value of current position should be 0, but is 201 when open a Word file.
|
||||
// FIXME: handle multiple page styles
|
||||
// it is very strange that the cursor position is incorrect when opening a Word file.
|
||||
// e.g. if current cursor is in the top left of the text body of the first page without header,
|
||||
// the top value of current position should be 0, but is 201 when opening a Word file.
|
||||
nCurrentPos = nCurrentPos + nTopMargin - ( DEFAULT_PAGE_DISTANCE + convertTwipToMm100( nPageHeight ) ) * ( nCurrentPage - 1 );
|
||||
return Millimeter::getInPoints( nCurrentPos );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user