summaryrefslogtreecommitdiff
path: root/test/source/bootstrapfixture.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/bootstrapfixture.cxx')
-rw-r--r--test/source/bootstrapfixture.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx
index 4d6b54a8f879..d05ae03d39e9 100644
--- a/test/source/bootstrapfixture.cxx
+++ b/test/source/bootstrapfixture.cxx
@@ -18,6 +18,7 @@
#include <com/sun/star/ucb/XContentProvider.hpp>
#include <com/sun/star/ucb/XUniversalContentBroker.hpp>
+#include <vcl/outdev.hxx>
#include <vcl/svapp.hxx>
#include <tools/link.hxx>
#include <vcl/graphicfilter.hxx>
@@ -237,4 +238,10 @@ IMPL_STATIC_LINK(
return GraphicFilter::GetGraphicFilter().GetFilterCallback().Call( rData );
}
+bool test::BootstrapFixture::IsDefaultDPI()
+{
+ return (Application::GetDefaultDevice()->GetDPIX() == 96
+ && Application::GetDefaultDevice()->GetDPIY() == 96);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */