New loplugin:externvar: xmlscript

Change-Id: Ie35e22e464ab71c864e3fba130d1e7946a83086a
This commit is contained in:
Stephan Bergmann
2017-01-09 15:39:11 +01:00
parent a32c0f4a1e
commit 9dbb143c25
3 changed files with 10 additions and 15 deletions

View File

@@ -29,6 +29,15 @@ const sal_Int16 BORDER_3D = 1;
const sal_Int16 BORDER_SIMPLE = 2;
const sal_Int16 BORDER_SIMPLE_COLOR = 3;
struct StringTriple
{
char const * first;
char const * second;
char const * third;
};
extern StringTriple const * const g_pEventTranslations;
}
#define XMLSCRIPT_GRAPHOBJ_URLPREFIX "vnd.sun.star.GraphicObject:"

View File

@@ -1133,14 +1133,6 @@ void ElementDescriptor::readDefaults( bool supportPrintable, bool supportVisible
readStringAttr( "HelpURL", XMLNS_DIALOGS_PREFIX ":help-url" );
}
struct StringTriple
{
char const * first;
char const * second;
char const * third;
};
extern StringTriple const * const g_pEventTranslations;
void ElementDescriptor::readEvents()
{
Reference< script::XScriptEventsSupplier > xSupplier( _xProps, UNO_QUERY );

View File

@@ -1383,12 +1383,6 @@ bool ImportContext::importImageScaleModeProperty(
return false;
}
struct StringTriple
{
char const * first;
char const * second;
char const * third;
};
static StringTriple const s_aEventTranslations[] =
{
// from xmloff/source/forms/formevents.cxx
@@ -1428,7 +1422,7 @@ static StringTriple const s_aEventTranslations[] =
{ "com.sun.star.awt.XAdjustmentListener", "adjustmentValueChanged", "on-adjustmentvaluechange" },
{ nullptr, nullptr, nullptr }
};
extern StringTriple const * const g_pEventTranslations;
StringTriple const * const g_pEventTranslations = s_aEventTranslations;
void ImportContext::importEvents(