GRAPH (document property variable)

Writer Help topic Formula lists 7 variables for document properties including GRAPH.

GRAPH doesn’t seem to work.

Looking at the source code (I’m not a coder!) I noticed this:

250          u"graf"_ustr,
...
272          u"graph"_ustr

and tried GRAF. It seems to work correctly. Please see the attached .ods file for more details.
testFILE.odt (231.1 KB)

The question: Is GRAPH operational?

------------ Configuration:
Version: 7.5.9.2 (X86_64) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (pl_PL); UI: en-US
Calc: threaded Jumbo

1 Like

Statistics in Properties of text documents - Variables for document properties
Pages - PAGE
Tables - TABLES
Images - GRAF (not GRAPH)
OLE objects - OLE
Paragraphs - PARA
Words - WORD
Characters - CHAR
Characters excluding spaces
Lines

I see that the GRAF variable matches the Images value in the Statistics. So it seems to be a wording bug (not yet reported).

Version: 7.5.8.2 (X86_64) / LibreOffice Community
Build ID: f718d63693263970429a68f568db6046aaa9df01
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: es-MX (es_ES); UI: en-US
Calc: CL threaded

1 Like