Re: [libreoffice-users] Create scan button?
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 On 11/19/2017 07:10 PM, Regina Henschel wrote: > 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 > > James Knott schrieb am 19.11.2017 um 20:38: >> On 11/19/2017 02:14 PM, Robert Großkopf wrote: 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. >> >> 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. >> >> > > -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
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 James Knott schrieb am 19.11.2017 um 20:38: On 11/19/2017 02:14 PM, Robert Großkopf wrote: 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. 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. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
On 11/19/2017 06:31 PM, Remy Gauthier wrote: > 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. > Yep. I even tried one of the icons that came with LO and same thing. Just text, no icon on the tool bar. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: Fwd: [libreoffice-users] Macro Dim Dialog and Control
Sorry, using my phone for this... And off the top of my head... Each object usually supports multiple interfaces... In basic, the actual type does not matter. Names starting with an x refer to an interface. I need to look it up, but I think that the preference was a variant rather than object, but... It may no longer matter The developer who told me this could not remember why it when it mattered And I only had a problem because of it once, and that was years ago. Other languages, like Java, it matters. I'd we had a smarter IDE it might be useful to declare the actual type. Sent from BlueMail On Nov 19, 2017, 5:31 PM, at 5:31 PM, Johnny Rosenbergwrote: >Oops, sorry. I did it again, I accidentally replied privately rather >than >to the list. I'm sorry for that, Robert. > >-- Forwarded message -- >From: Johnny Rosenberg >Date: 2017-11-19 23:19 GMT+01:00 >Subject: Re: [libreoffice-users] Macro Dim Dialog and Control >To: Robert Großkopf > > >2017-11-19 20:00 GMT+01:00 Robert Großkopf > : > >> Hi Jonny, >> > >> > This works, but what about oDlg and oCtl? Are there special data >types >> for >> > them too? The documentation I've found so far doesn't give any >hints at >> > all. I tried this: >> > Dim Dlg As com.sun.star.awt.XDialog ' No error here, >> > ' but next line throws an error: >> > oDlg = CreateUnoDialog(DialogLibraries.Standard.MyDialogue) >> > ' Error: No access to object. >> > 'Invalid usage of the object. >> > ' Well, something like that, it's actually in Swedish. >> >> What is the name of the dialog? Is ist called "MyDialogue"?. > > >No, I actually faked it for this mailing list. The real name is in >Swedish, >so I figured it would be easier for you guys if I picked an English >name >instead, just for this example. But the name isn't the problem anyway. >My >question is if there is an ”extended data type” for dialogs and >controls, >just like there is for sheets (com.sun.star.sheet.XSpreadsheet) and >cells ( >com.sun.star.table.XCell). I searched for and while and thought that >com.sun.star.awt.XDialog could be it for dialogs, but as I said, I got >that >error message. When I used Object, like you do below, everything worked >for >me too, but my question wasn't about getting it working, it was if >there is >such a data type. I'm not doing anything particular, I'm just trying to >learn this new stuff about those ”new data types”, that I enable by >selecting Tools → Options… → LibreOffice → Advanced → Activate >experimental >features, then restart LibreOffice, then Tools → Options… → LibreOffice >→ >Basic IDE options → ☒ Use extended data types (give or take some words >or >phrases, since this is a translation from Swedish). > >When trying to get information I found this page: >https://help.libreoffice.org/Common/Basic_IDE_Options#Use_extended_types > >However, they only provided two examples of those new data types (the >two I >mention above), and there's no link or anything that points to the rest >of >them, so it's pretty useless, unfortunately. > > >> It should >> appear at the left (catalog of objects - don't konwo if this is the >> right name ..) and at the bottom (like the standard "Module1") >> >> Declare the dialog first, out of a sub: >> DIM oDialog0 AS OBJECT >> >> Start the dialog: >> >> SUB Dialog0Start >> DialogLibraries.LoadLibrary("Standard") >> oDialog0 = createUnoDialog(DialogLibraries.Standard.Dialog0) >> oDialog0.Execute() >> END SUB >> >> Name of the dialog is "Dialog0" >> >> End the dialog: >> >> SUB Dialog0Ende >> oDialog0.EndExecute() >> END SUB >> >> >Yes, that's how I used to do it, and it usually work for me too, but >this >wasn't what I asked about. My question is about those new data types, >mentioned on the page I referred to above. > >I'm sorry for my confusing English, which obviously isn't my native >language. >Thanks for replying, though! :) > > >Kind regards > >Johnny Rosenberg > > > >> Regards >> >> Robert >> -- >> Homepage: http://robert.familiegrosskopf.de >> LibreOffice Community: http://robert.familiegrosskopf.de/map_3 >> >> >> -- >> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org >> Problems? >https://www.libreoffice.org/get-help/mailing-lists/how-to-un >> subscribe/ >> Posting guidelines + more: >https://wiki.documentfoundation.org/Netiquette >> List archive: https://listarchives.libreoffice.org/global/users/ >> All messages sent to this list will be publicly archived and cannot >be >> deleted >> > >-- >To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org >Problems? >https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ >Posting guidelines + more: >https://wiki.documentfoundation.org/Netiquette >List archive: https://listarchives.libreoffice.org/global/users/ >All messages sent to this list will be publicly archived and cannot be >deleted -- To unsubscribe
Re: [libreoffice-users] Create scan button?
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. Le dimanche 19 novembre 2017 à 14:55 -0500, James Knott a écrit : > On 11/19/2017 02:52 PM, James Knott wrote: > > On 11/19/2017 02:46 PM, Steve Edmonds wrote: > > > 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. > -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Fwd: [libreoffice-users] Macro Dim Dialog and Control
Oops, sorry. I did it again, I accidentally replied privately rather than to the list. I'm sorry for that, Robert. -- Forwarded message -- From: Johnny RosenbergDate: 2017-11-19 23:19 GMT+01:00 Subject: Re: [libreoffice-users] Macro Dim Dialog and Control To: Robert Großkopf 2017-11-19 20:00 GMT+01:00 Robert Großkopf : > Hi Jonny, > > > > This works, but what about oDlg and oCtl? Are there special data types > for > > them too? The documentation I've found so far doesn't give any hints at > > all. I tried this: > > Dim Dlg As com.sun.star.awt.XDialog ' No error here, > > ' but next line throws an error: > > oDlg = CreateUnoDialog(DialogLibraries.Standard.MyDialogue) > > ' Error: No access to object. > > 'Invalid usage of the object. > > ' Well, something like that, it's actually in Swedish. > > What is the name of the dialog? Is ist called "MyDialogue"?. No, I actually faked it for this mailing list. The real name is in Swedish, so I figured it would be easier for you guys if I picked an English name instead, just for this example. But the name isn't the problem anyway. My question is if there is an ”extended data type” for dialogs and controls, just like there is for sheets (com.sun.star.sheet.XSpreadsheet) and cells ( com.sun.star.table.XCell). I searched for and while and thought that com.sun.star.awt.XDialog could be it for dialogs, but as I said, I got that error message. When I used Object, like you do below, everything worked for me too, but my question wasn't about getting it working, it was if there is such a data type. I'm not doing anything particular, I'm just trying to learn this new stuff about those ”new data types”, that I enable by selecting Tools → Options… → LibreOffice → Advanced → Activate experimental features, then restart LibreOffice, then Tools → Options… → LibreOffice → Basic IDE options → ☒ Use extended data types (give or take some words or phrases, since this is a translation from Swedish). When trying to get information I found this page: https://help.libreoffice.org/Common/Basic_IDE_Options#Use_extended_types However, they only provided two examples of those new data types (the two I mention above), and there's no link or anything that points to the rest of them, so it's pretty useless, unfortunately. > It should > appear at the left (catalog of objects - don't konwo if this is the > right name ..) and at the bottom (like the standard "Module1") > > Declare the dialog first, out of a sub: > DIM oDialog0 AS OBJECT > > Start the dialog: > > SUB Dialog0Start > DialogLibraries.LoadLibrary("Standard") > oDialog0 = createUnoDialog(DialogLibraries.Standard.Dialog0) > oDialog0.Execute() > END SUB > > Name of the dialog is "Dialog0" > > End the dialog: > > SUB Dialog0Ende > oDialog0.EndExecute() > END SUB > > Yes, that's how I used to do it, and it usually work for me too, but this wasn't what I asked about. My question is about those new data types, mentioned on the page I referred to above. I'm sorry for my confusing English, which obviously isn't my native language. Thanks for replying, though! :) Kind regards Johnny Rosenberg > Regards > > Robert > -- > Homepage: http://robert.familiegrosskopf.de > LibreOffice Community: http://robert.familiegrosskopf.de/map_3 > > > -- > To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org > Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-un > subscribe/ > Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette > List archive: https://listarchives.libreoffice.org/global/users/ > All messages sent to this list will be publicly archived and cannot be > deleted > -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
On 11/19/2017 02:52 PM, James Knott wrote: > On 11/19/2017 02:46 PM, Steve Edmonds wrote: >> 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. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
On 11/19/2017 02:46 PM, Steve Edmonds wrote: > 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. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
Could it be anything to do with the image or size of the image. 16x16 px seems small. On 20/11/17 08:38, James Knott wrote: On 11/19/2017 02:14 PM, Robert Großkopf wrote: 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. 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. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
On 11/19/2017 02:14 PM, Robert Großkopf wrote: >> 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. 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. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
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 -- Homepage: http://robert.familiegrosskopf.de LibreOffice Community: http://robert.familiegrosskopf.de/map_3 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
On 11/19/2017 02:08 PM, jorge Rodríguez wrote: > 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" 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. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
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 El 19/11/2017 a las 10:08, James Knott escribió: I occasionally scan documents into LibreOffice with a single sheet scanner. This means for each page I have to click on Insert>Media>Scan>Request. Is it possible to create an icon to run those steps? tnx jk -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Macro Dim Dialog and Control
Hi Jonny, > > This works, but what about oDlg and oCtl? Are there special data types for > them too? The documentation I've found so far doesn't give any hints at > all. I tried this: > Dim Dlg As com.sun.star.awt.XDialog ' No error here, > ' but next line throws an error: > oDlg = CreateUnoDialog(DialogLibraries.Standard.MyDialogue) > ' Error: No access to object. > 'Invalid usage of the object. > ' Well, something like that, it's actually in Swedish. What is the name of the dialog? Is ist called "MyDialogue"?. It should appear at the left (catalog of objects - don't konwo if this is the right name ..) and at the bottom (like the standard "Module1") Declare the dialog first, out of a sub: DIM oDialog0 AS OBJECT Start the dialog: SUB Dialog0Start DialogLibraries.LoadLibrary("Standard") oDialog0 = createUnoDialog(DialogLibraries.Standard.Dialog0) oDialog0.Execute() END SUB Name of the dialog is "Dialog0" End the dialog: SUB Dialog0Ende oDialog0.EndExecute() END SUB Regards Robert -- Homepage: http://robert.familiegrosskopf.de LibreOffice Community: http://robert.familiegrosskopf.de/map_3 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
On 11/19/2017 01:58 PM, James Knott wrote: > On 11/19/2017 01:14 PM, James Knott wrote: >>> 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. This is the icon I used. http://icons.iconarchive.com/icons/custom-icon-design/mono-business-2/16/scanner-icon.png -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
On 11/19/2017 01:14 PM, James Knott wrote: >> 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. -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
On 11/19/2017 01:06 PM, Robert Großkopf wrote: > Hi James, > >> I occasionally scan documents into LibreOffice with a single sheet >> scanner. This means for each page I have to click on >> Insert>Media>Scan>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. > That appears to work, but it's Insert>Request. Now to find a scanner icon. tnx jk -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
[libreoffice-users] Macro Dim Dialog and Control
Hi! I'm experimenting with extended data types in Calc Basic. I found some information about it, which only gave me two different examples without any link or anything to the rest of the ”new” data types available, so I'm searching the best I can, so far coming up with a few ideas that all failed. Without the feature enabled I Dim everything as Object, for instance: Dim oSheet As Object Dim oCell As Object Dim Col As Long, Row As Long: Row = 35 : Col = 42 Dim oDlg As Object Dim oCtl As Object oSheet = ThisComponent.getSheets().getByName("MySheet") oCell = oSheet.getCellByPosition(Col, Row) oDlg = CreateUnoDialog(DialogLibraries.Standard.MyDialogue) oCtl = Dlg.getControl("MyComboBox") With the extended data types enabled, the first two lines would rather look like this: Dim oSheet As com.sun.star.sheet.XSpreadsheet Dim oCell As com.sun.star.table.XCell This works, but what about oDlg and oCtl? Are there special data types for them too? The documentation I've found so far doesn't give any hints at all. I tried this: Dim Dlg As com.sun.star.awt.XDialog ' No error here, ' but next line throws an error: oDlg = CreateUnoDialog(DialogLibraries.Standard.MyDialogue) ' Error: No access to object. 'Invalid usage of the object. ' Well, something like that, it's actually in Swedish. I can still do Dim As Object and it works, but since I'm trying out the new data types this isn't it… Can anyone point me to some kind of reference manual for those new data types? Kind regards Johnny Rosenberg -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [libreoffice-users] Create scan button?
Hi James, > I occasionally scan documents into LibreOffice with a single sheet > scanner. This means for each page I have to click on > Insert>Media>Scan>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 -- Homepage: http://robert.familiegrosskopf.de LibreOffice Community: http://robert.familiegrosskopf.de/map_3 -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
[libreoffice-users] Create scan button?
I occasionally scan documents into LibreOffice with a single sheet scanner. This means for each page I have to click on Insert>Media>Scan>Request. Is it possible to create an icon to run those steps? tnx jk -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted