Create scan button?

I occasionally scan documents into LibreOffice with a single sheet
scanner. This means for each page I have to click on

Request. Is it possible to create an icon to run

those steps?

tnx jk

Hi James,

I occasionally scan documents into LibreOffice with a single sheet
scanner. This means for each page I have to click on
>>>Request. Is it possible to create an icon to run
those steps?

Haven't tested, but:
Tools > Customize > Toolbars > Add Command
there:
Category: All categories
Commands: Request

Hasn't any icon, so it would appear with text in the standard toolbar.

You could also add an icon to "Request". Choose the added "Request" and
change the icon. There would appear a dialog with icons.

Regards

Robert

That appears to work, but it's Insert>Request. Now to find a scanner icon.

tnx jk

Curious thing. I found a scanner icon and it shows up in the customize
panel, on the request item, but not on the tool bar.

This is the icon I used.
http://icons.iconarchive.com/icons/custom-icon-design/mono-business-2/16/scanner-icon.png

Hi James and all:

I suggest to use a Macro. If you don't know what it is, is a feature that LibreOffice has to automate the process. It usually run well but sometimes crash. To able you can follow this steps:

1) Menu-Tools-Options-Advanced: There Check box "Enable_Macro Recording"

2) Menu-Tools-Macros-Record Macro: There click and appear a "little box" that meaning that almost all that you do from this time in LibreOffice is recording.

3) After step 2), select Menu-Insert-Image-Scan-Request. Until this you did record those steps to scan. Now click Stop Recording button from "little box"

4) Now appear a windows dialog where you can record the macro with those step you were recording: Select My Macros --> Standard --> New Module--> Named as Scan --> Save --> and click accept to overwrite the main option there.

5) Now Menu-Tools-Macros-Organize Macros-LibreOffice: Appear a Dialog Window where you can see the Macros Library: There select My Macro-Standar and find the macro called "Scan" that you save before.

6) Select Scan Module and then select at right : Assign button
7) Appear new Dialog Window: Here, keep "Standard toolbar", and select Button Add

8) There appear a new dialog window where you can look again : My Macros - Standard. Select "Scan" macro and click Add button

9) Now you can see the "main" item in the list at top. With the arrows you can move to top or down the "main" item (This main item represent your macro where you record the steps.

10) Select "main" item and select Modify Button. There select Rename and input Scan. Accept and now in the same place you can select an icon or let as is with the name "Scan"

11) Close the window dialog and the icon-Scan appear in the tool bar at top at left if you didn't move with arrow. If you move ... you can find along tool bar.

I hope this help,

Regards,

Jorge Rodríguez

Actually, I found a way to create a functioning button, as describe in
another message. At the moment, the problem is getting the button to
display a scanner icon.

Hi James,

Hasn't any icon, so it would appear with text in the standard toolbar.

You could also add an icon to "Request". Choose the added "Request" and
change the icon. There would appear a dialog with icons.

That appears to work, but it's Insert>Request. Now to find a scanner icon.

Curious thing. I found a scanner icon and it shows up in the customize
panel, on the request item, but not on the tool bar.

Could be you have to change it in the toolbar, too. I have only tested
this with a macro I added to a toolbar - so the command couldn't be
found anywhere else.

Regars

Robert

I tried that. When I look at "Visible buttons", the icon is shown,
along with the word Request, but still not on the tool bar.

Could it be anything to do with the image or size of the image. 16x16 px seems small.

According to the Change icon panel, 16x16 is the best size to use.

I even tried one of the included icons, but get the same results. It
doesn't display on the tool bar.

Hi,
I tried to insert the button (using the icon you found), but the only
thing I was able to get is text describing the function of the button.
Never was able to get the icon only. Looks like a bug.
I'm on LO 5.4.2.2, on Linux/Fedora 25.
Rémy Gauthier.

Yep. I even tried one of the icons that came with LO and same thing.
Just text, no icon on the tool bar.

Hi,

adding icons it a little bit tricky. Please try my answer in
https://ask.libreoffice.org/en/question/130416/toolbar-icon-does-not-change-when-replaced/

Kind regards
Regina

That works, sort of. I have to leave the size at small to see the
icon. If I leave it at large or automatic, as originally set, I don't
see it. I'll have to try a different size icon, to see if that helps.
However, it did say 16x16 was the best size.

tnx jk

After a few attemps, I finally got it to work right, with the icon
showing with view set to automatic.

tnx jk

No, the info in the link from Regina did the trick.