CWS-TOOLING: integrate CWS sb118
This commit is contained in:
@@ -27,7 +27,10 @@
|
|||||||
|
|
||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
#include "cppunit/plugin/TestPlugIn.h"
|
||||||
|
|
||||||
#include <basegfx/vector/b2isize.hxx>
|
#include <basegfx/vector/b2isize.hxx>
|
||||||
#include <basegfx/point/b2ipoint.hxx>
|
#include <basegfx/point/b2ipoint.hxx>
|
||||||
@@ -291,13 +294,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(BasicTest, "BasicTest");
|
CPPUNIT_TEST_SUITE_REGISTRATION(BasicTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CPPUNIT_PLUGIN_IMPLEMENT();
|
||||||
// -----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// this macro creates an empty function, which will called by the RegisterAllFunctions()
|
|
||||||
// to let the user the possibility to also register some functions by hand.
|
|
||||||
NOADDITIONAL;
|
|
||||||
|
|
||||||
|
@@ -27,7 +27,9 @@
|
|||||||
|
|
||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
|
||||||
#include <basegfx/vector/b2isize.hxx>
|
#include <basegfx/vector/b2isize.hxx>
|
||||||
#include <basegfx/range/b2irange.hxx>
|
#include <basegfx/range/b2irange.hxx>
|
||||||
@@ -177,7 +179,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(BmpMaskTest, "BmpMaskTest");
|
CPPUNIT_TEST_SUITE_REGISTRATION(BmpMaskTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -27,7 +27,9 @@
|
|||||||
|
|
||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
|
||||||
#include <basegfx/vector/b2isize.hxx>
|
#include <basegfx/vector/b2isize.hxx>
|
||||||
#include <basegfx/range/b2irange.hxx>
|
#include <basegfx/range/b2irange.hxx>
|
||||||
@@ -204,7 +206,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(BmpTest, "BmpTest");
|
CPPUNIT_TEST_SUITE_REGISTRATION(BmpTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -27,7 +27,9 @@
|
|||||||
|
|
||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
|
||||||
#include <basegfx/vector/b2isize.hxx>
|
#include <basegfx/vector/b2isize.hxx>
|
||||||
#include <basegfx/point/b2ipoint.hxx>
|
#include <basegfx/point/b2ipoint.hxx>
|
||||||
@@ -271,7 +273,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(ClipTest, "ClipTest");
|
CPPUNIT_TEST_SUITE_REGISTRATION(ClipTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -25,9 +25,9 @@
|
|||||||
#
|
#
|
||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
|
|
||||||
UDK_3.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
registerAllTestFunction;
|
cppunitTestPlugIn;
|
||||||
|
|
||||||
local:
|
local:
|
||||||
*;
|
*;
|
||||||
|
@@ -27,7 +27,9 @@
|
|||||||
|
|
||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
|
||||||
#include <basegfx/vector/b2isize.hxx>
|
#include <basegfx/vector/b2isize.hxx>
|
||||||
#include <basegfx/range/b2drange.hxx>
|
#include <basegfx/range/b2drange.hxx>
|
||||||
@@ -265,7 +267,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(FillTest, "FillTest");
|
CPPUNIT_TEST_SUITE_REGISTRATION(FillTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -27,7 +27,9 @@
|
|||||||
|
|
||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
|
||||||
#include <basegfx/vector/b2isize.hxx>
|
#include <basegfx/vector/b2isize.hxx>
|
||||||
#include <basegfx/point/b2ipoint.hxx>
|
#include <basegfx/point/b2ipoint.hxx>
|
||||||
@@ -213,7 +215,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(LineTest, "LineTest");
|
CPPUNIT_TEST_SUITE_REGISTRATION(LineTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -60,6 +60,8 @@ CDEFS+=-xalias_level=compatible
|
|||||||
.ENDIF
|
.ENDIF
|
||||||
.ENDIF
|
.ENDIF
|
||||||
|
|
||||||
|
CFLAGSCXX += $(CPPUNIT_CFLAGS)
|
||||||
|
|
||||||
# --- Common ----------------------------------------------------------
|
# --- Common ----------------------------------------------------------
|
||||||
.IF "$(L10N_framework)"==""
|
.IF "$(L10N_framework)"==""
|
||||||
|
|
||||||
@@ -74,17 +76,10 @@ SHL1OBJS= \
|
|||||||
$(SLO)$/linetest.obj \
|
$(SLO)$/linetest.obj \
|
||||||
$(SLO)$/masktest.obj \
|
$(SLO)$/masktest.obj \
|
||||||
$(SLO)$/polytest.obj \
|
$(SLO)$/polytest.obj \
|
||||||
$(SLO)$/tools.obj \
|
$(SLO)$/tools.obj
|
||||||
$(SLO)$/bitmapdevice.obj \
|
|
||||||
$(SLO)$/debug.obj \
|
|
||||||
$(SLO)$/polypolygonrenderer.obj
|
|
||||||
# last three objs are a bit of a hack: cannot link against LIBBASEBMP
|
|
||||||
# here, because not yet delivered. Need the functionality to test, so
|
|
||||||
# we're linking it in statically. Need to keep this in sync with
|
|
||||||
# source/makefile.mk
|
|
||||||
SHL1TARGET= tests
|
SHL1TARGET= tests
|
||||||
SHL1STDLIBS= $(SALLIB) \
|
SHL1STDLIBS= $(BASEBMPLIB) \
|
||||||
$(TESTSHL2LIB)\
|
$(SALLIB) \
|
||||||
$(CPPUNITLIB) \
|
$(CPPUNITLIB) \
|
||||||
$(BASEGFXLIB)
|
$(BASEGFXLIB)
|
||||||
|
|
||||||
@@ -92,6 +87,8 @@ SHL1IMPLIB= i$(SHL1TARGET)
|
|||||||
|
|
||||||
DEF1NAME =$(SHL1TARGET)
|
DEF1NAME =$(SHL1TARGET)
|
||||||
SHL1VERSIONMAP = export.map
|
SHL1VERSIONMAP = export.map
|
||||||
|
SHL1RPATH = NONE
|
||||||
|
|
||||||
.ENDIF
|
.ENDIF
|
||||||
# END ------------------------------------------------------------------
|
# END ------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -121,16 +118,8 @@ SLOFILES=$(SHL1OBJS)
|
|||||||
# --- Targets ------------------------------------------------------
|
# --- Targets ------------------------------------------------------
|
||||||
|
|
||||||
.INCLUDE : target.mk
|
.INCLUDE : target.mk
|
||||||
.INCLUDE : _cppunit.mk
|
|
||||||
|
|
||||||
# --- Enable test execution in normal build ------------------------
|
# --- Enable test execution in normal build ------------------------
|
||||||
.IF "$(L10N_framework)"==""
|
.IF "$(L10N_framework)"==""
|
||||||
|
.INCLUDE : _cppunit.mk
|
||||||
unittest : $(SHL1TARGETN)
|
|
||||||
@echo ----------------------------------------------------------
|
|
||||||
@echo - start unit test on library $(SHL1TARGETN)
|
|
||||||
@echo ----------------------------------------------------------
|
|
||||||
$(TESTSHL2) -sf $(mktmp ) $(SHL1TARGETN)
|
|
||||||
|
|
||||||
ALLTAR : unittest
|
|
||||||
.ENDIF
|
.ENDIF
|
||||||
|
@@ -27,7 +27,9 @@
|
|||||||
|
|
||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
|
||||||
#include <basegfx/vector/b2isize.hxx>
|
#include <basegfx/vector/b2isize.hxx>
|
||||||
#include <basegfx/range/b2irange.hxx>
|
#include <basegfx/range/b2irange.hxx>
|
||||||
@@ -165,7 +167,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(MaskTest, "MaskTest");
|
CPPUNIT_TEST_SUITE_REGISTRATION(MaskTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -27,7 +27,9 @@
|
|||||||
|
|
||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
|
||||||
#include <basegfx/vector/b2isize.hxx>
|
#include <basegfx/vector/b2isize.hxx>
|
||||||
#include <basegfx/range/b2irange.hxx>
|
#include <basegfx/range/b2irange.hxx>
|
||||||
@@ -285,7 +287,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(PolyTest, "PolyTest");
|
CPPUNIT_TEST_SUITE_REGISTRATION(PolyTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
fx basegfx : o3tl sal offuh cppuhelper cppu testshl2 NULL
|
fx basegfx : o3tl sal offuh cppuhelper cppu CPPUNIT:cppunit NULL
|
||||||
fx basegfx usr1 - all fx_mkout NULL
|
fx basegfx usr1 - all fx_mkout NULL
|
||||||
fx basegfx\inc nmake - all fx_inc NULL
|
fx basegfx\inc nmake - all fx_inc NULL
|
||||||
fx basegfx\prj get - all fx_prj NULL
|
fx basegfx\prj get - all fx_prj NULL
|
||||||
|
@@ -30,7 +30,10 @@
|
|||||||
#include "precompiled_basegfx.hxx"
|
#include "precompiled_basegfx.hxx"
|
||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
#include "cppunit/plugin/TestPlugIn.h"
|
||||||
|
|
||||||
namespace basegfx1d
|
namespace basegfx1d
|
||||||
{
|
{
|
||||||
@@ -52,7 +55,6 @@ public:
|
|||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -65,13 +67,7 @@ public:
|
|||||||
}; // class b1drange
|
}; // class b1drange
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx1d::b1drange, "basegfx1d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx1d::b1drange);
|
||||||
} // namespace basegfx1d
|
} // namespace basegfx1d
|
||||||
|
|
||||||
|
CPPUNIT_PLUGIN_IMPLEMENT();
|
||||||
// -----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// this macro creates an empty function, which will called by the RegisterAllFunctions()
|
|
||||||
// to let the user the possibility to also register some functions by hand.
|
|
||||||
NOADDITIONAL;
|
|
||||||
|
|
||||||
|
@@ -30,7 +30,9 @@
|
|||||||
#include "precompiled_basegfx.hxx"
|
#include "precompiled_basegfx.hxx"
|
||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
|
||||||
#include <basegfx/matrix/b2dhommatrix.hxx>
|
#include <basegfx/matrix/b2dhommatrix.hxx>
|
||||||
#include <basegfx/polygon/b2dpolygon.hxx>
|
#include <basegfx/polygon/b2dpolygon.hxx>
|
||||||
@@ -564,7 +566,6 @@ public:
|
|||||||
{
|
{
|
||||||
// this is demonstration code
|
// this is demonstration code
|
||||||
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -916,7 +917,6 @@ public:
|
|||||||
// insert your test code here.
|
// insert your test code here.
|
||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -946,7 +946,6 @@ public:
|
|||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -1138,7 +1137,6 @@ public:
|
|||||||
// insert your test code here.
|
// insert your test code here.
|
||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -1168,7 +1166,6 @@ public:
|
|||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -1196,7 +1193,6 @@ public:
|
|||||||
// insert your test code here.
|
// insert your test code here.
|
||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -1226,7 +1222,6 @@ public:
|
|||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -1254,7 +1249,6 @@ public:
|
|||||||
// insert your test code here.
|
// insert your test code here.
|
||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -1442,21 +1436,20 @@ public:
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dsvgdimpex, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dsvgdimpex);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dpolyrange, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dpolyrange);
|
||||||
//CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dbeziertools, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dcubicbezier);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dcubicbezier, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dhommatrix);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dhommatrix, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dhompoint);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dhompoint, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dpoint);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dpoint, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dpolygon);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dpolygon, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dpolygontools);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dpolygontools, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dpolypolygon);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dpolypolygon, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dquadraticbezier);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dquadraticbezier, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2drange);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2drange, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dtuple);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dtuple, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dvector);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::b2dvector, "basegfx2d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::bcolor);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx2d::bcolor, "basegfx2d");
|
|
||||||
} // namespace basegfx2d
|
} // namespace basegfx2d
|
||||||
|
|
||||||
|
|
||||||
|
@@ -30,7 +30,9 @@
|
|||||||
#include "precompiled_basegfx.hxx"
|
#include "precompiled_basegfx.hxx"
|
||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
|
||||||
namespace basegfx3d
|
namespace basegfx3d
|
||||||
{
|
{
|
||||||
@@ -52,7 +54,6 @@ public:
|
|||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -80,7 +81,6 @@ public:
|
|||||||
// insert your test code here.
|
// insert your test code here.
|
||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -110,7 +110,6 @@ public:
|
|||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -138,7 +137,6 @@ public:
|
|||||||
// insert your test code here.
|
// insert your test code here.
|
||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -168,7 +166,6 @@ public:
|
|||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
// CPPUNIT_ASSERT_MESSAGE("a message", 1 == 1);
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -196,7 +193,6 @@ public:
|
|||||||
// insert your test code here.
|
// insert your test code here.
|
||||||
void EmptyMethod()
|
void EmptyMethod()
|
||||||
{
|
{
|
||||||
CPPUNIT_ASSERT_STUB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the following lines only, if you add, remove or rename
|
// Change the following lines only, if you add, remove or rename
|
||||||
@@ -209,12 +205,12 @@ public:
|
|||||||
}; // class b3dvector
|
}; // class b3dvector
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx3d::b3dhommatrix, "basegfx3d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dhommatrix);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx3d::b3dhompoint, "basegfx3d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dhompoint);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx3d::b3dpoint, "basegfx3d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dpoint);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx3d::b3drange, "basegfx3d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3drange);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx3d::b3dtuple, "basegfx3d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dtuple);
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(basegfx3d::b3dvector, "basegfx3d");
|
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dvector);
|
||||||
} // namespace basegfx3d
|
} // namespace basegfx3d
|
||||||
|
|
||||||
|
|
||||||
|
@@ -25,9 +25,9 @@
|
|||||||
#
|
#
|
||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
|
|
||||||
UDK_3.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
registerAllTestFunction;
|
cppunitTestPlugIn;
|
||||||
|
|
||||||
local:
|
local:
|
||||||
*;
|
*;
|
||||||
|
@@ -36,6 +36,8 @@ ENABLE_EXCEPTIONS=TRUE
|
|||||||
|
|
||||||
.INCLUDE : settings.mk
|
.INCLUDE : settings.mk
|
||||||
|
|
||||||
|
CFLAGSCXX += $(CPPUNIT_CFLAGS)
|
||||||
|
|
||||||
# --- Common ----------------------------------------------------------
|
# --- Common ----------------------------------------------------------
|
||||||
|
|
||||||
SHL1OBJS= \
|
SHL1OBJS= \
|
||||||
@@ -48,31 +50,19 @@ SHL1OBJS= \
|
|||||||
$(SLO)$/genericclipper.obj \
|
$(SLO)$/genericclipper.obj \
|
||||||
$(SLO)$/testtools.obj
|
$(SLO)$/testtools.obj
|
||||||
|
|
||||||
# linking statically against basegfx parts
|
|
||||||
SHL1LIBS=\
|
|
||||||
$(SLB)$/curve.lib \
|
|
||||||
$(SLB)$/matrix.lib \
|
|
||||||
$(SLB)$/numeric.lib \
|
|
||||||
$(SLB)$/point.lib \
|
|
||||||
$(SLB)$/polygon.lib \
|
|
||||||
$(SLB)$/range.lib \
|
|
||||||
$(SLB)$/tuple.lib \
|
|
||||||
$(SLB)$/tools.lib \
|
|
||||||
$(SLB)$/color.lib \
|
|
||||||
$(SLB)$/vector.lib
|
|
||||||
|
|
||||||
SHL1TARGET= basegfx_tests
|
SHL1TARGET= basegfx_tests
|
||||||
SHL1STDLIBS= \
|
SHL1STDLIBS= \
|
||||||
|
$(BASEGFXLIB) \
|
||||||
$(SALLIB) \
|
$(SALLIB) \
|
||||||
$(CPPUHELPERLIB) \
|
$(CPPUHELPERLIB) \
|
||||||
$(CPPULIB) \
|
$(CPPULIB) \
|
||||||
$(TESTSHL2LIB) \
|
|
||||||
$(CPPUNITLIB)
|
$(CPPUNITLIB)
|
||||||
|
|
||||||
SHL1IMPLIB= i$(SHL1TARGET)
|
SHL1IMPLIB= i$(SHL1TARGET)
|
||||||
|
|
||||||
DEF1NAME =$(SHL1TARGET)
|
DEF1NAME =$(SHL1TARGET)
|
||||||
SHL1VERSIONMAP = export.map
|
SHL1VERSIONMAP = export.map
|
||||||
|
SHL1RPATH = NONE
|
||||||
|
|
||||||
# END ------------------------------------------------------------------
|
# END ------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -88,14 +78,3 @@ SLOFILES=$(SHL1OBJS)
|
|||||||
.IF "$(verbose)"!="" || "$(VERBOSE)"!=""
|
.IF "$(verbose)"!="" || "$(VERBOSE)"!=""
|
||||||
CDEFS+= -DVERBOSE
|
CDEFS+= -DVERBOSE
|
||||||
.ENDIF
|
.ENDIF
|
||||||
|
|
||||||
# --- Enable testshl2 execution in normal build ------------------------
|
|
||||||
|
|
||||||
$(MISC)$/unittest_succeeded : $(SHL1TARGETN)
|
|
||||||
@echo ----------------------------------------------------------
|
|
||||||
@echo - start unit test on library $(SHL1TARGETN)
|
|
||||||
@echo ----------------------------------------------------------
|
|
||||||
$(TESTSHL2) -sf $(mktmp ) -forward $(BIN)$/ $(SHL1TARGETN)
|
|
||||||
$(TOUCH) $@
|
|
||||||
|
|
||||||
ALLTAR : $(MISC)$/unittest_succeeded
|
|
||||||
|
@@ -1,20 +0,0 @@
|
|||||||
# Jobfile
|
|
||||||
basegfx1d.b1drange
|
|
||||||
basegfx2d.b2dcubicbezier
|
|
||||||
basegfx2d.b2dhommatrix
|
|
||||||
basegfx2d.b2dhompoint
|
|
||||||
basegfx2d.b2dpoint
|
|
||||||
basegfx2d.b2dpolygon
|
|
||||||
basegfx2d.b2dpolygontools
|
|
||||||
basegfx2d.b2dpolypolygon
|
|
||||||
basegfx2d.b2dquadraticbezier
|
|
||||||
basegfx2d.b2drange
|
|
||||||
basegfx2d.b2dtuple
|
|
||||||
basegfx2d.b2dvector
|
|
||||||
basegfx3d.b3dhommatrix
|
|
||||||
basegfx3d.b3dhompoint
|
|
||||||
basegfx3d.b3dhompoint
|
|
||||||
basegfx3d.b3dpoint
|
|
||||||
basegfx3d.b3drange
|
|
||||||
basegfx3d.b3dtuple
|
|
||||||
basegfx3d.b3dvector
|
|
@@ -1,8 +0,0 @@
|
|||||||
CAN_1_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -121,7 +121,7 @@ SHL1IMPLIB=i$(TARGET)
|
|||||||
SHL1LIBS=$(SLB)$/$(TARGET).lib
|
SHL1LIBS=$(SLB)$/$(TARGET).lib
|
||||||
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
||||||
|
|
||||||
SHL1VERSIONMAP=exports.map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
|
|
||||||
DEF1NAME=$(SHL1TARGET)
|
DEF1NAME=$(SHL1TARGET)
|
||||||
DEF1EXPORTFILE=exports.dxp
|
DEF1EXPORTFILE=exports.dxp
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
CAN_1_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -43,7 +43,7 @@ SHL1STDLIBS = \
|
|||||||
$(CPPULIB) \
|
$(CPPULIB) \
|
||||||
$(CPPUHELPERLIB) \
|
$(CPPUHELPERLIB) \
|
||||||
$(SALLIB)
|
$(SALLIB)
|
||||||
SHL1VERSIONMAP = canvasfactory.map
|
SHL1VERSIONMAP = $(SOLARENV)/src/component.map
|
||||||
|
|
||||||
SHL1DEPN =
|
SHL1DEPN =
|
||||||
SHL1IMPLIB = i$(TARGET)
|
SHL1IMPLIB = i$(TARGET)
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
CAN_1_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -60,7 +60,7 @@ SHL1IMPLIB=i$(TARGET)
|
|||||||
SHL1LIBS=$(SLB)$/$(TARGET).lib
|
SHL1LIBS=$(SLB)$/$(TARGET).lib
|
||||||
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
||||||
|
|
||||||
SHL1VERSIONMAP=exports.map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
|
|
||||||
DEF1NAME=$(SHL1TARGET)
|
DEF1NAME=$(SHL1TARGET)
|
||||||
DEF1EXPORTFILE=exports.dxp
|
DEF1EXPORTFILE=exports.dxp
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
CAN_1_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -52,7 +52,7 @@ SHL1IMPLIB=i$(TARGET)
|
|||||||
SHL1LIBS=$(SLB)$/$(TARGET).lib
|
SHL1LIBS=$(SLB)$/$(TARGET).lib
|
||||||
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
||||||
|
|
||||||
SHL1VERSIONMAP=exports.map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
|
|
||||||
DEF1NAME=$(SHL1TARGET)
|
DEF1NAME=$(SHL1TARGET)
|
||||||
DEF1EXPORTFILE=exports.dxp
|
DEF1EXPORTFILE=exports.dxp
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
CAN_1_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -75,7 +75,7 @@ SHL1IMPLIB=i$(TARGET)
|
|||||||
SHL1LIBS=$(SLB)$/$(TARGET).lib
|
SHL1LIBS=$(SLB)$/$(TARGET).lib
|
||||||
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
||||||
|
|
||||||
SHL1VERSIONMAP=exports.map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
|
|
||||||
DEF1NAME=$(SHL1TARGET)
|
DEF1NAME=$(SHL1TARGET)
|
||||||
DEF1EXPORTFILE=exports.dxp
|
DEF1EXPORTFILE=exports.dxp
|
||||||
|
@@ -33,6 +33,8 @@ ENABLE_EXCEPTIONS := TRUE
|
|||||||
|
|
||||||
.INCLUDE: settings.mk
|
.INCLUDE: settings.mk
|
||||||
|
|
||||||
|
CFLAGSCXX += $(CPPUNIT_CFLAGS)
|
||||||
|
|
||||||
DLLPRE = # no leading "lib" on .so files
|
DLLPRE = # no leading "lib" on .so files
|
||||||
|
|
||||||
INCPRE += $(MISC)$/$(TARGET)$/inc
|
INCPRE += $(MISC)$/$(TARGET)$/inc
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
DTRANS_1_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
||||||
|
|
@@ -46,7 +46,7 @@ SLOFILES= \
|
|||||||
|
|
||||||
SHL1TARGET= dtrans
|
SHL1TARGET= dtrans
|
||||||
|
|
||||||
SHL1VERSIONMAP= exports.map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
|
|
||||||
SHL1STDLIBS= \
|
SHL1STDLIBS= \
|
||||||
$(SALLIB) \
|
$(SALLIB) \
|
||||||
|
@@ -1,10 +0,0 @@
|
|||||||
UDK_3_0_0 {
|
|
||||||
global:
|
|
||||||
GetVersionInfo;
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_getFactory;
|
|
||||||
component_writeInfo;
|
|
||||||
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -64,7 +64,7 @@ SHL1IMPLIB=i$(SHL1TARGET)
|
|||||||
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
||||||
DEF1NAME= $(SHL1TARGET)
|
DEF1NAME= $(SHL1TARGET)
|
||||||
DEF1EXPORTFILE= exports.dxp
|
DEF1EXPORTFILE= exports.dxp
|
||||||
SHL1VERSIONMAP=exports.map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
|
|
||||||
|
|
||||||
.IF "$(GUI)"=="WNT"
|
.IF "$(GUI)"=="WNT"
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
OOO_1.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
GetVersionInfo;
|
GetVersionInfo;
|
||||||
getDataArea;
|
getDataArea;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
OOO_1.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
GetVersionInfo;
|
GetVersionInfo;
|
||||||
get_zh_charset;
|
get_zh_charset;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
OOO_1.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
GetVersionInfo;
|
GetVersionInfo;
|
||||||
get_indexdata_ko_dict;
|
get_indexdata_ko_dict;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
OOO_1.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
GetVersionInfo;
|
GetVersionInfo;
|
||||||
getAllCalendars_en_AU;
|
getAllCalendars_en_AU;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
OOO_1.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
GetVersionInfo;
|
GetVersionInfo;
|
||||||
getAllCalendars_es_AR;
|
getAllCalendars_es_AR;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
OOO_1.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
GetVersionInfo;
|
GetVersionInfo;
|
||||||
getAllCalendars_ast_ES;
|
getAllCalendars_ast_ES;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
OOO_1.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
getAllCalendars_af_NA;
|
getAllCalendars_af_NA;
|
||||||
getAllCalendars_af_ZA;
|
getAllCalendars_af_ZA;
|
||||||
|
@@ -1,10 +0,0 @@
|
|||||||
UDK_3_0_0 {
|
|
||||||
global:
|
|
||||||
GetVersionInfo;
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_getFactory;
|
|
||||||
component_writeInfo;
|
|
||||||
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -68,7 +68,7 @@ SHL1STDLIBS= \
|
|||||||
$(I18NREGEXPLIB)
|
$(I18NREGEXPLIB)
|
||||||
|
|
||||||
SHL1DEPN= makefile.mk
|
SHL1DEPN= makefile.mk
|
||||||
SHL1VERSIONMAP= i18nsearch.map
|
SHL1VERSIONMAP= $(SOLARENV)/src/component.map
|
||||||
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
||||||
DEF1NAME= $(SHL1TARGET)
|
DEF1NAME= $(SHL1TARGET)
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
OOO_1.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
GetVersionInfo;
|
GetVersionInfo;
|
||||||
getHangul2HanjaData;
|
getHangul2HanjaData;
|
||||||
|
@@ -1,10 +0,0 @@
|
|||||||
UDK_3_0_0 {
|
|
||||||
global:
|
|
||||||
GetVersionInfo;
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_getFactory;
|
|
||||||
component_writeInfo;
|
|
||||||
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -60,7 +60,7 @@ SHL1IMPLIB= i$(SHL1TARGET)
|
|||||||
|
|
||||||
SHL1DEPN= makefile.mk \
|
SHL1DEPN= makefile.mk \
|
||||||
$(SLB)/i18nisolang$(ISOLANG_MAJOR)$(COMID).lib
|
$(SLB)/i18nisolang$(ISOLANG_MAJOR)$(COMID).lib
|
||||||
SHL1VERSIONMAP=$(PRJNAME).map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
||||||
DEF1NAME=$(SHL1TARGET)
|
DEF1NAME=$(SHL1TARGET)
|
||||||
|
|
||||||
|
@@ -97,32 +97,7 @@ public class SdfString {
|
|||||||
public void setModuleName(String modulename) {
|
public void setModuleName(String modulename) {
|
||||||
this.modulename = modulename;
|
this.modulename = modulename;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
public String getRealFileName(){
|
|
||||||
//String srcroot = "U:\\cws01\\l10ncleanup\\SRC680\\src.m213";//java.lang.System.getProperty( "SOLARSRC");
|
|
||||||
//String isWindows = "4nt";//java.lang.System.getProperty( "USE_SHELL");
|
|
||||||
String srcroot = java.lang.System.getProperty( "SOLARSRC" );
|
|
||||||
String isWindows = java.lang.System.getProperty( "USE_SHELL" );
|
|
||||||
|
|
||||||
//System.out.println("srcroot="+srcroot+" isWindows="+isWindows );
|
|
||||||
//if( true ) return;
|
|
||||||
//String relpath = sourceString.getFileId().substring( sourceString.getFileId().lastIndexOf("\\")
|
|
||||||
// , sourceString.getFileId().length() );
|
|
||||||
String filename;
|
|
||||||
if( isWindows != null && isWindows.compareTo( "4nt") == 0 )
|
|
||||||
{
|
|
||||||
filename = srcroot + "\\" + //sourceString.getProject() + "\\" +
|
|
||||||
sourceString.getFileId() +".recommand";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
String filepart = sourceString.getFileId();
|
|
||||||
filepart = filepart.replaceAll( "\\\\" , "/" );
|
|
||||||
filename = srcroot + "/" + //sourceString.getProject() + "//" +
|
|
||||||
filepart +".recommand";
|
|
||||||
}
|
|
||||||
return filename;
|
|
||||||
}*/
|
|
||||||
public String getRealFileName(){
|
public String getRealFileName(){
|
||||||
String filepart = sourceString.getFileId();
|
String filepart = sourceString.getFileId();
|
||||||
filepart = filepart.replaceAll( "\\\\" , "_" );
|
filepart = filepart.replaceAll( "\\\\" , "_" );
|
||||||
|
@@ -45,12 +45,8 @@ my $last_localize_file;
|
|||||||
my $first_run = "1";
|
my $first_run = "1";
|
||||||
my $sdf_filename;
|
my $sdf_filename;
|
||||||
my $merge_dir;
|
my $merge_dir;
|
||||||
my $WIN;
|
|
||||||
my $state = "none";
|
my $state = "none";
|
||||||
|
|
||||||
if ( defined $ENV{USE_SHELL} && $ENV{USE_SHELL} eq '4nt' ) { $WIN = 'TRUE'; }
|
|
||||||
else { $WIN = ''; }
|
|
||||||
|
|
||||||
$SIG{INT} = 'inthandler';
|
$SIG{INT} = 'inthandler';
|
||||||
$SIG{QUIT} = 'quithandler';
|
$SIG{QUIT} = 'quithandler';
|
||||||
|
|
||||||
@@ -67,7 +63,6 @@ struct ( sdf_obj =>
|
|||||||
|
|
||||||
parse_options();
|
parse_options();
|
||||||
my $lock_file = $merge_dir."/lock.mk";
|
my $lock_file = $merge_dir."/lock.mk";
|
||||||
$lock_file =~ s/\//\\/g , if ( $WIN ) ;
|
|
||||||
acquire_lock();
|
acquire_lock();
|
||||||
read_sdf_file_names();
|
read_sdf_file_names();
|
||||||
init();
|
init();
|
||||||
@@ -247,10 +242,9 @@ sub make_paths
|
|||||||
{
|
{
|
||||||
my $localizeFile = $merge_dir."\\".$current[ 0 ]->module."\\".$current[ 0 ]->file;
|
my $localizeFile = $merge_dir."\\".$current[ 0 ]->module."\\".$current[ 0 ]->file;
|
||||||
my $path = getDir( $localizeFile );
|
my $path = getDir( $localizeFile );
|
||||||
if ( !$WIN ) { $path =~ s/\\/\//g; }
|
$path =~ s/\\/\//g;
|
||||||
|
|
||||||
$localizeFile = $path."\\localize.sdf";
|
$localizeFile = $path."/localize.sdf";
|
||||||
if ( !$WIN ) { $localizeFile =~ s/\\/\//g; }
|
|
||||||
|
|
||||||
return ( $path , $localizeFile );
|
return ( $path , $localizeFile );
|
||||||
}
|
}
|
||||||
|
@@ -70,14 +70,12 @@ my $no_gsicheck = '';
|
|||||||
my $mode = '';
|
my $mode = '';
|
||||||
my $bVerbose = "0";
|
my $bVerbose = "0";
|
||||||
my $srcpath = '';
|
my $srcpath = '';
|
||||||
my $WIN;
|
|
||||||
my $languages;
|
my $languages;
|
||||||
#my %sl_modules; # Contains all modules where en-US and de is source language
|
#my %sl_modules; # Contains all modules where en-US and de is source language
|
||||||
my $use_default_date = '0';
|
my $use_default_date = '0';
|
||||||
my $force_ooo_module = '0';
|
my $force_ooo_module = '0';
|
||||||
my %is_ooo_module;
|
my %is_ooo_module;
|
||||||
my %is_so_module;
|
my %is_so_module;
|
||||||
my $DELIMITER;
|
|
||||||
|
|
||||||
# ( leftpart ) ( rightpart )
|
# ( leftpart ) ( rightpart )
|
||||||
# prj file dummy type gid lid helpid pform width lang text helptext qhelptext title timestamp
|
# prj file dummy type gid lid helpid pform width lang text helptext qhelptext title timestamp
|
||||||
@@ -91,23 +89,14 @@ my @sdfparticles;
|
|||||||
parse_options();
|
parse_options();
|
||||||
check_modules_scm();
|
check_modules_scm();
|
||||||
|
|
||||||
if ( defined $ENV{USE_SHELL} && $ENV{USE_SHELL} eq '4nt' ) {
|
|
||||||
$WIN = 'TRUE';
|
|
||||||
$DELIMITER = "\\";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$WIN = '';
|
|
||||||
$DELIMITER = "/";
|
|
||||||
}
|
|
||||||
|
|
||||||
my $binpath = '';
|
my $binpath = '';
|
||||||
if( defined $ENV{UPDMINOREXT} )
|
if( defined $ENV{UPDMINOREXT} )
|
||||||
{
|
{
|
||||||
$binpath = $ENV{SOLARVER}.$DELIMITER.$ENV{INPATH}.$DELIMITER."bin".$ENV{UPDMINOREXT}.$DELIMITER ;
|
$binpath = $ENV{SOLARVER}."/".$ENV{INPATH}."/bin".$ENV{UPDMINOREXT}."/" ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$binpath = $ENV{SOLARVER}.$DELIMITER.$ENV{INPATH}.$DELIMITER."bin".$DELIMITER ;
|
$binpath = $ENV{SOLARVER}."/".$ENV{INPATH}."/bin/" ;
|
||||||
}
|
}
|
||||||
|
|
||||||
#%sl_modules = fetch_sourcelanguage_dirlist();
|
#%sl_modules = fetch_sourcelanguage_dirlist();
|
||||||
@@ -187,9 +176,8 @@ sub splitfile{
|
|||||||
exit( -1 );
|
exit( -1 );
|
||||||
}
|
}
|
||||||
my $src_root = $ENV{SRC_ROOT};
|
my $src_root = $ENV{SRC_ROOT};
|
||||||
#print $WIN eq "TRUE" ? $src_root."\\l10n_so\n" : $src_root."/l10n_so\n";
|
my $so_l10n_path = $src_root."/l10n_so/source";
|
||||||
my $so_l10n_path = $WIN eq "TRUE" ? $src_root."\\l10n_so\\source" : $src_root."/l10n_so/source";
|
my $ooo_l10n_path = $src_root."/l10n/source";
|
||||||
my $ooo_l10n_path = $WIN eq "TRUE" ? $src_root."\\l10n\\source" : $src_root."/l10n/source";
|
|
||||||
|
|
||||||
#print "$so_l10n_path\n";
|
#print "$so_l10n_path\n";
|
||||||
#print "$ooo_l10n_path\n";
|
#print "$ooo_l10n_path\n";
|
||||||
@@ -286,7 +274,7 @@ sub write_sdf
|
|||||||
my @sdf_file;
|
my @sdf_file;
|
||||||
|
|
||||||
# mkdir!!!!
|
# mkdir!!!!
|
||||||
my $current_l10n_file = $WIN eq "TRUE" ? $l10n_file."\\$lang\\localize.sdf" : $l10n_file."/$lang/localize.sdf";
|
my $current_l10n_file = $l10n_file."/$lang/localize.sdf";
|
||||||
print "Writing '$current_l10n_file'\n";
|
print "Writing '$current_l10n_file'\n";
|
||||||
if( open DESTFILE , "< $current_l10n_file" ){
|
if( open DESTFILE , "< $current_l10n_file" ){
|
||||||
|
|
||||||
@@ -430,17 +418,17 @@ sub add_paths
|
|||||||
{
|
{
|
||||||
my $langhash_ref = shift;
|
my $langhash_ref = shift;
|
||||||
my $root_dir = $ENV{ SRC_ROOT };
|
my $root_dir = $ENV{ SRC_ROOT };
|
||||||
my $ooo_l10n_dir = "$root_dir"."$DELIMITER"."l10n"."$DELIMITER"."source";
|
my $ooo_l10n_dir = "$root_dir/l10n/source";
|
||||||
my $so_l10n_dir = "$root_dir"."$DELIMITER"."l10n_so"."$DELIMITER"."source";
|
my $so_l10n_dir = "$root_dir/l10n_so/source";
|
||||||
|
|
||||||
if( -e $ooo_l10n_dir )
|
if( -e $ooo_l10n_dir )
|
||||||
{
|
{
|
||||||
foreach my $lang ( keys( %{ $langhash_ref } ) )
|
foreach my $lang ( keys( %{ $langhash_ref } ) )
|
||||||
{
|
{
|
||||||
my $loc_file = "$ooo_l10n_dir"."$DELIMITER"."$lang"."$DELIMITER"."localize.sdf";
|
my $loc_file = "$ooo_l10n_dir/$lang/localize.sdf";
|
||||||
if( -e $loc_file )
|
if( -e $loc_file )
|
||||||
{
|
{
|
||||||
push @sdfparticles , "$ooo_l10n_dir"."$DELIMITER"."$lang"."$DELIMITER"."localize.sdf";
|
push @sdfparticles , "$ooo_l10n_dir/$lang/localize.sdf";
|
||||||
}
|
}
|
||||||
else { print "WARNING: $loc_file not found ....\n"; }
|
else { print "WARNING: $loc_file not found ....\n"; }
|
||||||
}
|
}
|
||||||
@@ -450,10 +438,10 @@ sub add_paths
|
|||||||
{
|
{
|
||||||
foreach my $lang ( keys( %{ $langhash_ref } ) )
|
foreach my $lang ( keys( %{ $langhash_ref } ) )
|
||||||
{
|
{
|
||||||
my $loc_file = "$so_l10n_dir"."$DELIMITER"."$lang"."$DELIMITER"."localize.sdf";
|
my $loc_file = "$so_l10n_dir/$lang/localize.sdf";
|
||||||
if( -e $loc_file )
|
if( -e $loc_file )
|
||||||
{
|
{
|
||||||
push @sdfparticles , "$ooo_l10n_dir"."$DELIMITER"."$lang"."$DELIMITER"."localize.sdf";
|
push @sdfparticles , "$ooo_l10n_dir/$lang/localize.sdf";
|
||||||
}
|
}
|
||||||
else { #print "WARNING: $loc_file not found ....\n";
|
else { #print "WARNING: $loc_file not found ....\n";
|
||||||
}
|
}
|
||||||
@@ -530,10 +518,6 @@ sub collectfiles{
|
|||||||
} #foreach
|
} #foreach
|
||||||
} # if
|
} # if
|
||||||
} # if
|
} # if
|
||||||
# if ( !$bVerbose ){
|
|
||||||
# if ( $WIN eq "TRUE" ) { $args .= " > $my_localize_log"; }
|
|
||||||
# else { $args .= " >& $my_localize_log"; }
|
|
||||||
# }
|
|
||||||
if ( $bVerbose ) { print STDOUT $command.$args."\n"; }
|
if ( $bVerbose ) { print STDOUT $command.$args."\n"; }
|
||||||
|
|
||||||
my $rc = system( $command.$args );
|
my $rc = system( $command.$args );
|
||||||
|
@@ -63,7 +63,6 @@ my $outputfile = '';
|
|||||||
my $mode = '';
|
my $mode = '';
|
||||||
my $bVerbose="0";
|
my $bVerbose="0";
|
||||||
my $srcpath = '';
|
my $srcpath = '';
|
||||||
my $WIN;
|
|
||||||
my $languages;
|
my $languages;
|
||||||
#my %sl_modules; # Contains all modules where en-US and de is source language
|
#my %sl_modules; # Contains all modules where en-US and de is source language
|
||||||
my $use_default_date = '0';
|
my $use_default_date = '0';
|
||||||
@@ -78,13 +77,6 @@ my $default_date = "2002-02-02 02:02:02";
|
|||||||
#### main ####
|
#### main ####
|
||||||
parse_options();
|
parse_options();
|
||||||
|
|
||||||
if ( defined $ENV{USE_SHELL} && $ENV{USE_SHELL} eq '4nt' ) {
|
|
||||||
$WIN = 'TRUE';
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$WIN = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
#%sl_modules = fetch_sourcelanguage_dirlist();
|
#%sl_modules = fetch_sourcelanguage_dirlist();
|
||||||
|
|
||||||
|
|
||||||
@@ -136,13 +128,11 @@ sub splitfile{
|
|||||||
next if( $prj eq "binfilter" ); # Don't merge strings into binfilter module
|
next if( $prj eq "binfilter" ); # Don't merge strings into binfilter module
|
||||||
chomp( $line );
|
chomp( $line );
|
||||||
$currentFile = $srcpath . '\\' . $prj . '\\' . $file;
|
$currentFile = $srcpath . '\\' . $prj . '\\' . $file;
|
||||||
if ( $WIN ) { $currentFile =~ s/\//\\/g; }
|
$currentFile =~ s/\\/\//g;
|
||||||
else { $currentFile =~ s/\\/\//g; }
|
|
||||||
|
|
||||||
$cur_sdffile = $currentFile;
|
$cur_sdffile = $currentFile;
|
||||||
#if( $cur_sdffile =~ /\.$file_types[\s]*$/ ){
|
#if( $cur_sdffile =~ /\.$file_types[\s]*$/ ){
|
||||||
if( $WIN ) { $cur_sdffile =~ s/\\[^\\]*\.$file_types[\s]*$/\\localize.sdf/; }
|
$cur_sdffile =~ s/\/[^\/]*\.$file_types[\s]*$/\/localize.sdf/;
|
||||||
else { $cur_sdffile =~ s/\/[^\/]*\.$file_types[\s]*$/\/localize.sdf/; }
|
|
||||||
#}
|
#}
|
||||||
|
|
||||||
# Set default date
|
# Set default date
|
||||||
@@ -182,41 +172,6 @@ sub splitfile{
|
|||||||
}
|
}
|
||||||
#########################################################
|
#########################################################
|
||||||
|
|
||||||
#sub fetch_sourcelanguage_dirlist
|
|
||||||
#{
|
|
||||||
#
|
|
||||||
# my $working_path = getcwd();
|
|
||||||
# my %sl_dirlist;
|
|
||||||
#
|
|
||||||
# chdir $srcpath;
|
|
||||||
# my @all_dirs = csh_glob( "*" );
|
|
||||||
#
|
|
||||||
# foreach my $file ( @all_dirs )
|
|
||||||
# {
|
|
||||||
# if( -d $file )
|
|
||||||
# {
|
|
||||||
# my $module = $file;
|
|
||||||
# $file .= "/prj/l10n";
|
|
||||||
# $file =~ s/\//\\/ , if( $WIN ) ;
|
|
||||||
#
|
|
||||||
# if( -f $file ) # Test file <module>/prj/l10n
|
|
||||||
# {
|
|
||||||
# $sl_dirlist{ $module } = 1;
|
|
||||||
# if( $bVerbose eq "1" ) { print STDOUT "$module: de and en-US source language detected\n"; }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
# chdir $working_path;
|
|
||||||
#
|
|
||||||
# return %sl_dirlist;
|
|
||||||
#}
|
|
||||||
|
|
||||||
#sub has_two_sourcelanguages
|
|
||||||
#{
|
|
||||||
# my $module = shift;
|
|
||||||
# return defined $sl_modules{ $module } ;
|
|
||||||
#}
|
|
||||||
sub writesdf{
|
sub writesdf{
|
||||||
|
|
||||||
my $lastFile = shift;
|
my $lastFile = shift;
|
||||||
@@ -225,8 +180,7 @@ sub writesdf{
|
|||||||
my %index=();
|
my %index=();
|
||||||
|
|
||||||
if( $localizeFile =~ /\.$file_types[\s]*$/ ){
|
if( $localizeFile =~ /\.$file_types[\s]*$/ ){
|
||||||
if( $WIN ) { $localizeFile =~ s/\\[^\\]*\.$file_types[\s]*$/\\localize.sdf/; }
|
$localizeFile =~ s/\/[^\/]*\.$file_types[\s]*$/\/localize.sdf/;
|
||||||
else { $localizeFile =~ s/\/[^\/]*\.$file_types[\s]*$/\/localize.sdf/; }
|
|
||||||
}else {
|
}else {
|
||||||
print STDERR "Strange filetype found '$localizeFile'\n";
|
print STDERR "Strange filetype found '$localizeFile'\n";
|
||||||
return;
|
return;
|
||||||
@@ -471,10 +425,6 @@ sub collectfiles{
|
|||||||
} #foreach
|
} #foreach
|
||||||
} # if
|
} # if
|
||||||
} # if
|
} # if
|
||||||
# if ( !$bVerbose ){
|
|
||||||
# if ( $WIN eq "TRUE" ) { $args .= " > $my_localize_log"; }
|
|
||||||
# else { $args .= " >& $my_localize_log"; }
|
|
||||||
# }
|
|
||||||
if ( $bVerbose ) { print STDOUT $command.$args."\n"; }
|
if ( $bVerbose ) { print STDOUT $command.$args."\n"; }
|
||||||
|
|
||||||
my $rc = system( $command.$args );
|
my $rc = system( $command.$args );
|
||||||
|
@@ -101,7 +101,7 @@ JAVACLASSFILES = \
|
|||||||
$(CLASSDIR)$/$(PACKAGE)$/HelpFileDocument.class
|
$(CLASSDIR)$/$(PACKAGE)$/HelpFileDocument.class
|
||||||
|
|
||||||
.IF "$(SYSTEM_LUCENE)" == "YES"
|
.IF "$(SYSTEM_LUCENE)" == "YES"
|
||||||
CLASSPATH!:=$(CLASSPATH)$(PATH_SEPERATOR)$(LUCENE_CORE_JAR)$(PATH_SEPERATOR)$(LUCENE_ANALYZERS_JAR)
|
EXTRAJARFILES += $(LUCENE_CORE_JAR) $(LUCENE_ANALYZERS_JAR)
|
||||||
.ELSE
|
.ELSE
|
||||||
JARFILES += lucene-core-2.3.jar lucene-analyzers-2.3.jar
|
JARFILES += lucene-core-2.3.jar lucene-analyzers-2.3.jar
|
||||||
.ENDIF
|
.ENDIF
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
ot o3tl : sal testshl2 BOOST:boost NULL
|
ot o3tl : sal CPPUNIT:cppunit BOOST:boost NULL
|
||||||
ot o3tl usr1 - all ot_mkout NULL
|
ot o3tl usr1 - all ot_mkout NULL
|
||||||
ot o3tl\inc get - all ot_inc NULL
|
ot o3tl\inc get - all ot_inc NULL
|
||||||
ot o3tl\prj get - all ot_prj NULL
|
ot o3tl\prj get - all ot_prj NULL
|
||||||
|
@@ -25,9 +25,9 @@
|
|||||||
#
|
#
|
||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
|
|
||||||
UDK_3.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
registerAllTestFunction;
|
cppunitTestPlugIn;
|
||||||
|
|
||||||
local:
|
local:
|
||||||
*;
|
*;
|
||||||
|
@@ -35,6 +35,9 @@ ENABLE_EXCEPTIONS=TRUE
|
|||||||
# --- Settings -----------------------------------------------------
|
# --- Settings -----------------------------------------------------
|
||||||
|
|
||||||
.INCLUDE : settings.mk
|
.INCLUDE : settings.mk
|
||||||
|
|
||||||
|
CFLAGSCXX += $(CPPUNIT_CFLAGS)
|
||||||
|
|
||||||
.IF "$(L10N_framework)"==""
|
.IF "$(L10N_framework)"==""
|
||||||
# --- Common ----------------------------------------------------------
|
# --- Common ----------------------------------------------------------
|
||||||
|
|
||||||
@@ -48,13 +51,13 @@ SHL1OBJS= \
|
|||||||
|
|
||||||
SHL1TARGET= tests
|
SHL1TARGET= tests
|
||||||
SHL1STDLIBS= $(SALLIB) \
|
SHL1STDLIBS= $(SALLIB) \
|
||||||
$(TESTSHL2LIB)\
|
|
||||||
$(CPPUNITLIB)
|
$(CPPUNITLIB)
|
||||||
|
|
||||||
SHL1IMPLIB= i$(SHL1TARGET)
|
SHL1IMPLIB= i$(SHL1TARGET)
|
||||||
|
|
||||||
DEF1NAME =$(SHL1TARGET)
|
DEF1NAME =$(SHL1TARGET)
|
||||||
SHL1VERSIONMAP = export.map
|
SHL1VERSIONMAP = export.map
|
||||||
|
SHL1RPATH = NONE
|
||||||
|
|
||||||
# END ------------------------------------------------------------------
|
# END ------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -66,16 +69,9 @@ SLOFILES=$(SHL1OBJS)
|
|||||||
.ENDIF # L10N_framework
|
.ENDIF # L10N_framework
|
||||||
|
|
||||||
.INCLUDE : target.mk
|
.INCLUDE : target.mk
|
||||||
.INCLUDE : _cppunit.mk
|
|
||||||
|
|
||||||
# --- Enable test execution in normal build ------------------------
|
# --- Enable test execution in normal build ------------------------
|
||||||
.IF "$(L10N_framework)"==""
|
.IF "$(L10N_framework)"==""
|
||||||
unittest : $(SHL1TARGETN)
|
.INCLUDE : _cppunit.mk
|
||||||
@echo ----------------------------------------------------------
|
|
||||||
@echo - start unit test on library $(SHL1TARGETN)
|
|
||||||
@echo ----------------------------------------------------------
|
|
||||||
$(TESTSHL2) -sf $(mktmp ) $(SHL1TARGETN)
|
|
||||||
|
|
||||||
ALLTAR : unittest
|
|
||||||
.ENDIF # L10N_framework
|
.ENDIF # L10N_framework
|
||||||
|
|
||||||
|
@@ -1,6 +1,9 @@
|
|||||||
// autogenerated file with codegen.pl
|
// autogenerated file with codegen.pl
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
#include "cppunit/plugin/TestPlugIn.h"
|
||||||
|
|
||||||
#include "cow_wrapper_clients.hxx"
|
#include "cow_wrapper_clients.hxx"
|
||||||
|
|
||||||
@@ -119,15 +122,6 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(cow_wrapper_test, "cow_wrapper_test");
|
CPPUNIT_TEST_SUITE_REGISTRATION(cow_wrapper_test);
|
||||||
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// this macro creates an empty function, which will called by the RegisterAllFunctions()
|
|
||||||
// to let the user the possibility to also register some functions by hand.
|
|
||||||
void RegisterAdditionalFunctions(FktRegFuncPtr )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
// NOADDITIONAL;
|
|
||||||
|
|
||||||
|
CPPUNIT_PLUGIN_IMPLEMENT();
|
||||||
|
@@ -25,7 +25,9 @@
|
|||||||
*
|
*
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
|
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestAssert.h"
|
||||||
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
|
||||||
#include <o3tl/heap_ptr.hxx>
|
#include <o3tl/heap_ptr.hxx>
|
||||||
|
|
||||||
@@ -160,4 +162,4 @@ class heap_ptr_test : public CppUnit::TestFixture
|
|||||||
}; // class heap_ptr_test
|
}; // class heap_ptr_test
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(heap_ptr_test, "o3tltests");
|
CPPUNIT_TEST_SUITE_REGISTRATION(heap_ptr_test);
|
||||||
|
@@ -25,8 +25,9 @@
|
|||||||
*
|
*
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
|
|
||||||
|
#include "cppunit/TestAssert.h"
|
||||||
#include <testshl/simpleheader.hxx>
|
#include "cppunit/TestFixture.h"
|
||||||
|
#include "cppunit/extensions/HelperMacros.h"
|
||||||
|
|
||||||
#include <o3tl/range.hxx>
|
#include <o3tl/range.hxx>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -230,4 +231,4 @@ public:
|
|||||||
}; // class range_test
|
}; // class range_test
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(range_test, "o3tltests");
|
CPPUNIT_TEST_SUITE_REGISTRATION(range_test);
|
||||||
|
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <sal/main.h>
|
||||||
#include <rscrsc.hxx>
|
#include <rscrsc.hxx>
|
||||||
#include <rscdb.hxx>
|
#include <rscdb.hxx>
|
||||||
|
|
||||||
@@ -68,15 +69,7 @@ RscVerbosity lcl_determineVerbosity( int argc, char ** argv )
|
|||||||
return RscVerbosityNormal;
|
return RscVerbosityNormal;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined( UNX ) || ( defined( OS2 ) && ( defined( CSET ) || defined ( GCC ))) || defined (WTC) || defined(ICC) || defined(__MINGW32__)
|
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
|
||||||
int main ( int argc, char ** argv) {
|
|
||||||
#else
|
|
||||||
#if defined( MTW )
|
|
||||||
int main ( int argc, char const ** argv) {
|
|
||||||
#else
|
|
||||||
int cdecl main ( int argc, char ** argv) {
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#ifndef UNX
|
#ifndef UNX
|
||||||
#ifdef CSET
|
#ifdef CSET
|
||||||
atexit( ExitProgram );
|
atexit( ExitProgram );
|
||||||
|
@@ -54,6 +54,7 @@
|
|||||||
#endif // UNX
|
#endif // UNX
|
||||||
#include <rsctools.hxx>
|
#include <rsctools.hxx>
|
||||||
#include <rscerror.h>
|
#include <rscerror.h>
|
||||||
|
#include <sal/main.h>
|
||||||
#include <tools/fsys.hxx>
|
#include <tools/fsys.hxx>
|
||||||
|
|
||||||
/*************** C O D E ************************************************/
|
/*************** C O D E ************************************************/
|
||||||
@@ -322,14 +323,8 @@ static BOOL CallRsc2( ByteString aRsc2Name,
|
|||||||
|* Letzte Aenderung MM 05.09.91
|
|* Letzte Aenderung MM 05.09.91
|
||||||
|*
|
|*
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
#if defined UNX || (defined OS2 && (defined CSET || defined GCC )) || defined WTC || defined MTW || defined ICC || defined(__MINGW32__)
|
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
|
||||||
int main ( int argc, char ** argv)
|
|
||||||
{
|
{
|
||||||
#else
|
|
||||||
int cdecl main ( int argc, char ** argv)
|
|
||||||
{
|
|
||||||
#endif
|
|
||||||
|
|
||||||
BOOL bPrePro = TRUE;
|
BOOL bPrePro = TRUE;
|
||||||
BOOL bResFile = TRUE;
|
BOOL bResFile = TRUE;
|
||||||
BOOL bHelp = FALSE;
|
BOOL bHelp = FALSE;
|
||||||
|
@@ -1,10 +0,0 @@
|
|||||||
UDK_3_0_0 {
|
|
||||||
global:
|
|
||||||
GetVersionInfo;
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_getFactory;
|
|
||||||
component_writeInfo;
|
|
||||||
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -65,7 +65,7 @@ SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
|||||||
|
|
||||||
DEF1NAME= $(SHL1TARGET)
|
DEF1NAME= $(SHL1TARGET)
|
||||||
|
|
||||||
SHL1VERSIONMAP= exports.map
|
SHL1VERSIONMAP= $(SOLARENV)/src/component.map
|
||||||
|
|
||||||
# --- Targets ------------------------------------------------------
|
# --- Targets ------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -35,6 +35,8 @@ ENABLE_EXCEPTIONS = true
|
|||||||
|
|
||||||
.INCLUDE : settings.mk
|
.INCLUDE : settings.mk
|
||||||
|
|
||||||
|
CFLAGSCXX += $(CPPUNIT_CFLAGS)
|
||||||
|
|
||||||
# BEGIN ----------------------------------------------------------------
|
# BEGIN ----------------------------------------------------------------
|
||||||
# auto generated Target:job by codegen.pl
|
# auto generated Target:job by codegen.pl
|
||||||
SHL1OBJS= \
|
SHL1OBJS= \
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
UDK_3_0_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -56,7 +56,7 @@ SHL1STDLIBS=\
|
|||||||
$(CPPULIB) \
|
$(CPPULIB) \
|
||||||
$(SALLIB)
|
$(SALLIB)
|
||||||
|
|
||||||
SHL1VERSIONMAP=exports.map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
||||||
DEF1NAME= $(SHL1TARGET)
|
DEF1NAME= $(SHL1TARGET)
|
||||||
|
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
UDK_3_0_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -52,7 +52,7 @@ SHL1STDLIBS=\
|
|||||||
$(CPPULIB) \
|
$(CPPULIB) \
|
||||||
$(SALLIB)
|
$(SALLIB)
|
||||||
|
|
||||||
SHL1VERSIONMAP=exports.map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
||||||
DEF1NAME= $(SHL1TARGET)
|
DEF1NAME= $(SHL1TARGET)
|
||||||
|
|
||||||
|
@@ -27,3 +27,4 @@ st svtools\util nmake - all st_util st_svtgraphic st
|
|||||||
st svtools\source\hatchwindow nmake - all st_hatchwin st_inc NULL
|
st svtools\source\hatchwindow nmake - all st_hatchwin st_inc NULL
|
||||||
st svtools\source\productregistration nmake - all st_prodreg st_util st_inc NULL
|
st svtools\source\productregistration nmake - all st_prodreg st_util st_inc NULL
|
||||||
st svtools\workben\unodialog nmake - all st_workben_udlg st_util NULL
|
st svtools\workben\unodialog nmake - all st_workben_udlg st_util NULL
|
||||||
|
st svtools\qa\unoapi nmake - all st_qa_unoapi NULL
|
||||||
|
51
svtools/qa/unoapi/Test.java
Normal file
51
svtools/qa/unoapi/Test.java
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
/*************************************************************************
|
||||||
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
|
*
|
||||||
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||||
|
*
|
||||||
|
* OpenOffice.org - a multi-platform office productivity suite
|
||||||
|
*
|
||||||
|
* This file is part of OpenOffice.org.
|
||||||
|
*
|
||||||
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License version 3
|
||||||
|
* only, as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License version 3 for more details
|
||||||
|
* (a copy is included in the LICENSE file that accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* version 3 along with OpenOffice.org. If not, see
|
||||||
|
* <http://www.openoffice.org/license.html>
|
||||||
|
* for a copy of the LGPLv3 License.
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
package org.openoffice.svtools.qa.unoapi;
|
||||||
|
|
||||||
|
import org.openoffice.Runner;
|
||||||
|
import org.openoffice.test.OfficeConnection;
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
public final class Test {
|
||||||
|
@org.junit.Before public void setUp() throws Exception {
|
||||||
|
connection.setUp();
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.junit.After public void tearDown()
|
||||||
|
throws InterruptedException, com.sun.star.uno.Exception
|
||||||
|
{
|
||||||
|
connection.tearDown();
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.junit.Test public void test() {
|
||||||
|
assertTrue(
|
||||||
|
Runner.run(
|
||||||
|
"-sce", "svtools.sce", "-xcl", "knownissues.xcl", "-cs",
|
||||||
|
connection.getDescription()));
|
||||||
|
}
|
||||||
|
|
||||||
|
private final OfficeConnection connection = new OfficeConnection();
|
||||||
|
}
|
@@ -1,5 +1,4 @@
|
|||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
#
|
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||||
@@ -22,19 +21,28 @@
|
|||||||
# version 3 along with OpenOffice.org. If not, see
|
# version 3 along with OpenOffice.org. If not, see
|
||||||
# <http://www.openoffice.org/license.html>
|
# <http://www.openoffice.org/license.html>
|
||||||
# for a copy of the LGPLv3 License.
|
# for a copy of the LGPLv3 License.
|
||||||
#
|
#***********************************************************************/
|
||||||
#*************************************************************************
|
|
||||||
|
|
||||||
PRJ=..$/..
|
.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
|
||||||
|
nothing .PHONY:
|
||||||
|
.ELSE
|
||||||
|
|
||||||
PRJNAME=svtools
|
PRJ = ../..
|
||||||
TARGET=qa_unoapi
|
PRJNAME = svtools
|
||||||
|
TARGET = qa_unoapi
|
||||||
|
|
||||||
|
.IF "$(OOO_JUNIT_JAR)" != ""
|
||||||
|
PACKAGE = org/openoffice/svtools/qa/unoapi
|
||||||
|
JAVATESTFILES = Test.java
|
||||||
|
JAVAFILES = $(JAVATESTFILES)
|
||||||
|
JARFILES = OOoRunner.jar ridl.jar test.jar
|
||||||
|
EXTRAJARFILES = $(OOO_JUNIT_JAR)
|
||||||
|
.END
|
||||||
|
|
||||||
.INCLUDE: settings.mk
|
.INCLUDE: settings.mk
|
||||||
|
|
||||||
.INCLUDE: target.mk
|
.INCLUDE: target.mk
|
||||||
|
.INCLUDE: installationtest.mk
|
||||||
|
|
||||||
ALLTAR : UNOAPI_TEST
|
ALLTAR : javatest
|
||||||
|
|
||||||
UNOAPI_TEST:
|
.END
|
||||||
+$(SOLARENV)$/bin$/checkapi -sce svtools.sce -xcl knownissues.xcl -tdoc $(PWD)$/testdocuments
|
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
UDK_3_0_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -55,7 +55,7 @@ SHL1STDLIBS=\
|
|||||||
$(CPPULIB) \
|
$(CPPULIB) \
|
||||||
$(SALLIB)
|
$(SALLIB)
|
||||||
|
|
||||||
SHL1VERSIONMAP=exports.map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
||||||
DEF1NAME= $(SHL1TARGET)
|
DEF1NAME= $(SHL1TARGET)
|
||||||
|
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
UDK_3_0_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -59,7 +59,7 @@ SHL1STDLIBS=\
|
|||||||
$(CPPULIB) \
|
$(CPPULIB) \
|
||||||
$(SALLIB)
|
$(SALLIB)
|
||||||
|
|
||||||
SHL1VERSIONMAP=exports.map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
|
||||||
DEF1NAME= $(SHL1TARGET)
|
DEF1NAME= $(SHL1TARGET)
|
||||||
|
|
||||||
|
@@ -56,7 +56,7 @@ SLOFILES= $(SLO)$/unodialogsample.obj \
|
|||||||
# --- library -----------------------------------
|
# --- library -----------------------------------
|
||||||
|
|
||||||
SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
|
SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
|
||||||
SHL1VERSIONMAP=$(TARGET).map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
|
|
||||||
SHL1STDLIBS= \
|
SHL1STDLIBS= \
|
||||||
$(CPPULIB) \
|
$(CPPULIB) \
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
UDLG_1_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -11,3 +11,4 @@ ti toolkit\source\controls\grid nmake - all ti_grid NULL
|
|||||||
ti toolkit\source\layout\core nmake - all ti_layout_core NULL
|
ti toolkit\source\layout\core nmake - all ti_layout_core NULL
|
||||||
ti toolkit\source\layout\vcl nmake - all ti_layout_vcl NULL
|
ti toolkit\source\layout\vcl nmake - all ti_layout_vcl NULL
|
||||||
ti toolkit\util nmake - all ti_util ti_awt ti_controls ti_layout_core ti_helper ti_tree ti_grid ti_layout_vcl NULL
|
ti toolkit\util nmake - all ti_util ti_awt ti_controls ti_layout_core ti_helper ti_tree ti_grid ti_layout_vcl NULL
|
||||||
|
ti toolkit\qa\unoapi nmake - all ti_qa_unoapi NULL
|
||||||
|
51
toolkit/qa/unoapi/Test.java
Normal file
51
toolkit/qa/unoapi/Test.java
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
/*************************************************************************
|
||||||
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
|
*
|
||||||
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||||
|
*
|
||||||
|
* OpenOffice.org - a multi-platform office productivity suite
|
||||||
|
*
|
||||||
|
* This file is part of OpenOffice.org.
|
||||||
|
*
|
||||||
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License version 3
|
||||||
|
* only, as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License version 3 for more details
|
||||||
|
* (a copy is included in the LICENSE file that accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* version 3 along with OpenOffice.org. If not, see
|
||||||
|
* <http://www.openoffice.org/license.html>
|
||||||
|
* for a copy of the LGPLv3 License.
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
package org.openoffice.toolkit.qa.unoapi;
|
||||||
|
|
||||||
|
import org.openoffice.Runner;
|
||||||
|
import org.openoffice.test.OfficeConnection;
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
public final class Test {
|
||||||
|
@org.junit.Before public void setUp() throws Exception {
|
||||||
|
connection.setUp();
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.junit.After public void tearDown()
|
||||||
|
throws InterruptedException, com.sun.star.uno.Exception
|
||||||
|
{
|
||||||
|
connection.tearDown();
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.junit.Test public void test() {
|
||||||
|
assertTrue(
|
||||||
|
Runner.run(
|
||||||
|
"-sce", "toolkit.sce", "-xcl", "knownissues.xcl", "-tdoc",
|
||||||
|
"testdocuments", "-cs", connection.getDescription()));
|
||||||
|
}
|
||||||
|
|
||||||
|
private final OfficeConnection connection = new OfficeConnection();
|
||||||
|
}
|
@@ -90,11 +90,6 @@ toolkit.AccessibleRadioButton
|
|||||||
toolkit.AccessibleToolBox
|
toolkit.AccessibleToolBox
|
||||||
# -> disabled in toolkit.sce
|
# -> disabled in toolkit.sce
|
||||||
|
|
||||||
### i80788 ###
|
|
||||||
toolkit.Toolkit
|
|
||||||
toolkit.UnoControlDialog
|
|
||||||
# -> disabled in toolkit.sce
|
|
||||||
|
|
||||||
### i86011 ###
|
### i86011 ###
|
||||||
toolkit.UnoControlFileControl
|
toolkit.UnoControlFileControl
|
||||||
# -> disabled in toolkit.sce
|
# -> disabled in toolkit.sce
|
||||||
@@ -240,3 +235,8 @@ toolkit.UnoScrollBarControl::com::sun::star::awt::XScrollBar
|
|||||||
|
|
||||||
### i94344 ###
|
### i94344 ###
|
||||||
toolkit.AccessibleTabPage::com::sun::star::accessibility::XAccessibleText
|
toolkit.AccessibleTabPage::com::sun::star::accessibility::XAccessibleText
|
||||||
|
|
||||||
|
### i109643 ###
|
||||||
|
toolkit.AccessibleMenu::com::sun::star::accessibility::XAccessibleValue
|
||||||
|
toolkit.AccessibleMenuBar::com::sun::star::accessibility::XAccessibleEventBroadcaster
|
||||||
|
toolkit.AccessibleMenuBar::com::sun::star::accessibility::XAccessibleSelection
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
#
|
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||||
@@ -22,22 +21,28 @@
|
|||||||
# version 3 along with OpenOffice.org. If not, see
|
# version 3 along with OpenOffice.org. If not, see
|
||||||
# <http://www.openoffice.org/license.html>
|
# <http://www.openoffice.org/license.html>
|
||||||
# for a copy of the LGPLv3 License.
|
# for a copy of the LGPLv3 License.
|
||||||
#
|
#***********************************************************************/
|
||||||
#*************************************************************************
|
|
||||||
|
|
||||||
PRJ=..$/..
|
.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
|
||||||
|
nothing .PHONY:
|
||||||
|
.ELSE
|
||||||
|
|
||||||
PRJNAME=toolkit
|
PRJ = ../..
|
||||||
TARGET=qa_unoapi
|
PRJNAME = toolkit
|
||||||
|
TARGET = qa_unoapi
|
||||||
|
|
||||||
|
.IF "$(OOO_JUNIT_JAR)" != ""
|
||||||
|
PACKAGE = org/openoffice/toolkit/qa/unoapi
|
||||||
|
JAVATESTFILES = Test.java
|
||||||
|
JAVAFILES = $(JAVATESTFILES)
|
||||||
|
JARFILES = OOoRunner.jar ridl.jar test.jar
|
||||||
|
EXTRAJARFILES = $(OOO_JUNIT_JAR)
|
||||||
|
.END
|
||||||
|
|
||||||
.INCLUDE: settings.mk
|
.INCLUDE: settings.mk
|
||||||
|
|
||||||
.INCLUDE: target.mk
|
.INCLUDE: target.mk
|
||||||
|
.INCLUDE: installationtest.mk
|
||||||
|
|
||||||
ALLTAR : UNOAPI_TEST
|
ALLTAR : javatest
|
||||||
|
|
||||||
UNOAPI_TEST:
|
.END
|
||||||
+$(SOLARENV)$/bin$/checkapi -sce toolkit.sce -xcl knownissues.xcl -tdoc $(PWD)$/testdocuments
|
|
||||||
@echo =======================================================================
|
|
||||||
@echo In case you noticed a failures of toolkit.AccessibleToolBoxItem make sure that the object bar is configured as text and not as icons
|
|
||||||
@echo =======================================================================
|
|
||||||
|
@@ -17,8 +17,8 @@
|
|||||||
-o toolkit.AccessibleScrollBar
|
-o toolkit.AccessibleScrollBar
|
||||||
-o toolkit.AccessibleStatusBar
|
-o toolkit.AccessibleStatusBar
|
||||||
-o toolkit.AccessibleStatusBarItem
|
-o toolkit.AccessibleStatusBarItem
|
||||||
-o toolkit.AccessibleTabControl
|
#i109643 -o toolkit.AccessibleTabControl
|
||||||
-o toolkit.AccessibleTabPage
|
#i109643 -o toolkit.AccessibleTabPage
|
||||||
#i86287 -o toolkit.AccessibleToolBox
|
#i86287 -o toolkit.AccessibleToolBox
|
||||||
#i88605 -o toolkit.AccessibleToolBoxItem
|
#i88605 -o toolkit.AccessibleToolBoxItem
|
||||||
-o toolkit.AccessibleWindow
|
-o toolkit.AccessibleWindow
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
-o toolkit.MutableTreeNode
|
-o toolkit.MutableTreeNode
|
||||||
-o toolkit.TabController
|
-o toolkit.TabController
|
||||||
-o toolkit.TabControllerModel
|
-o toolkit.TabControllerModel
|
||||||
#i80788 -o toolkit.Toolkit
|
-o toolkit.Toolkit
|
||||||
-o toolkit.UnoControlButton
|
-o toolkit.UnoControlButton
|
||||||
-o toolkit.UnoControlButtonModel
|
-o toolkit.UnoControlButtonModel
|
||||||
-o toolkit.UnoControlCheckBox
|
-o toolkit.UnoControlCheckBox
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
-o toolkit.UnoControlCurrencyFieldModel
|
-o toolkit.UnoControlCurrencyFieldModel
|
||||||
-o toolkit.UnoControlDateField
|
-o toolkit.UnoControlDateField
|
||||||
-o toolkit.UnoControlDateFieldModel
|
-o toolkit.UnoControlDateFieldModel
|
||||||
#i80788 -o toolkit.UnoControlDialog
|
#allegedly was i80788, but still broken: -o toolkit.UnoControlDialog
|
||||||
-o toolkit.UnoControlDialogModel
|
-o toolkit.UnoControlDialogModel
|
||||||
-o toolkit.UnoControlEdit
|
-o toolkit.UnoControlEdit
|
||||||
-o toolkit.UnoControlEditModel
|
-o toolkit.UnoControlEditModel
|
||||||
|
@@ -355,7 +355,7 @@ CCommand::CCommand( ByteString &rString )
|
|||||||
{
|
{
|
||||||
rString.SearchAndReplace( '\t', ' ' );
|
rString.SearchAndReplace( '\t', ' ' );
|
||||||
aCommand = rString.GetToken( 0, ' ' );
|
aCommand = rString.GetToken( 0, ' ' );
|
||||||
aCommandLine = Search();
|
aCommandLine = Search( "PATH" );
|
||||||
#ifndef UNX
|
#ifndef UNX
|
||||||
aCommandLine += " /c ";
|
aCommandLine += " /c ";
|
||||||
#else
|
#else
|
||||||
@@ -365,7 +365,7 @@ CCommand::CCommand( ByteString &rString )
|
|||||||
ByteString sCmd( rString.GetToken( 0, ' ' ));
|
ByteString sCmd( rString.GetToken( 0, ' ' ));
|
||||||
ByteString sParam( rString.Copy( sCmd.Len()));
|
ByteString sParam( rString.Copy( sCmd.Len()));
|
||||||
|
|
||||||
aCommandLine += Search( thePath, sCmd );
|
aCommandLine += Search( "PATH", sCmd );
|
||||||
aCommandLine += sParam;
|
aCommandLine += sParam;
|
||||||
|
|
||||||
ImplInit();
|
ImplInit();
|
||||||
@@ -379,7 +379,7 @@ CCommand::CCommand( const char *pChar )
|
|||||||
aString.SearchAndReplace( '\t', ' ' );
|
aString.SearchAndReplace( '\t', ' ' );
|
||||||
aCommand = aString.GetToken( 0, ' ' );
|
aCommand = aString.GetToken( 0, ' ' );
|
||||||
|
|
||||||
aCommandLine = Search();
|
aCommandLine = Search( "PATH" );
|
||||||
#ifndef UNX
|
#ifndef UNX
|
||||||
aCommandLine += " /c ";
|
aCommandLine += " /c ";
|
||||||
#else
|
#else
|
||||||
@@ -390,7 +390,7 @@ CCommand::CCommand( const char *pChar )
|
|||||||
ByteString sCmd( rString.GetToken( 0, ' ' ));
|
ByteString sCmd( rString.GetToken( 0, ' ' ));
|
||||||
ByteString sParam( rString.Copy( sCmd.Len()));
|
ByteString sParam( rString.Copy( sCmd.Len()));
|
||||||
|
|
||||||
aCommandLine += Search( thePath, sCmd );
|
aCommandLine += Search( "PATH", sCmd );
|
||||||
aCommandLine += sParam;
|
aCommandLine += sParam;
|
||||||
|
|
||||||
ImplInit();
|
ImplInit();
|
||||||
|
@@ -36,6 +36,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "bootstrp/prj.hxx"
|
#include "bootstrp/prj.hxx"
|
||||||
|
#include "sal/main.h"
|
||||||
|
|
||||||
#include <tools/string.hxx>
|
#include <tools/string.hxx>
|
||||||
#include <tools/list.hxx>
|
#include <tools/list.hxx>
|
||||||
@@ -78,12 +79,7 @@ static int optopt = 0;
|
|||||||
static int opterr = 0;
|
static int opterr = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv )
|
||||||
int
|
|
||||||
#ifdef WNT
|
|
||||||
_cdecl
|
|
||||||
#endif
|
|
||||||
main( int argc, char **argv )
|
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
char aBuf[255];
|
char aBuf[255];
|
||||||
|
@@ -92,8 +92,6 @@ public:
|
|||||||
void Print();
|
void Print();
|
||||||
};
|
};
|
||||||
|
|
||||||
static ByteString thePath( "PATH" );
|
|
||||||
|
|
||||||
/** Declares and spawns a child process.
|
/** Declares and spawns a child process.
|
||||||
The spawned programm could be a native executable or a schell script.
|
The spawned programm could be a native executable or a schell script.
|
||||||
*/
|
*/
|
||||||
@@ -127,7 +125,7 @@ public:
|
|||||||
@param sItem specifies the system shell
|
@param sItem specifies the system shell
|
||||||
@return the Location (when programm was found)
|
@return the Location (when programm was found)
|
||||||
*/
|
*/
|
||||||
static ByteString Search( ByteString sEnv = thePath,
|
static ByteString Search( ByteString sEnv,
|
||||||
ByteString sItem = COMMAND_SHELL );
|
ByteString sItem = COMMAND_SHELL );
|
||||||
|
|
||||||
/** Spawns the Process
|
/** Spawns the Process
|
||||||
|
@@ -125,19 +125,18 @@ struct DbgDataType
|
|||||||
#define DBG_FUNC_SAVEDATA 5
|
#define DBG_FUNC_SAVEDATA 5
|
||||||
#define DBG_FUNC_SETPRINTMSGBOX 6
|
#define DBG_FUNC_SETPRINTMSGBOX 6
|
||||||
#define DBG_FUNC_SETPRINTWINDOW 7
|
#define DBG_FUNC_SETPRINTWINDOW 7
|
||||||
#define DBG_FUNC_SETPRINTSHELL 8
|
#define DBG_FUNC_SETPRINTTESTTOOL 8
|
||||||
#define DBG_FUNC_SETPRINTTESTTOOL 9
|
#define DBG_FUNC_MEMTEST 9
|
||||||
#define DBG_FUNC_MEMTEST 10
|
#define DBG_FUNC_XTORINFO 10
|
||||||
#define DBG_FUNC_XTORINFO 11
|
#define DBG_FUNC_MEMINFO 11
|
||||||
#define DBG_FUNC_MEMINFO 12
|
#define DBG_FUNC_COREDUMP 12
|
||||||
#define DBG_FUNC_COREDUMP 13
|
#define DBG_FUNC_ALLERROROUT 13
|
||||||
#define DBG_FUNC_ALLERROROUT 14
|
#define DBG_FUNC_SETTESTSOLARMUTEX 14
|
||||||
#define DBG_FUNC_SETTESTSOLARMUTEX 15
|
#define DBG_FUNC_TESTSOLARMUTEX 15
|
||||||
#define DBG_FUNC_TESTSOLARMUTEX 16
|
#define DBG_FUNC_PRINTFILE 16
|
||||||
#define DBG_FUNC_PRINTFILE 17
|
#define DBG_FUNC_GETPRINTMSGBOX 17
|
||||||
#define DBG_FUNC_GETPRINTMSGBOX 18
|
#define DBG_FUNC_FILTERMESSAGE 18 // new for #i38967
|
||||||
#define DBG_FUNC_FILTERMESSAGE 19 // new for #i38967
|
#define DBG_FUNC_UPDATEOSLHOOK 19
|
||||||
#define DBG_FUNC_UPDATEOSLHOOK 20
|
|
||||||
|
|
||||||
TOOLS_DLLPUBLIC void* DbgFunc( USHORT nAction, void* pData = NULL );
|
TOOLS_DLLPUBLIC void* DbgFunc( USHORT nAction, void* pData = NULL );
|
||||||
|
|
||||||
@@ -176,11 +175,6 @@ inline void DbgSetPrintWindow( DbgPrintLine pProc )
|
|||||||
DbgFunc( DBG_FUNC_SETPRINTWINDOW, (void*)(long)pProc );
|
DbgFunc( DBG_FUNC_SETPRINTWINDOW, (void*)(long)pProc );
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void DbgSetPrintShell( DbgPrintLine pProc )
|
|
||||||
{
|
|
||||||
DbgFunc( DBG_FUNC_SETPRINTSHELL, (void*)(long)pProc );
|
|
||||||
}
|
|
||||||
|
|
||||||
inline void DbgSetPrintTestTool( DbgPrintLine pProc )
|
inline void DbgSetPrintTestTool( DbgPrintLine pProc )
|
||||||
{
|
{
|
||||||
DbgFunc( DBG_FUNC_SETPRINTTESTTOOL, (void*)(long)pProc );
|
DbgFunc( DBG_FUNC_SETPRINTTESTTOOL, (void*)(long)pProc );
|
||||||
@@ -344,6 +338,7 @@ void DbgPrintStackTree( void* p );
|
|||||||
|
|
||||||
TOOLS_DLLPUBLIC void DbgOut( const sal_Char* pMsg, USHORT nOutType = DBG_OUT_TRACE,
|
TOOLS_DLLPUBLIC void DbgOut( const sal_Char* pMsg, USHORT nOutType = DBG_OUT_TRACE,
|
||||||
const sal_Char* pFile = NULL, USHORT nLine = 0 );
|
const sal_Char* pFile = NULL, USHORT nLine = 0 );
|
||||||
|
TOOLS_DLLPUBLIC void DbgPrintShell(char const * message);
|
||||||
TOOLS_DLLPUBLIC void DbgOutTypef( USHORT nOutType, const sal_Char* pFStr, ... );
|
TOOLS_DLLPUBLIC void DbgOutTypef( USHORT nOutType, const sal_Char* pFStr, ... );
|
||||||
TOOLS_DLLPUBLIC void DbgOutf( const sal_Char* pFStr, ... );
|
TOOLS_DLLPUBLIC void DbgOutf( const sal_Char* pFStr, ... );
|
||||||
TOOLS_DLLPUBLIC void ImpDbgOutfBuf( sal_Char* pBuf, const sal_Char* pFStr, ... );
|
TOOLS_DLLPUBLIC void ImpDbgOutfBuf( sal_Char* pBuf, const sal_Char* pFStr, ... );
|
||||||
|
@@ -32,6 +32,7 @@ ENABLE_EXCEPTIONS = TRUE
|
|||||||
|
|
||||||
.INCLUDE: settings.mk
|
.INCLUDE: settings.mk
|
||||||
|
|
||||||
|
CFLAGSCXX += $(CPPUNIT_CFLAGS)
|
||||||
DLLPRE = # no leading "lib" on .so files
|
DLLPRE = # no leading "lib" on .so files
|
||||||
|
|
||||||
SHL1TARGET = test_pathutils
|
SHL1TARGET = test_pathutils
|
||||||
|
@@ -151,7 +151,6 @@ struct DebugData
|
|||||||
USHORT bInit;
|
USHORT bInit;
|
||||||
DbgPrintLine pDbgPrintMsgBox;
|
DbgPrintLine pDbgPrintMsgBox;
|
||||||
DbgPrintLine pDbgPrintWindow;
|
DbgPrintLine pDbgPrintWindow;
|
||||||
DbgPrintLine pDbgPrintShell;
|
|
||||||
DbgPrintLine pDbgPrintTestTool;
|
DbgPrintLine pDbgPrintTestTool;
|
||||||
::std::vector< DbgPrintLine >
|
::std::vector< DbgPrintLine >
|
||||||
aDbgPrintUserChannels;
|
aDbgPrintUserChannels;
|
||||||
@@ -166,7 +165,6 @@ struct DebugData
|
|||||||
:bInit( FALSE )
|
:bInit( FALSE )
|
||||||
,pDbgPrintMsgBox( FALSE )
|
,pDbgPrintMsgBox( FALSE )
|
||||||
,pDbgPrintWindow( NULL )
|
,pDbgPrintWindow( NULL )
|
||||||
,pDbgPrintShell( NULL )
|
|
||||||
,pDbgPrintTestTool( NULL )
|
,pDbgPrintTestTool( NULL )
|
||||||
,pProfList( NULL )
|
,pProfList( NULL )
|
||||||
,pXtorList( NULL )
|
,pXtorList( NULL )
|
||||||
@@ -1037,9 +1035,7 @@ static void DebugDeInit()
|
|||||||
pData->aDbgData.nTestFlags &= (DBG_TEST_MEM | DBG_TEST_PROFILING);
|
pData->aDbgData.nTestFlags &= (DBG_TEST_MEM | DBG_TEST_PROFILING);
|
||||||
pData->aDbgPrintUserChannels.clear();
|
pData->aDbgPrintUserChannels.clear();
|
||||||
pData->pDbgPrintTestTool = NULL;
|
pData->pDbgPrintTestTool = NULL;
|
||||||
pData->pDbgPrintShell = NULL;
|
|
||||||
pData->pDbgPrintWindow = NULL;
|
pData->pDbgPrintWindow = NULL;
|
||||||
pData->pDbgPrintShell = NULL;
|
|
||||||
pData->pOldDebugMessageFunc = NULL;
|
pData->pOldDebugMessageFunc = NULL;
|
||||||
ImplDbgDeInitLock();
|
ImplDbgDeInitLock();
|
||||||
}
|
}
|
||||||
@@ -1199,10 +1195,6 @@ void* DbgFunc( USHORT nAction, void* pParam )
|
|||||||
pDebugData->pDbgPrintWindow = (DbgPrintLine)(long)pParam;
|
pDebugData->pDbgPrintWindow = (DbgPrintLine)(long)pParam;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DBG_FUNC_SETPRINTSHELL:
|
|
||||||
pDebugData->pDbgPrintShell = (DbgPrintLine)(long)pParam;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case DBG_FUNC_SETPRINTTESTTOOL:
|
case DBG_FUNC_SETPRINTTESTTOOL:
|
||||||
pDebugData->pDbgPrintTestTool = (DbgPrintLine)(long)pParam;
|
pDebugData->pDbgPrintTestTool = (DbgPrintLine)(long)pParam;
|
||||||
break;
|
break;
|
||||||
@@ -1738,14 +1730,6 @@ void DbgOut( const sal_Char* pMsg, USHORT nDbgOut, const sal_Char* pFile, USHORT
|
|||||||
{
|
{
|
||||||
if ( pData->pDbgPrintMsgBox )
|
if ( pData->pDbgPrintMsgBox )
|
||||||
pData->pDbgPrintMsgBox( aBufOut );
|
pData->pDbgPrintMsgBox( aBufOut );
|
||||||
else
|
|
||||||
nOut = DBG_OUT_SHELL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( nOut == DBG_OUT_SHELL )
|
|
||||||
{
|
|
||||||
if ( pData->pDbgPrintShell )
|
|
||||||
pData->pDbgPrintShell( aBufOut );
|
|
||||||
else
|
else
|
||||||
nOut = DBG_OUT_WINDOW;
|
nOut = DBG_OUT_WINDOW;
|
||||||
}
|
}
|
||||||
@@ -1758,14 +1742,28 @@ void DbgOut( const sal_Char* pMsg, USHORT nDbgOut, const sal_Char* pFile, USHORT
|
|||||||
nOut = DBG_OUT_FILE;
|
nOut = DBG_OUT_FILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( nOut == DBG_OUT_FILE )
|
switch ( nOut )
|
||||||
|
{
|
||||||
|
case DBG_OUT_SHELL:
|
||||||
|
DbgPrintShell( aBufOut );
|
||||||
|
break;
|
||||||
|
case DBG_OUT_FILE:
|
||||||
ImplDbgPrintFile( aBufOut );
|
ImplDbgPrintFile( aBufOut );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
ImplDbgUnlock();
|
ImplDbgUnlock();
|
||||||
|
|
||||||
bIn = FALSE;
|
bIn = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DbgPrintShell(char const * message) {
|
||||||
|
fprintf(stderr, "%s\n", message);
|
||||||
|
#if defined WNT
|
||||||
|
OutputDebugStringA(message);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
void DbgOutTypef( USHORT nDbgOut, const sal_Char* pFStr, ... )
|
void DbgOutTypef( USHORT nDbgOut, const sal_Char* pFStr, ... )
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
#
|
#
|
||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
|
|
||||||
UDK_3.1 {
|
UDK_3_0_0 {
|
||||||
global:
|
global:
|
||||||
registerAllTestFunction;
|
registerAllTestFunction;
|
||||||
|
|
||||||
|
@@ -36,6 +36,8 @@ ENABLE_EXCEPTIONS=TRUE
|
|||||||
|
|
||||||
.INCLUDE : settings.mk
|
.INCLUDE : settings.mk
|
||||||
|
|
||||||
|
CFLAGSCXX += $(CPPUNIT_CFLAGS)
|
||||||
|
|
||||||
# --- Common ----------------------------------------------------------
|
# --- Common ----------------------------------------------------------
|
||||||
|
|
||||||
SHL1OBJS= \
|
SHL1OBJS= \
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
UDK_3_0_0 {
|
|
||||||
global:
|
|
||||||
component_getImplementationEnvironment;
|
|
||||||
component_writeInfo;
|
|
||||||
component_getFactory;
|
|
||||||
local:
|
|
||||||
*;
|
|
||||||
};
|
|
@@ -68,7 +68,7 @@ LIB1OBJFILES=$(SLOFILES)
|
|||||||
|
|
||||||
SHL1TARGET=$(TARGET)
|
SHL1TARGET=$(TARGET)
|
||||||
SHL1IMPLIB=i$(TARGET)
|
SHL1IMPLIB=i$(TARGET)
|
||||||
SHL1VERSIONMAP=exports.map
|
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
|
||||||
|
|
||||||
# @@@ Add additional libs here.
|
# @@@ Add additional libs here.
|
||||||
SHL1STDLIBS=\
|
SHL1STDLIBS=\
|
||||||
|
@@ -211,12 +211,6 @@ namespace utl
|
|||||||
void DesktopTerminationObserver::revokeTerminationListener( ITerminationListener* _pListener )
|
void DesktopTerminationObserver::revokeTerminationListener( ITerminationListener* _pListener )
|
||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
|
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
|
||||||
if ( getListenerAdminData().bAlreadyTerminated )
|
|
||||||
{
|
|
||||||
_pListener->notifyTermination();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Listeners& rListeners = getListenerAdminData().aListeners;
|
Listeners& rListeners = getListenerAdminData().aListeners;
|
||||||
for ( Listeners::iterator lookup = rListeners.begin();
|
for ( Listeners::iterator lookup = rListeners.begin();
|
||||||
lookup != rListeners.end();
|
lookup != rListeners.end();
|
||||||
|
@@ -189,6 +189,10 @@ void SAL_CALL AquaClipboard::setContents(const Reference<XTransferable>& xTransf
|
|||||||
const Reference<XClipboardOwner>& xClipboardOwner)
|
const Reference<XClipboardOwner>& xClipboardOwner)
|
||||||
throw( RuntimeException )
|
throw( RuntimeException )
|
||||||
{
|
{
|
||||||
|
NSArray* types = xTransferable.is() ?
|
||||||
|
mpDataFlavorMapper->flavorSequenceToTypesArray(xTransferable->getTransferDataFlavors()) :
|
||||||
|
[NSArray array];
|
||||||
|
|
||||||
ClearableMutexGuard aGuard(m_aMutex);
|
ClearableMutexGuard aGuard(m_aMutex);
|
||||||
|
|
||||||
Reference<XClipboardOwner> oldOwner(mXClipboardOwner);
|
Reference<XClipboardOwner> oldOwner(mXClipboardOwner);
|
||||||
@@ -197,11 +201,10 @@ void SAL_CALL AquaClipboard::setContents(const Reference<XTransferable>& xTransf
|
|||||||
Reference<XTransferable> oldContent(mXClipboardContent);
|
Reference<XTransferable> oldContent(mXClipboardContent);
|
||||||
mXClipboardContent = xTransferable;
|
mXClipboardContent = xTransferable;
|
||||||
|
|
||||||
NSArray* types = mXClipboardContent.is() ?
|
|
||||||
mpDataFlavorMapper->flavorSequenceToTypesArray(mXClipboardContent->getTransferDataFlavors()) :
|
|
||||||
[NSArray array];
|
|
||||||
mPasteboardChangeCount = [mPasteboard declareTypes: types owner: mEventListener];
|
mPasteboardChangeCount = [mPasteboard declareTypes: types owner: mEventListener];
|
||||||
|
|
||||||
|
aGuard.clear();
|
||||||
|
|
||||||
// if we are already the owner of the clipboard
|
// if we are already the owner of the clipboard
|
||||||
// then fire lost ownership event
|
// then fire lost ownership event
|
||||||
if (oldOwner.is())
|
if (oldOwner.is())
|
||||||
@@ -253,7 +256,7 @@ void SAL_CALL AquaClipboard::removeClipboardListener(const Reference< XClipboard
|
|||||||
|
|
||||||
void AquaClipboard::applicationDidBecomeActive(NSNotification* aNotification)
|
void AquaClipboard::applicationDidBecomeActive(NSNotification* aNotification)
|
||||||
{
|
{
|
||||||
MutexGuard aGuard(m_aMutex);
|
ClearableMutexGuard aGuard(m_aMutex);
|
||||||
|
|
||||||
int currentPboardChgCount = [mPasteboard changeCount];
|
int currentPboardChgCount = [mPasteboard changeCount];
|
||||||
|
|
||||||
@@ -270,6 +273,8 @@ void AquaClipboard::applicationDidBecomeActive(NSNotification* aNotification)
|
|||||||
Reference<XTransferable> oldContent(mXClipboardContent);
|
Reference<XTransferable> oldContent(mXClipboardContent);
|
||||||
mXClipboardContent = Reference<XTransferable>();
|
mXClipboardContent = Reference<XTransferable>();
|
||||||
|
|
||||||
|
aGuard.clear();
|
||||||
|
|
||||||
if (oldOwner.is())
|
if (oldOwner.is())
|
||||||
{
|
{
|
||||||
fireLostClipboardOwnershipEvent(oldOwner, oldContent);
|
fireLostClipboardOwnershipEvent(oldOwner, oldContent);
|
||||||
|
@@ -221,7 +221,7 @@ public:
|
|||||||
bool isType42Capable() const { return m_bType42Capable; }
|
bool isType42Capable() const { return m_bType42Capable; }
|
||||||
ULONG getLanguageLevel() const { return m_nLanguageLevel; }
|
ULONG getLanguageLevel() const { return m_nLanguageLevel; }
|
||||||
|
|
||||||
const String& getDefaultPaperDimension() const;
|
String getDefaultPaperDimension() const;
|
||||||
void getDefaultPaperDimension( int& rWidth, int& rHeight ) const
|
void getDefaultPaperDimension( int& rWidth, int& rHeight ) const
|
||||||
{ getPaperDimension( getDefaultPaperDimension(), rWidth, rHeight ); }
|
{ getPaperDimension( getDefaultPaperDimension(), rWidth, rHeight ); }
|
||||||
bool getPaperDimension( const String& rPaperName,
|
bool getPaperDimension( const String& rPaperName,
|
||||||
@@ -230,12 +230,12 @@ public:
|
|||||||
// returns false if paper not found
|
// returns false if paper not found
|
||||||
int getPaperDimensions() const
|
int getPaperDimensions() const
|
||||||
{ return m_pPaperDimensions ? m_pPaperDimensions->countValues() : 0; }
|
{ return m_pPaperDimensions ? m_pPaperDimensions->countValues() : 0; }
|
||||||
const String& getPaperDimension( int ) const;
|
String getPaperDimension( int ) const;
|
||||||
const String& getPaperDimensionCommand( int ) const;
|
String getPaperDimensionCommand( int ) const;
|
||||||
const String& getPaperDimensionCommand( const String & ) const;
|
String getPaperDimensionCommand( const String & ) const;
|
||||||
|
|
||||||
// match the best paper for width and height
|
// match the best paper for width and height
|
||||||
const String& matchPaper( int nWidth, int nHeight ) const;
|
String matchPaper( int nWidth, int nHeight ) const;
|
||||||
|
|
||||||
bool getMargins( const String& rPaperName,
|
bool getMargins( const String& rPaperName,
|
||||||
int &rLeft, int& rRight,
|
int &rLeft, int& rRight,
|
||||||
@@ -245,27 +245,27 @@ public:
|
|||||||
|
|
||||||
// values int pt
|
// values int pt
|
||||||
|
|
||||||
const String& getDefaultInputSlot() const;
|
String getDefaultInputSlot() const;
|
||||||
int getInputSlots() const
|
int getInputSlots() const
|
||||||
{ return m_pInputSlots ? m_pInputSlots->countValues() : 0; }
|
{ return m_pInputSlots ? m_pInputSlots->countValues() : 0; }
|
||||||
const String& getSlot( int ) const;
|
String getSlot( int ) const;
|
||||||
const String& getSlotCommand( int ) const;
|
String getSlotCommand( int ) const;
|
||||||
const String& getSlotCommand( const String& ) const;
|
String getSlotCommand( const String& ) const;
|
||||||
|
|
||||||
void getDefaultResolution( int& rXRes, int& rYRes ) const;
|
void getDefaultResolution( int& rXRes, int& rYRes ) const;
|
||||||
int getResolutions() const;
|
int getResolutions() const;
|
||||||
void getResolution( int, int& rXRes, int& rYRes ) const;
|
void getResolution( int, int& rXRes, int& rYRes ) const;
|
||||||
const String& getResolutionCommand( int nXRes, int nYRes ) const;
|
String getResolutionCommand( int nXRes, int nYRes ) const;
|
||||||
// values in dpi
|
// values in dpi
|
||||||
void getResolutionFromString( const String&, int&, int& ) const;
|
void getResolutionFromString( const String&, int&, int& ) const;
|
||||||
// helper function
|
// helper function
|
||||||
|
|
||||||
const String& getDefaultDuplexType() const;
|
String getDefaultDuplexType() const;
|
||||||
int getDuplexTypes() const
|
int getDuplexTypes() const
|
||||||
{ return m_pDuplexTypes ? m_pDuplexTypes->countValues() : 0; }
|
{ return m_pDuplexTypes ? m_pDuplexTypes->countValues() : 0; }
|
||||||
const String& getDuplex( int ) const;
|
String getDuplex( int ) const;
|
||||||
const String& getDuplexCommand( int ) const;
|
String getDuplexCommand( int ) const;
|
||||||
const String& getDuplexCommand( const String& ) const;
|
String getDuplexCommand( const String& ) const;
|
||||||
|
|
||||||
int getFonts() const
|
int getFonts() const
|
||||||
{ return m_pFontList ? m_pFontList->countValues() : 0; }
|
{ return m_pFontList ? m_pFontList->countValues() : 0; }
|
||||||
@@ -275,7 +275,7 @@ public:
|
|||||||
void getFontAttributes( const String&,
|
void getFontAttributes( const String&,
|
||||||
String& rEncoding,
|
String& rEncoding,
|
||||||
String& rCharset ) const;
|
String& rCharset ) const;
|
||||||
const String& getFont( int ) const;
|
String getFont( int ) const;
|
||||||
|
|
||||||
|
|
||||||
rtl::OUString translateKey( const rtl::OUString& i_rKey,
|
rtl::OUString translateKey( const rtl::OUString& i_rKey,
|
||||||
|
@@ -1783,8 +1783,6 @@ void DbgDialogTest( Window* pWindow )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
void DbgPrintShell( const char* pLine );
|
|
||||||
|
|
||||||
#ifndef WNT
|
#ifndef WNT
|
||||||
#define USE_VCL_MSGBOX
|
#define USE_VCL_MSGBOX
|
||||||
#define COPY_BUTTON_ID 25
|
#define COPY_BUTTON_ID 25
|
||||||
@@ -1963,27 +1961,6 @@ void DbgPrintWindow( const char* pLine )
|
|||||||
bIn = FALSE;
|
bIn = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
|
||||||
|
|
||||||
void DbgPrintShell( const char* pLine )
|
|
||||||
{
|
|
||||||
#if defined( WNT )
|
|
||||||
// TODO: Shouldn't this be a IsDebuggerPresent()?
|
|
||||||
if ( GetSystemMetrics( SM_DEBUG ) )
|
|
||||||
{
|
|
||||||
strcpy( aDbgOutBuf, pLine );
|
|
||||||
strcat( aDbgOutBuf, "\r\n" );
|
|
||||||
OutputDebugString( aDbgOutBuf );
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
DbgPrintWindow( pLine );
|
|
||||||
#endif
|
|
||||||
#ifdef UNX
|
|
||||||
fprintf( stderr, "%s\n", pLine );
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
|
|
||||||
#ifdef WNT
|
#ifdef WNT
|
||||||
@@ -1996,7 +1973,6 @@ void DbgGUIInit()
|
|||||||
{
|
{
|
||||||
DbgSetPrintMsgBox( DbgPrintMsgBox );
|
DbgSetPrintMsgBox( DbgPrintMsgBox );
|
||||||
DbgSetPrintWindow( DbgPrintWindow );
|
DbgSetPrintWindow( DbgPrintWindow );
|
||||||
DbgSetPrintShell( DbgPrintShell );
|
|
||||||
#ifdef WNT
|
#ifdef WNT
|
||||||
DbgSetTestSolarMutex( ImplDbgTestSolarMutex );
|
DbgSetTestSolarMutex( ImplDbgTestSolarMutex );
|
||||||
#endif
|
#endif
|
||||||
@@ -2008,7 +1984,6 @@ void DbgGUIDeInit()
|
|||||||
{
|
{
|
||||||
DbgSetPrintMsgBox( NULL );
|
DbgSetPrintMsgBox( NULL );
|
||||||
DbgSetPrintWindow( NULL );
|
DbgSetPrintWindow( NULL );
|
||||||
DbgSetPrintShell( NULL );
|
|
||||||
#ifdef WNT
|
#ifdef WNT
|
||||||
DbgSetTestSolarMutex( NULL );
|
DbgSetTestSolarMutex( NULL );
|
||||||
#endif
|
#endif
|
||||||
|
@@ -141,12 +141,16 @@ bool DisplayConnection::dispatchEvent( void* pThis, void* pData, int nBytes )
|
|||||||
SolarMutexReleaser aRel;
|
SolarMutexReleaser aRel;
|
||||||
|
|
||||||
DisplayConnection* This = (DisplayConnection*)pThis;
|
DisplayConnection* This = (DisplayConnection*)pThis;
|
||||||
MutexGuard aGuard( This->m_aMutex );
|
|
||||||
|
|
||||||
Sequence< sal_Int8 > aSeq( (sal_Int8*)pData, nBytes );
|
Sequence< sal_Int8 > aSeq( (sal_Int8*)pData, nBytes );
|
||||||
Any aEvent;
|
Any aEvent;
|
||||||
aEvent <<= aSeq;
|
aEvent <<= aSeq;
|
||||||
for( ::std::list< Reference< XEventHandler > >::const_iterator it = This->m_aHandlers.begin(); it != This->m_aHandlers.end(); ++it )
|
::std::list< Reference< XEventHandler > > handlers;
|
||||||
|
{
|
||||||
|
MutexGuard aGuard( This->m_aMutex );
|
||||||
|
handlers = This->m_aHandlers;
|
||||||
|
}
|
||||||
|
for( ::std::list< Reference< XEventHandler > >::const_iterator it = handlers.begin(); it != handlers.end(); ++it )
|
||||||
if( (*it)->handleEvent( aEvent ) )
|
if( (*it)->handleEvent( aEvent ) )
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
@@ -157,12 +161,16 @@ bool DisplayConnection::dispatchErrorEvent( void* pThis, void* pData, int nBytes
|
|||||||
SolarMutexReleaser aRel;
|
SolarMutexReleaser aRel;
|
||||||
|
|
||||||
DisplayConnection* This = (DisplayConnection*)pThis;
|
DisplayConnection* This = (DisplayConnection*)pThis;
|
||||||
MutexGuard aGuard( This->m_aMutex );
|
|
||||||
|
|
||||||
Sequence< sal_Int8 > aSeq( (sal_Int8*)pData, nBytes );
|
Sequence< sal_Int8 > aSeq( (sal_Int8*)pData, nBytes );
|
||||||
Any aEvent;
|
Any aEvent;
|
||||||
aEvent <<= aSeq;
|
aEvent <<= aSeq;
|
||||||
for( ::std::list< Reference< XEventHandler > >::const_iterator it = This->m_aErrorHandlers.begin(); it != This->m_aErrorHandlers.end(); ++it )
|
::std::list< Reference< XEventHandler > > handlers;
|
||||||
|
{
|
||||||
|
MutexGuard aGuard( This->m_aMutex );
|
||||||
|
handlers = This->m_aErrorHandlers;
|
||||||
|
}
|
||||||
|
for( ::std::list< Reference< XEventHandler > >::const_iterator it = handlers.begin(); it != handlers.end(); ++it )
|
||||||
if( (*it)->handleEvent( aEvent ) )
|
if( (*it)->handleEvent( aEvent ) )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@@ -55,6 +55,19 @@ extern "C"
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool SvpSalInstance::isFrameAlive( const SalFrame* pFrame ) const
|
||||||
|
{
|
||||||
|
for( std::list< SalFrame* >::const_iterator it = m_aFrames.begin();
|
||||||
|
it != m_aFrames.end(); ++it )
|
||||||
|
{
|
||||||
|
if( *it == pFrame )
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
SvpSalInstance* SvpSalInstance::s_pDefaultInstance = NULL;
|
SvpSalInstance* SvpSalInstance::s_pDefaultInstance = NULL;
|
||||||
|
|
||||||
SvpSalInstance::SvpSalInstance()
|
SvpSalInstance::SvpSalInstance()
|
||||||
@@ -345,6 +358,8 @@ void SvpSalInstance::Yield( bool bWait, bool bHandleAllCurrentEvents )
|
|||||||
if( bEvent )
|
if( bEvent )
|
||||||
{
|
{
|
||||||
for( std::list<SalUserEvent>::const_iterator it = aEvents.begin(); it != aEvents.end(); ++it )
|
for( std::list<SalUserEvent>::const_iterator it = aEvents.begin(); it != aEvents.end(); ++it )
|
||||||
|
{
|
||||||
|
if ( isFrameAlive( it->m_pFrame ) )
|
||||||
{
|
{
|
||||||
it->m_pFrame->CallCallback( it->m_nEvent, it->m_pData );
|
it->m_pFrame->CallCallback( it->m_nEvent, it->m_pData );
|
||||||
if( it->m_nEvent == SALEVENT_RESIZE )
|
if( it->m_nEvent == SALEVENT_RESIZE )
|
||||||
@@ -355,6 +370,7 @@ void SvpSalInstance::Yield( bool bWait, bool bHandleAllCurrentEvents )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bEvent = CheckTimeout() || bEvent;
|
bEvent = CheckTimeout() || bEvent;
|
||||||
|
|
||||||
|
@@ -108,6 +108,9 @@ class SvpSalInstance : public SalInstance
|
|||||||
std::list< SalUserEvent > m_aUserEvents;
|
std::list< SalUserEvent > m_aUserEvents;
|
||||||
|
|
||||||
std::list< SalFrame* > m_aFrames;
|
std::list< SalFrame* > m_aFrames;
|
||||||
|
|
||||||
|
bool isFrameAlive( const SalFrame* pFrame ) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static SvpSalInstance* s_pDefaultInstance;
|
static SvpSalInstance* s_pDefaultInstance;
|
||||||
|
|
||||||
|
@@ -258,7 +258,6 @@ using namespace rtl;
|
|||||||
|
|
||||||
std::list< PPDParser* > PPDParser::aAllParsers;
|
std::list< PPDParser* > PPDParser::aAllParsers;
|
||||||
std::hash_map< OUString, OUString, OUStringHash >* PPDParser::pAllPPDFiles = NULL;
|
std::hash_map< OUString, OUString, OUStringHash >* PPDParser::pAllPPDFiles = NULL;
|
||||||
static String aEmptyString;
|
|
||||||
|
|
||||||
class PPDDecompressStream
|
class PPDDecompressStream
|
||||||
{
|
{
|
||||||
@@ -1284,12 +1283,12 @@ void PPDParser::parseConstraint( const ByteString& rLine )
|
|||||||
m_aConstraints.push_back( aConstraint );
|
m_aConstraints.push_back( aConstraint );
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getDefaultPaperDimension() const
|
String PPDParser::getDefaultPaperDimension() const
|
||||||
{
|
{
|
||||||
if( m_pDefaultPaperDimension )
|
if( m_pDefaultPaperDimension )
|
||||||
return m_pDefaultPaperDimension->m_aOption;
|
return m_pDefaultPaperDimension->m_aOption;
|
||||||
|
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PPDParser::getMargins(
|
bool PPDParser::getMargins(
|
||||||
@@ -1356,10 +1355,10 @@ bool PPDParser::getPaperDimension(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::matchPaper( int nWidth, int nHeight ) const
|
String PPDParser::matchPaper( int nWidth, int nHeight ) const
|
||||||
{
|
{
|
||||||
if( ! m_pPaperDimensions )
|
if( ! m_pPaperDimensions )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
int nPDim = -1;
|
int nPDim = -1;
|
||||||
double PDWidth, PDHeight;
|
double PDWidth, PDHeight;
|
||||||
@@ -1393,51 +1392,51 @@ const String& PPDParser::matchPaper( int nWidth, int nHeight ) const
|
|||||||
{
|
{
|
||||||
// swap portrait/landscape and try again
|
// swap portrait/landscape and try again
|
||||||
bDontSwap = true;
|
bDontSwap = true;
|
||||||
const String& rRet = matchPaper( nHeight, nWidth );
|
String rRet = matchPaper( nHeight, nWidth );
|
||||||
bDontSwap = false;
|
bDontSwap = false;
|
||||||
return rRet;
|
return rRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
return nPDim != -1 ? m_pPaperDimensions->getValue( nPDim )->m_aOption : aEmptyString;
|
return nPDim != -1 ? m_pPaperDimensions->getValue( nPDim )->m_aOption : String();
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getDefaultInputSlot() const
|
String PPDParser::getDefaultInputSlot() const
|
||||||
{
|
{
|
||||||
if( m_pDefaultInputSlot )
|
if( m_pDefaultInputSlot )
|
||||||
return m_pDefaultInputSlot->m_aValue;
|
return m_pDefaultInputSlot->m_aValue;
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getSlot( int nSlot ) const
|
String PPDParser::getSlot( int nSlot ) const
|
||||||
{
|
{
|
||||||
if( ! m_pInputSlots )
|
if( ! m_pInputSlots )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
if( nSlot > 0 && nSlot < m_pInputSlots->countValues() )
|
if( nSlot > 0 && nSlot < m_pInputSlots->countValues() )
|
||||||
return m_pInputSlots->getValue( nSlot )->m_aOption;
|
return m_pInputSlots->getValue( nSlot )->m_aOption;
|
||||||
else if( m_pInputSlots->countValues() > 0 )
|
else if( m_pInputSlots->countValues() > 0 )
|
||||||
return m_pInputSlots->getValue( (ULONG)0 )->m_aOption;
|
return m_pInputSlots->getValue( (ULONG)0 )->m_aOption;
|
||||||
|
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getSlotCommand( int nSlot ) const
|
String PPDParser::getSlotCommand( int nSlot ) const
|
||||||
{
|
{
|
||||||
if( ! m_pInputSlots )
|
if( ! m_pInputSlots )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
if( nSlot > 0 && nSlot < m_pInputSlots->countValues() )
|
if( nSlot > 0 && nSlot < m_pInputSlots->countValues() )
|
||||||
return m_pInputSlots->getValue( nSlot )->m_aValue;
|
return m_pInputSlots->getValue( nSlot )->m_aValue;
|
||||||
else if( m_pInputSlots->countValues() > 0 )
|
else if( m_pInputSlots->countValues() > 0 )
|
||||||
return m_pInputSlots->getValue( (ULONG)0 )->m_aValue;
|
return m_pInputSlots->getValue( (ULONG)0 )->m_aValue;
|
||||||
|
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getSlotCommand( const String& rSlot ) const
|
String PPDParser::getSlotCommand( const String& rSlot ) const
|
||||||
{
|
{
|
||||||
if( ! m_pInputSlots )
|
if( ! m_pInputSlots )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
for( int i=0; i < m_pInputSlots->countValues(); i++ )
|
for( int i=0; i < m_pInputSlots->countValues(); i++ )
|
||||||
{
|
{
|
||||||
@@ -1445,39 +1444,39 @@ const String& PPDParser::getSlotCommand( const String& rSlot ) const
|
|||||||
if( pValue->m_aOption == rSlot )
|
if( pValue->m_aOption == rSlot )
|
||||||
return pValue->m_aValue;
|
return pValue->m_aValue;
|
||||||
}
|
}
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getPaperDimension( int nPaperDimension ) const
|
String PPDParser::getPaperDimension( int nPaperDimension ) const
|
||||||
{
|
{
|
||||||
if( ! m_pPaperDimensions )
|
if( ! m_pPaperDimensions )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
if( nPaperDimension > 0 && nPaperDimension < m_pPaperDimensions->countValues() )
|
if( nPaperDimension > 0 && nPaperDimension < m_pPaperDimensions->countValues() )
|
||||||
return m_pPaperDimensions->getValue( nPaperDimension )->m_aOption;
|
return m_pPaperDimensions->getValue( nPaperDimension )->m_aOption;
|
||||||
else if( m_pPaperDimensions->countValues() > 0 )
|
else if( m_pPaperDimensions->countValues() > 0 )
|
||||||
return m_pPaperDimensions->getValue( (ULONG)0 )->m_aOption;
|
return m_pPaperDimensions->getValue( (ULONG)0 )->m_aOption;
|
||||||
|
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getPaperDimensionCommand( int nPaperDimension ) const
|
String PPDParser::getPaperDimensionCommand( int nPaperDimension ) const
|
||||||
{
|
{
|
||||||
if( ! m_pPaperDimensions )
|
if( ! m_pPaperDimensions )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
if( nPaperDimension > 0 && nPaperDimension < m_pPaperDimensions->countValues() )
|
if( nPaperDimension > 0 && nPaperDimension < m_pPaperDimensions->countValues() )
|
||||||
return m_pPaperDimensions->getValue( nPaperDimension )->m_aValue;
|
return m_pPaperDimensions->getValue( nPaperDimension )->m_aValue;
|
||||||
else if( m_pPaperDimensions->countValues() > 0 )
|
else if( m_pPaperDimensions->countValues() > 0 )
|
||||||
return m_pPaperDimensions->getValue( (ULONG)0 )->m_aValue;
|
return m_pPaperDimensions->getValue( (ULONG)0 )->m_aValue;
|
||||||
|
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getPaperDimensionCommand( const String& rPaperDimension ) const
|
String PPDParser::getPaperDimensionCommand( const String& rPaperDimension ) const
|
||||||
{
|
{
|
||||||
if( ! m_pPaperDimensions )
|
if( ! m_pPaperDimensions )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
for( int i=0; i < m_pPaperDimensions->countValues(); i++ )
|
for( int i=0; i < m_pPaperDimensions->countValues(); i++ )
|
||||||
{
|
{
|
||||||
@@ -1485,7 +1484,7 @@ const String& PPDParser::getPaperDimensionCommand( const String& rPaperDimension
|
|||||||
if( pValue->m_aOption == rPaperDimension )
|
if( pValue->m_aOption == rPaperDimension )
|
||||||
return pValue->m_aValue;
|
return pValue->m_aValue;
|
||||||
}
|
}
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PPDParser::getResolutionFromString(
|
void PPDParser::getResolutionFromString(
|
||||||
@@ -1543,13 +1542,13 @@ void PPDParser::getResolution( int nNr, int& rXRes, int& rYRes ) const
|
|||||||
rXRes, rYRes );
|
rXRes, rYRes );
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getResolutionCommand( int nXRes, int nYRes ) const
|
String PPDParser::getResolutionCommand( int nXRes, int nYRes ) const
|
||||||
{
|
{
|
||||||
if( ( ! m_pResolutions || m_pResolutions->countValues() == 0 ) && m_pDefaultResolution )
|
if( ( ! m_pResolutions || m_pResolutions->countValues() == 0 ) && m_pDefaultResolution )
|
||||||
return m_pDefaultResolution->m_aValue;
|
return m_pDefaultResolution->m_aValue;
|
||||||
|
|
||||||
if( ! m_pResolutions )
|
if( ! m_pResolutions )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
int nX, nY;
|
int nX, nY;
|
||||||
for( int i = 0; i < m_pResolutions->countValues(); i++ )
|
for( int i = 0; i < m_pResolutions->countValues(); i++ )
|
||||||
@@ -1559,46 +1558,46 @@ const String& PPDParser::getResolutionCommand( int nXRes, int nYRes ) const
|
|||||||
if( nX == nXRes && nY == nYRes )
|
if( nX == nXRes && nY == nYRes )
|
||||||
return m_pResolutions->getValue( i )->m_aValue;
|
return m_pResolutions->getValue( i )->m_aValue;
|
||||||
}
|
}
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getDefaultDuplexType() const
|
String PPDParser::getDefaultDuplexType() const
|
||||||
{
|
{
|
||||||
if( m_pDefaultDuplexType )
|
if( m_pDefaultDuplexType )
|
||||||
return m_pDefaultDuplexType->m_aValue;
|
return m_pDefaultDuplexType->m_aValue;
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getDuplex( int nDuplex ) const
|
String PPDParser::getDuplex( int nDuplex ) const
|
||||||
{
|
{
|
||||||
if( ! m_pDuplexTypes )
|
if( ! m_pDuplexTypes )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
if( nDuplex > 0 && nDuplex < m_pDuplexTypes->countValues() )
|
if( nDuplex > 0 && nDuplex < m_pDuplexTypes->countValues() )
|
||||||
return m_pDuplexTypes->getValue( nDuplex )->m_aOption;
|
return m_pDuplexTypes->getValue( nDuplex )->m_aOption;
|
||||||
else if( m_pDuplexTypes->countValues() > 0 )
|
else if( m_pDuplexTypes->countValues() > 0 )
|
||||||
return m_pDuplexTypes->getValue( (ULONG)0 )->m_aOption;
|
return m_pDuplexTypes->getValue( (ULONG)0 )->m_aOption;
|
||||||
|
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getDuplexCommand( int nDuplex ) const
|
String PPDParser::getDuplexCommand( int nDuplex ) const
|
||||||
{
|
{
|
||||||
if( ! m_pDuplexTypes )
|
if( ! m_pDuplexTypes )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
if( nDuplex > 0 && nDuplex < m_pDuplexTypes->countValues() )
|
if( nDuplex > 0 && nDuplex < m_pDuplexTypes->countValues() )
|
||||||
return m_pDuplexTypes->getValue( nDuplex )->m_aValue;
|
return m_pDuplexTypes->getValue( nDuplex )->m_aValue;
|
||||||
else if( m_pDuplexTypes->countValues() > 0 )
|
else if( m_pDuplexTypes->countValues() > 0 )
|
||||||
return m_pDuplexTypes->getValue( (ULONG)0 )->m_aValue;
|
return m_pDuplexTypes->getValue( (ULONG)0 )->m_aValue;
|
||||||
|
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getDuplexCommand( const String& rDuplex ) const
|
String PPDParser::getDuplexCommand( const String& rDuplex ) const
|
||||||
{
|
{
|
||||||
if( ! m_pDuplexTypes )
|
if( ! m_pDuplexTypes )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
for( int i=0; i < m_pDuplexTypes->countValues(); i++ )
|
for( int i=0; i < m_pDuplexTypes->countValues(); i++ )
|
||||||
{
|
{
|
||||||
@@ -1606,7 +1605,7 @@ const String& PPDParser::getDuplexCommand( const String& rDuplex ) const
|
|||||||
if( pValue->m_aOption == rDuplex )
|
if( pValue->m_aOption == rDuplex )
|
||||||
return pValue->m_aValue;
|
return pValue->m_aValue;
|
||||||
}
|
}
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PPDParser::getFontAttributes(
|
void PPDParser::getFontAttributes(
|
||||||
@@ -1636,14 +1635,14 @@ void PPDParser::getFontAttributes(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const String& PPDParser::getFont( int nFont ) const
|
String PPDParser::getFont( int nFont ) const
|
||||||
{
|
{
|
||||||
if( ! m_pFontList )
|
if( ! m_pFontList )
|
||||||
return aEmptyString;
|
return String();
|
||||||
|
|
||||||
if( nFont >=0 && nFont < m_pFontList->countValues() )
|
if( nFont >=0 && nFont < m_pFontList->countValues() )
|
||||||
return m_pFontList->getValue( nFont )->m_aOption;
|
return m_pFontList->getValue( nFont )->m_aOption;
|
||||||
return aEmptyString;
|
return String();
|
||||||
}
|
}
|
||||||
|
|
||||||
rtl::OUString PPDParser::translateKey( const rtl::OUString& i_rKey,
|
rtl::OUString PPDParser::translateKey( const rtl::OUString& i_rKey,
|
||||||
|
Reference in New Issue
Block a user