Commit 7a7c932e authored by Albert Astals Cid's avatar Albert Astals Cid

Add a way to get the fully qualified name

parent e001871d
/* poppler-form.h: qt4 interface to poppler
* Copyright (C) 2007-2008, 2011, Pino Toscano <pino@kde.org>
* Copyright (C) 2008, Albert Astals Cid <aacid@kde.org>
* Copyright (C) 2008, 2011, Albert Astals Cid <aacid@kde.org>
* Copyright (C) 2011 Carlos Garcia Campos <carlosgc@gnome.org>
*
* This program is free software; you can redistribute it and/or modify
......@@ -134,6 +134,16 @@ QString FormField::name() const
return name;
}
QString FormField::fullyQualifiedName() const
{
QString name;
if (GooString *goo = m_formData->fm->getFullyQualifiedName())
{
name = QString::fromLatin1(goo->getCString());
}
return name;
}
QString FormField::uiName() const
{
QString name;
......
/* poppler-form.h: qt4 interface to poppler
* Copyright (C) 2007-2008, Pino Toscano <pino@kde.org>
* Copyright (C) 2008, Albert Astals Cid <aacid@kde.org>
* Copyright (C) 2008, 2011, Albert Astals Cid <aacid@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -76,6 +76,12 @@ namespace Poppler {
The internal name of the field.
*/
QString name() const;
/**
The internal fully qualified name of the field.
\since 0.18
*/
QString fullyQualifiedName() const;
/**
The name of the field to be used in user interface (eg messages to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment