office-gobmx/sw/inc/swdll.hxx
Michael Stahl 125cbcbe6b sw: fix htmlexport test failure
Somehow this test failed on Windows, because of restoring a "NONE" field
unit to SW_MOD()... apparently the "charborder.odt" test is run first,
and preTest() sees a null SW_MOD() then postTest restores a NONE metric.

Hack around that by calling SwGlobals::ensure() to create SW_MOD().

Change-Id: I6c0cda3aae397071bca16bf0e5d9f8105635550f
2014-08-28 21:55:14 +02:00

43 lines
1.4 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_SWDLL_HXX
#define INCLUDED_SW_INC_SWDLL_HXX
#include <sfx2/sfxdefs.hxx>
#include <sfx2/module.hxx>
#include <swdllapi.h>
namespace sw { class Filters; }
/**
* This class is a wrapper for a Load-On-Demand-DLL. One instance
* per SfxApplication will be created for the runtime of
* SfxApplication-subclass::Main().
*/
namespace SwGlobals
{
void SW_DLLPUBLIC ensure();
sw::Filters & getFilters();
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */