2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02:00
|
|
|
/*
|
|
|
|
* 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/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2013-08-18 01:53:27 +02:00
|
|
|
#ifndef RUBYLIST_HXX
|
|
|
|
#define RUBYLIST_HXX
|
2001-01-23 19:25:26 +00:00
|
|
|
|
|
|
|
#include <swtypes.hxx>
|
|
|
|
#include <fmtruby.hxx>
|
2012-05-16 10:38:38 +02:00
|
|
|
#include <boost/ptr_container/ptr_vector.hpp>
|
2001-01-23 19:25:26 +00:00
|
|
|
|
|
|
|
class SwRubyListEntry
|
|
|
|
{
|
2013-08-18 01:53:27 +02:00
|
|
|
OUString m_sText;
|
|
|
|
SwFmtRuby m_aRubyAttr;
|
2001-01-23 19:25:26 +00:00
|
|
|
public:
|
2013-08-18 01:53:27 +02:00
|
|
|
SwRubyListEntry() : m_aRubyAttr( OUString() ) {}
|
2001-01-23 19:25:26 +00:00
|
|
|
~SwRubyListEntry();
|
|
|
|
|
2013-08-18 01:53:27 +02:00
|
|
|
OUString GetText() const { return m_sText; }
|
|
|
|
void SetText( const OUString& rStr ) { m_sText = rStr; }
|
2001-01-23 19:25:26 +00:00
|
|
|
|
2013-08-18 01:53:27 +02:00
|
|
|
const SwFmtRuby& GetRubyAttr() const { return m_aRubyAttr; }
|
|
|
|
SwFmtRuby& GetRubyAttr() { return m_aRubyAttr; }
|
|
|
|
void SetRubyAttr( const SwFmtRuby& rAttr ) { m_aRubyAttr = rAttr; }
|
2001-01-23 19:25:26 +00:00
|
|
|
};
|
|
|
|
|
2012-05-16 10:38:38 +02:00
|
|
|
class SwRubyList : public boost::ptr_vector<SwRubyListEntry> {};
|
2001-01-23 19:25:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif //_RUBYLIST_HXX
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|