Fix typos

Change-Id: I5177597a64306b169dbc055eaf780eb9306b7303
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210166
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2026-08-28 09:09:00 +02:00
committed by Julien Nabet
parent 477084eb89
commit 6aba0cf65f
3 changed files with 6 additions and 6 deletions
@@ -145,7 +145,7 @@ void useWriter()
Reference<XTextContent> xTextContent(bookmark, UNO_QUERY_THROW);
xText->insertTextContent(xText->getEnd(), xTextContent, false);
//query BookmarksSupplier
// query BookmarksSupplier
Reference<XBookmarksSupplier> xBookmarksSupplier(xWriterComponent, UNO_QUERY_THROW);
Reference<XNameAccess> xNamedBookmarks = xBookmarksSupplier->getBookmarks();
Any foundBookmark = xNamedBookmarks->getByName("MyUniqueBookmarkName");
@@ -221,7 +221,7 @@ void useCalc()
void useDraw()
{
//create new draw document and insert rectangle shape
// create new draw document and insert rectangle shape
Reference<XComponent> xDrawComponent = newDocComponent("sdraw");
Reference<XDrawPagesSupplier> xDrawPagesSupplier(xDrawComponent, UNO_QUERY_THROW);
@@ -157,7 +157,7 @@ public class HelloTextTableShape {
XTextContent.class, bookmark );
xText.insertTextContent ( xText.getEnd(), xTextContent, false );
//query BookmarksSupplier
// query BookmarksSupplier
XBookmarksSupplier xBookmarksSupplier = (XBookmarksSupplier)UnoRuntime.queryInterface(
XBookmarksSupplier.class, xWriterComponent);
XNameAccess xNamedBookmarks = xBookmarksSupplier.getBookmarks();
@@ -208,7 +208,7 @@ public class HelloTextTableShape {
XIndexAccess.class, sheets);
Object sheet = xIndexedSheets.getByIndex(0);
//get cell A2 in first sheet
// get cell A2 in first sheet
XCellRange xSpreadsheetCells = UnoRuntime.queryInterface(
XCellRange.class, sheet);
XCell xCell = xSpreadsheetCells.getCellByPosition(0,1);
@@ -259,7 +259,7 @@ public class HelloTextTableShape {
protected void useDraw() throws java.lang.Exception {
try {
//create new draw document and insert rectangle shape
// create new draw document and insert rectangle shape
XComponent xDrawComponent = newDocComponent("sdraw");
XDrawPagesSupplier xDrawPagesSupplier =
UnoRuntime.queryInterface(
@@ -259,7 +259,7 @@ public class DocumentHelper
xReturn = UnoRuntime.queryInterface( XDrawPage.class, xPages.getByIndex( 0 ) );
// Note that this is no really error-proof code: If the document model does not support the
// Note that this is not really error-proof code: If the document model does not support the
// XDrawPagesSupplier interface, or if the pages collection returned is empty, this will break.
}