Re: [Writer] Macro for "Edit->Links->[Select All]->Break Link

2017-11-15 Thread Jambunathan K
On Sat, Nov 4, 2017 at 9:57 AM, Jambunathan K <kjambunat...@gmail.com>
wrote:

> Hello
>
> Could someone help me with a Basic Macro that does
>
>"Writer Menu->Edit->Links->[Select All]->Break Link"
>
> Jambunathan K.
>


The following macro does the job.

Sub BreakLinks()
   Dim section, sectionNames
   Dim sectionFileLink as new com.sun.star.text.SectionFileLink

   sectionFileLink.FileURL=""

   sSectionNames = ThisComponent.getTextSections().getElementNames()

   For i = 0 To UBound(sSectionNames)
  section = ThisComponent.getTextSections().getByName(sSectionNames(i))
  section.setPropertyValue("FileLink",sectionFileLInk)
   Next
End Sub
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Writer] Macro for "Edit->Links->[Select All]->Break Link

2017-11-03 Thread Jambunathan K
Hello

Could someone help me with a Basic Macro that does

   "Writer Menu->Edit->Links->[Select All]->Break Link"

Jambunathan K.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Writer] Macro for "Edit->Links->[Select All]->Remove Links

2017-11-03 Thread Jambunathan K
Hello

Could someone help me with a Basic Macro that does

   "Edit->Links->[Select All]->Remove Links"

Jambunathan K.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] odt-doc conversion (ODT support in Emacs/Orgmode)

2011-08-06 Thread Jambunathan K

I am a developer adding support for generating OpenDocument Text files
from within Emacs/Orgmode [1]. 

My exporter generates the odt files by dumping xml directly to the
various xml files (i.e, it doesn't rely on any API as such)

I am running in to an issue while converting from odt to Microsoft Word
97 format. The problem is that some sections of the odt file are
differently formatted in word document.

I am attaching three files.

1. lists.org 
   - A text file in Orgmode format. I am attaching this mostly for my
 own future reference. (Bug description can be seen here)

2. lists.odt
   - This file is generated by my own org-odt exporter. The bug
 description (which is seen only with doc file) can be seen in bold.

3. lists.doc

   - This file is generated by doing File-Save As-Microsoft Word
 97/2000/XP(.doc). The description of the bug can be seen in bold
 while opening this file.


 IMPORTANT NOTE: It is important that you close the doc file and
 re-open it all over again within Libre/OpenOffice to see the
 problem behviour.

If someone confirms this as a bug I will file a formal bug report. I
would also appreciate if a temporary workaround is provided in the
meanwhile. (I would prefer workaronds that don't rely on automatic
styles much)

(Please CC me. I am not subscirbed to this list.)

Thanks for your help,
Jambunathan K.

Footnotes: 

[1] Orgmode defines a structured markup for text files (very similar to
markdown or rst)

#+TITLE: lists.org
#+AUTHOR:Jambunathan K
#+EMAIL: kjambunat...@gmail.com
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
#+OPTIONS:   TeX:t LaTeX:dvipng skip:nil d:nil todo:t pri:nil tags:not-in-toc

#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT:

* Lists
** Simple Lists
*** Numbered List

This is a numbered list.

1. L1N1
2. L1N2
3. L1N3

*** A Complex List

1. L1N1: *BUG?: In the odt file, numbering of this item rightly starts at 
1. In the converted doc file, the numbering continues. The list style clearly 
states that the numbering for this level should start at 1*.
   1. L2N2
   2. L2N3
  1. L3N3

 *In the odt file, this paragraph shows up correctly as a third 
level list item. In the converted doc file, this paragraph is formatted as a 
normal paragraph and it not intended to the right level*.

 *One another paragraph exhibiting similar behaviour*.

2. L1N4
   * L2B1
   * L2B2
 - L3B3

 *One another paragraph that is wrongly indented in the doc file*..

 - L3B4
3. L1N5
   1. L2N6
  1. L3N7



lists.odt
Description: lists.odt


lists.doc
Description: lists.doc
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice