/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/// Tests the handling of the .uno:ClassificationApply command in various applications. class ClassificationTest : public UnoApiTest
{ void testClassification();
void ClassificationTest::testWriter()
{ // Test SID_CLASSIFICATION_APPLY handling in SwDocShell::Execute().
loadFromURL(u"private:factory/swriter"_ustr); // This resulted in a beans::UnknownPropertyException when the request wasn't handled.
testClassification();
}
void ClassificationTest::testCalc()
{ // Test SID_CLASSIFICATION_APPLY handling in ScFormatShell::ExecuteStyle().
loadFromURL(u"private:factory/scalc"_ustr); // This resulted in a beans::UnknownPropertyException when the request wasn't handled.
testClassification();
}
void ClassificationTest::testImpress()
{ // Test SID_CLASSIFICATION_APPLY handling in sd::DrawViewShell::FuTemporary().
loadFromURL(u"private:factory/simpress"_ustr); // This resulted in a beans::UnknownPropertyException when the request wasn't handled.
testClassification();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.