Bug 106101 - Custom Shapes, how to print variable value or show variable value to debug
Summary: Custom Shapes, how to print variable value or show variable value to debug
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shapes
  Show dependency treegraph
 
Reported: 2017-02-20 11:53 UTC by sportegioco
Modified: 2017-07-17 09:56 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
SimplyArrow.odg (10.68 KB, application/vnd.oasis.opendocument.graphics)
2017-02-21 21:38 UTC, sportegioco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sportegioco 2017-02-20 11:53:27 UTC

    
Comment 1 sportegioco 2017-02-20 12:03:53 UTC
It is possible to show the value of a variable when you create a custom shapes? It would be very important to help in debugging.

There is a way to draw something like this:   draw:enhanced-geometry  with a  draw:text-areas and in the text area print the variable value?

...or any other way to show variable or to debug?

Thank you
Comment 2 Regina Henschel 2017-02-20 21:25:36 UTC
This is neither an enhancement request nor a bug report, but a support request. Please use a forum or mailing list for these kind of questions.

Furthermore the question is not clear. What kind of "variable"? What kind of "creating", via macro, via UI? What is the exact situation of "when create"?

You can use a Basic macro and the Basic IDE to examine the shape, and you can save the document in flat file format and look at the stored values with an editor.

The status of this issue is surely not "NEW".
Comment 3 Regina Henschel 2017-02-20 21:26:14 UTC
I forgot: What do you want to "debug"?
Comment 4 sportegioco 2017-02-21 21:38:00 UTC
Created attachment 131402 [details]
SimplyArrow.odg
Comment 5 sportegioco 2017-02-21 21:39:40 UTC
Sorry for mistake in question category,

This is a simple custom shapes, an arrow that have this code:

        <draw:custom-shape draw:name="Arrow" draw:style-name="gr1" draw:text-style-name="P1" 
        draw:layer="layout" svg:width="10cm" svg:height="2cm" svg:x="1cm" svg:y="8cm">
          <text:p />
          <draw:enhanced-geometry svg:viewBox="0 0 6 9" draw:type="non-primitive" 
          draw:modifiers="0 0 6 0" draw:enhanced-path="L $0 $1 $2 $3">
            <draw:handle draw:handle-position="$0 $1" />
            <draw:handle draw:handle-position="$2 $3" />
          </draw:enhanced-geometry>
        </draw:custom-shape>


The question is:       
When i move an handle, is possible to print in real time in the page (... in a text area or in other way)  the value of $0 or $1 or other variable ...if there were like ?f0 ?f1

...like in the example in attachment

Thank you
Comment 6 jan d 2017-03-13 18:35:18 UTC
Related: https://bugs.documentfoundation.org/show_bug.cgi?id=101862

From my experiences with custom shape creation, I can understand the need: Is is very tedious to (mentally) match the appearance of a shape to its numerical coordinates, particularly if they are expressed in variables. 

Allowing to show the variables may be one solution (like debugging with console print statements) there may be other ways, too, like having a live, tabular overview of points in a shape or some firebug-like introspection tools…
Comment 7 sportegioco 2017-03-15 14:50:40 UTC
OK, ma there is now a way to show the variable like a text in the page or in a consol or via macro or in other way?

...and there is a way or a workaround to not show the svg:viewBox but only the draw? 

I have found a workaround that is to set the type at "line-callout-1" and the svg:width="0.001cm" svg:height="0.001cm"

...in this way the svg:viewBox is very small and always under the handle, therefore you can not see

Thank you to reply
Comment 8 Buovjaga 2017-03-16 19:56:22 UTC
sportegioco: check out what the design team has been up to, with Jan D here: http://listarchives.libreoffice.org/global/design/msg08219.html
* Custom Shapes
+ Had a kick-off today
+ http://pad.documentfoundation.org/p/UX-CustomShapes

Jan: I guess it would make sense to involve sportegioco in the custom shapes work somehow as existing users of the feature are pretty rare?
Comment 9 Xisco Faulí 2017-07-17 09:56:51 UTC
I guess we can close this as RESOLVED NOTABUG.
For further questions, please use IRC, or the dev maillinglist