Bugzilla – Attachment 170798 Details for
Bug 141307
Crash in: SvtBroadcaster::Add (probably a basic macro issue)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
the "faulty" macro
Module1.xba (text/html), 1.01 KB, created by
hugotrip@free.fr
on 2021-03-28 21:40:31 UTC
(
hide
)
Description:
the "faulty" macro
Filename:
MIME Type:
Creator:
hugotrip@free.fr
Created:
2021-03-28 21:40:31 UTC
Size:
1.01 KB
patch
obsolete
><?xml version="1.0" encoding="UTF-8"?> ><!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> ><script:module xmlns:script="http://openoffice.org/2000/script" script:name="Module1" script:language="StarBasic">REM ***** BASIC ***** > >Sub Main > >End Sub > >Sub SwitchProf > pFamilies = ThisComponent.StyleFamilies.getByName("ParagraphStyles") > pStyle = pFamilies.getByName("Prof") > cFamilies = ThisComponent.StyleFamilies.getByName("CharacterStyles") > cStyle = cFamilies.getByName("Prof") > If pStyle.CharHidden = True Then > pStyle.CharHidden = 0 > cStyle.CharHidden = 0 > Else > pStyle.CharHidden = 1 > cStyle.CharHidden = 1 > End If >End Sub > >Sub SwitchEleve > pFamilies = ThisComponent.StyleFamilies.getByName("ParagraphStyles") > pStyle = pFamilies.getByName("txt à trous élève") > If pStyle.CharHidden = True Then > pStyle.CharHidden = 0 > Else > pStyle.CharHidden = 1 > End If >End Sub ></script:module>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Module1" script:language="StarBasic">REM ***** BASIC ***** Sub Main End Sub Sub SwitchProf pFamilies = ThisComponent.StyleFamilies.getByName("ParagraphStyles") pStyle = pFamilies.getByName("Prof") cFamilies = ThisComponent.StyleFamilies.getByName("CharacterStyles") cStyle = cFamilies.getByName("Prof") If pStyle.CharHidden = True Then pStyle.CharHidden = 0 cStyle.CharHidden = 0 Else pStyle.CharHidden = 1 cStyle.CharHidden = 1 End If End Sub Sub SwitchEleve pFamilies = ThisComponent.StyleFamilies.getByName("ParagraphStyles") pStyle = pFamilies.getByName("txt à trous élève") If pStyle.CharHidden = True Then pStyle.CharHidden = 0 Else pStyle.CharHidden = 1 End If End Sub </script:module>
View Attachment As Raw
Actions:
View
Attachments on
bug 141307
: 170798 |
170816