libreoffice | build libreoffice , all available language | Document Editor library
kandi X-RAY | libreoffice Summary
kandi X-RAY | libreoffice Summary
Scripts to Download and build libreoffice, all available language and help packs for libreoffice.org.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of libreoffice
libreoffice Key Features
libreoffice Examples and Code Snippets
Community Discussions
Trending Discussions on libreoffice
QUESTION
I'm working on a project to read/write to LibreOffice calc sheets in a c++ application. The code I'm writing include the line #include
In order to get the component context and so on to read/write to the .ods files.
I'm using Fedora Linux 34 with gnome 40 Wayland and code::blocks 20.03. In the project I used the paths /usr/lib64/libreoffice/sdk/include and /usr/lib64/libreoffice/sdk/lib for the headers and libraries respectively. When I try to compile, the project which has nothing more than the include lines, the compiler throws an error saying that there is an error in the types.h header in the line where #if defined(_MSC_VER) evaluates to false.
How to overcome this if I'm using Linux? I installed the SDK in a Linux distro so why the SDK gives this error checking the platform?
Thanks you in advance for the help.
...ANSWER
Answered 2021-Jun-04 at 17:20From the answer to your other post:
QUESTION
The merge portion of my question has been well answered here: https://stackoverflow.com/a/49051988/4272389 which resolved two LineGradients with one line node and the other a path node.
In my situation I have an Open Bezier path and a Line path and am not sure if that answer for LineGradient still applies
...ANSWER
Answered 2021-May-30 at 06:33Paths can have multiple subpaths. So most of the time, you can just append them together, like so:
QUESTION
In the cell A2
I have a surname AARY
followed by an open parenthesis and a forename (Max
.
| A | B
------------------------------------------------------------------
1 | Last name of the artist | First name of the artist
------------------------------------------------------------------
2 | AARY (Max | Here goes the forename 'Max'
I wanted to extract the forename without the parenthesis by using the command =RIGHT(A2,LEN(A2)-SEARCH("(",A2))
,
but I get the Err:508
error in bracketing.
When I add the bracket at the end of the formula, I get the LibreOffice Calc found an error in the formula entered.
Why is this happening?
...ANSWER
Answered 2021-May-29 at 15:45In Excel:
QUESTION
I use datatables and generate an Excel file, with customizations of the output. See fiddle here: https://jsfiddle.net/uo867xbm/
in the row 19 I append the part to freeze the header and the first column :
var freezePanes = '';
This works great when opening the file in LibreOffice but Excel says that the file is damaged. The part seems conform to the OpenXML standard.
...ANSWER
Answered 2021-May-27 at 11:32Excel is fussy about the order of elements in the XML. In your file you have cols
and sheetData
before sheetViews
but according to the ECMA spec sheetViews
should be before the other two:
QUESTION
I'm trying to create a rudimentary glossary macro for a LibreOffice/OpenOffice .odt file. It will go to the end of the document and paste a list of selected words(found by regex) as a unique set (no doubles)
Where I'm falling down is that once the text has been copied to the clipboard, I need to assign the contents to a variable so that I can create a set.
In OpenOffice's implementation of BASIC, how does one assign the contents of the clipboard to a new variable?
To be clear: I don't need the Paste function, I need to manipulate the contents of the clipboard as an Object before calling Paste
A rough draft of what I'm trying to do is:
...ANSWER
Answered 2021-May-21 at 11:51So, as far as I can see the answer is that there isn't a simple built-in way to do this.
However, it is possible by using a custom created function posted here(not mine) https://wiki.documentfoundation.org/Macros/Writer/005
and using that function to assign contents to the variable.
The upper sub here relies on the function defined below it.
QUESTION
I have a LibreOffice Base DB with a form and a table control on it. There is a macro that gets some data to put in the table. The table is not bound to a data source and it has 1 column "id". I try the following code to add a row to empty table:
...ANSWER
Answered 2021-May-15 at 23:54From https://wiki.documentfoundation.org/images/b/b0/BH5009-Macros.pdf:
For a new record there is a special method, comparable with changing to a new row in a table control. This is done as follows:
- Prepare for a new record:
oForm.moveToInsertRow()
- Enter all wanted/required values. This is done using the updateXxx methods as shown in the previous section.
- Confirm the new data with the following command:
oForm.insertRow()
- The new entry cannot be easily reversed. Instead you will have to delete the new record.
EDIT:
Let's start with some background information and then I'll offer a solution.
The method getRowSet()
is misleading, because the table control itself does not have a rowset. Instead, the method gets the rowset of the form that contains the table control.
Unlike list or combo boxes, it seems that table controls that are unbound cannot have data. It's possible to do columnNames = oGridTasksNotDone.ElementNames
but that's about all.
You can create an UNO grid control in a dialog with code such as oGridModel.GridDataModel = oDataModel
, but that will not work in a form.
A Base form document can contain multiple independent forms by going to Form -> Form Navigator. Note that I am not talking about subforms or a different form document, but rather for example "Form1", "Form2" in the navigator. This allows data to be used in the same document that is not necessarily related to each other.
To me, the obvious solution is to create a table "Table2" that will be used only for the table control. As explained in the previous paragraph, create a separate toplevel form "Form2" to handle the table control, and set its recordset source to be Table2. Then a macro can populate the table control:
- delete all records from the recordset of Form2 (which is Table2)
- gather data from Form1 (based on Table1 or Query1 or whatever other data is involved)
- insert rows using the recordset of Form2
Alternatively, if it is required not to use bound controls, you could create Text Tables on the form (Table -> Insert Table) and write macros to insert values into them.
References:
QUESTION
Sorry if my description is long and boring but I want to give you most important details to solve my problem. Recently I bought a Jetson Nano Developer Kit with 4Gb of RAM, finally!, and in order to get, which I consider, the best configuration for object detection I am following this guide made by Adrian Rosebrock from Pyimagesearch:
https://www.pyimagesearch.com/2020/03/25/how-to-configure-your-nvidia-jetson-nano-for-computer-vision-and-deep-learning/ Date:March, 2020. A summary of this guide is the following:
- 1: Flash Jetson Pack 4.2 .img inside a microSD for Jetson Nano(mine is 32GB 'A' Class)
- 2: Once inserted on the Nano board, configure Ubuntu 18.04 and get rid of Libreoffice entirely to get more available space
- 3: Step #5: Install system-level dependencies( Including cmake, python3, and nano editor)
- 4: Update CMake (without any errors)
- 5: Install OpenCV system-level dependencies and other development dependencies
- 6: Set up Python virtual environments on your Jetson Nano( succesfully installed virtualenv and virtualenvwrapper without errors including the bash file edition with nano)
- 7: Create virtaul env with python 3 and install protobuf and libprotobuf to get an more efficient Tensorflow. Succesfully installed. It took an hour to finish, that's normal
- 8: Here comes the headbreaker: install numpy and cython inside this env and check it importing numpy library When I try to do this step I get: Illegal instruction(core dumped) as you can see in the image: [Error with Python3.6.9]: https://i.stack.imgur.com/rAZhm.png
I said, well let's continue with this tutorial anyway:
- 9: Install Scipy v1.3.3: everything is ok with first three lines, but when I have to use python to execute the stup.py file, IT shows up again(not the clown). [Can't execute this line either]: https://i.stack.imgur.com/wFmnt.jpg
Then I ran an experiment, I have created this "p2cv4" env with Python 2, installed numpy and tested it: [With Python 2]: https://i.stack.imgur.com/zCWif.png
I can exit() whenever I want and execute other lines that use python So I concluded that is a python version issue. When I want to execute any python code, terminal ends the program with core dumping, apt-get or pip DO NOT show any errors. And I want to use python 3 because someday in the future a package or library will require python 3.
For python 3 last version for the Jetson Nano is 3.6.9, and idk which version was currently active in March, 2020, like the one Adrian used at that time
In other posts I read that this SIGILL appears when a package or library version like Numpy of TF is not friendly anymore with a specific old or low power CPU, like in this posts: Illegal hardware instruction when trying to import tensorflow, https://github.com/numpy/numpy/issues/9532
So I want to downgrade to a older python version like 3.6.5 or 3.5 but I can't find clear steps to do so in Ubuntu. I thinks this will fix this error and let me continue with configurations on the Jetson Nano.
The pyimageseach guide uses Python 3.6 but it do not specifies if is last 3.6.9 or another. If is not python causing this error let me know. HELP please!
...ANSWER
Answered 2021-Jan-09 at 15:30I had this very same problem following the same guide. BTW, in this scenario, numpy worked just fine in python when NOT in a virtualenv. GDB pointed to a problem in libopenblas.
My solution was to start from scratch with a fresh image of jetson-nano-4gb-jp441-sd-card-image.zip and repeat that guide without using virtualenv. More than likely you are the sole developer on that Nano and can live without virtualenv.
I have followed these guides with success: https://qengineering.eu/install-opencv-4.5-on-jetson-nano.html
Skip the virtualenv portions https://www.pyimagesearch.com/2019/05/06/getting-started-with-the-nvidia-jetson-nano/
I found this to also be required at this point: "..install the official Jetson Nano TensorFlow by.."
QUESTION
I'm nearly there, but stuck at the last hurdle.
...ANSWER
Answered 2021-Apr-25 at 19:42The problem is that lambda can only write on /tmp
, but the default HOME is not /tmp
adding
QUESTION
I need to program something in LibreOffice Basic, but I've never done that before. I just have the basis in python, so it's really new for me. I didn't find any recent documentation, so I'm reading the basic guide from 2010.
But there is a point I really don't understand, They speak about various interface but I don't succeed to understand their interest and when I should call it.
If you can explain it I would love it.
Thank you !
ANSWER
Answered 2021-Apr-24 at 05:53Don't go deeper, no need. To write working code in Basic, you do not need additional information - you just need to know the list of methods of each object, no more. Which interface provided this method to the object shouldn't bother you.
See chapter 3.6.4. Interfaces in Pitonyak's book. The list of available methods is easy to obtain using the MRI or Xray tool extension. MRI is convenient in that after an in-depth study of the object, you immediately get a piece of code ready for use.
(Unfortunately, this extension works extremely unstable with the latest versions of LibreOffice)
Update Video on YouTube
QUESTION
Consider the following assignment:
When I type -
followed by a key
, the result is Ctrl-key
. This work for ordinary keys.
But when the key is whitespace, it does not work.
Any idea why this happens? And how to fix the code?
...ANSWER
Answered 2021-Apr-23 at 22:43Use SendInput
instead.
Tested in Excel to mimic ^a, ^x, ^v, ^space
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install libreoffice
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page