2012-05-03 23:18:01 -04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
2013-04-19 21:10:42 +01:00
|
|
|
* This file is part of the LibreOffice project.
|
2012-05-03 23:18:01 -04:00
|
|
|
*
|
2013-04-19 21:10:42 +01:00
|
|
|
* 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/.
|
2012-05-03 23:18:01 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "test/text/xtext.hxx"
|
|
|
|
|
2013-04-26 14:38:52 +02:00
|
|
|
using namespace css;
|
|
|
|
using namespace css::uno;
|
2012-05-03 23:18:01 -04:00
|
|
|
|
|
|
|
namespace apitest {
|
|
|
|
|
|
|
|
XText::~XText() {}
|
|
|
|
|
2012-05-03 23:31:30 -04:00
|
|
|
void XText::testInsertRemoveTextContent()
|
2012-05-03 23:18:01 -04:00
|
|
|
{
|
|
|
|
uno::Reference<text::XText> xText(init(), UNO_QUERY_THROW);
|
|
|
|
uno::Reference<text::XTextRange> xCursor(xText->createTextCursor(), UNO_QUERY_THROW);
|
|
|
|
|
|
|
|
xText->insertTextContent(xCursor, getTextContent(), sal_False);
|
|
|
|
xText->removeTextContent(getTextContent());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|