incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 119339] New: internal names of documents are not accessible via API
Date Sat, 12 May 2012 08:49:23 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=119339

          Priority: P3
            Bug ID: 119339
          Assignee: ooo-issues@incubator.apache.org
           Summary: internal names of documents are not accessible via API
          Severity: normal
        Issue Type: DEFECT
    Classification: Code
                OS: All
          Reporter: mroellig.news@gmx.net
          Hardware: PC
            Status: CONFIRMED
           Version: AOO 3.4.0
         Component: code
           Product: api

Created attachment 77533
  --> https://issues.apache.org/ooo/attachment.cgi?id=77533&action=edit
internal representation name vs. document title

In a german version of AOO there are a difference between the titles (names) of
new documents (e. g. "Unbenannt 1") and the internal naming ( "Unbenannt1"
without blanks). This difference is seen if one want to copy a sheet from a
document to another. (See attachment.)  For the first view it seems to be a
cosmetically issue.

The problem lays in the fact that the UNO representation of a document doesn't
provide this used internal name. So one can't get or manipulate this
representation name.

fact 1: There is no API command to copy a sheet into another document directly.
(See old discussions like
http://openoffice.markmail.org/message/hfhxqdeokcanh57o. I don't know if this
link will work for you.)
fact 2: The Dispatch-API need this internal name: (args1(0).Value in the
recorded macro)

sub copysheetdispatch
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args1(2) as new com.sun.star.beans.PropertyValue
args1(0).Name = "DocName"
args1(0).Value = "Unbenannt3"
args1(1).Name = "Index"
args1(1).Value = 32767
args1(2).Name = "Copy"
args1(2).Value = true
dispatcher.executeDispatch(document, ".uno:Move", "", 0, args1())
end sub

Now it is the problem: In earlier OOo-Versions the solution was:
argsCopy(0).Value = Doc.DocumentInfo.Title

I don't know since which version of OOo this problem resides.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message