Code Monkey home page Code Monkey logo

lo-p's People

Contributors

flywire avatar hosseinn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lo-p's Issues

Chapter 5.4.1. Counting Words XWordCursor not XTextWordCursor

There is no XTextWordCursor interface.
Should read:

This uses the same kind of do-while loop as showParagraphs() except that the XTextWordCursor XWordCursor methods gotoEndOfWord() and gotoNextWord() control the iteration. Also, there's no need for an XTextViewCursor instance since the selected words aren't shown on the screen.

Make Markdown compatible with pandoc/LaTeX

The PDF created with Pandoc/LaTeX is nice looking. Currently not all the .md files can be converted to PDF using Pandoc. In order to be able to create PDF from all the .md files, some changes are needed. I've created a pull request #3 to fix this issue.

Chapter 26.3

In second paragraph

The best that can be done is to execute two searches over the grid of animal names. The first looks only for the search string so it can highlight the matching cells. The second search calls XReplaceabl.replaceAll() XReplaceable.replaceAll() to make the changes.

chapter 22, Refering to non-existing figures.

It's probably better to search the online documentation for properties. Cell styles are managed by the TableCellStyle service (see Figure 22 Figure 2) and page styles by the TablePageStyle service (Figure 23 Figure 3). Use lodoc TableCellStyle and lodoc TablePageStyle to access the online information.

Chapter 5.4.2 goRight() not doRight()

Inside the loop, XLineCursor's gotoStartOfLine() and gotoEndOfLine() highlight a single line. Then the XTextViewCursor instance deselects the line, by moving the cursor to the end of the selection with collapseToEnd(). At the end of the loop, goRight() tries to move the cursor one character to the right. If goRight() succeeds then the cursor is shifted one position to the first character of the next line. When the loop repeats, this line will be selected. If doRight() goRight() fails, then there are no more characters to be read from the document, and the loop finishes.

Fix for "Chapter 47. Calc Add-ins: 2.4. Problems with Office Types"

The description of https://bugs.documentfoundation.org/show_bug.cgi?id=152972#c0 “Javamaker fails with "unknown entity"” made me aware of the issue described at https://flywire.github.io/lo-p/47-Calc_Add-ins.html#24-problems-with-office-types, for which the fix should be to reference both the URE types.rdb and the LibreOffice offapi.rdb: In a LibreOffice 7.4 SDK environment on Linux, with the sample file from that section as test.idl,

$ idlc -I"$OO_SDK_HOME/idl" test.idl 
Compiling: test.idl
$ regmerge test.rdb /UCR test.urd 
$ javamaker -X"$OFFICE_PROGRAM_PATH/types.rdb" -X"$OFFICE_PROGRAM_PATH/types/offapi.rdb" test.rdb

successfully generates org/openoffice/doubler/XDoubler.class.

Chapter 23 - Java Code example spelling error.

Line: XViewSplitable viewSplit = Lo.qi(XViewSplitable.class, xController); error.

XController controller = Calc.getController(doc);
XViewSplitable viewSplit = Lo.qi(XViewSplitable.class, xController controller);

Chapter 5.2 incorrect code

The section:

Write.getTextDoc() uses Lo.qi() to cast the document's XComponent interface into an XTextDocument:

Should be followed by:

XTextDocument textDoc = Lo.qi(XTextDocument.class, doc);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.