tdf#150789 - FILEOPEN PPTX: fix text in SmartArt vertically off
[LibreOffice.git] / connectivity / source / drivers / jdbc / String.cxx
blobe229ef54a39a67a09ec6612b2d8a8e0d698b9fa9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <java/lang/String.hxx>
21 #include <java/tools.hxx>
22 using namespace connectivity;
24 //************ Class: java.lang.String
26 jclass java_lang_String::theClass = nullptr;
28 java_lang_String::~java_lang_String() {}
30 jclass java_lang_String::getMyClass() const { return st_getMyClass(); }
31 jclass java_lang_String::st_getMyClass()
33 // the class needs to be fetched only once, that is why it is static
34 if (!theClass)
35 theClass = findMyClass("java/lang/String");
36 return theClass;
39 java_lang_String::operator OUString()
41 SDBThreadAttach t;
42 if (!t.pEnv)
43 return OUString();
44 return JavaString2String(t.pEnv, static_cast<jstring>(object));
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */