/* -*- 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/. * * 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 .
*/
bool SvxHorJustifyItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
{
nMemberId &= ~CONVERT_TWIPS; switch ( nMemberId )
{ case MID_HORJUST_HORJUST:
{
table::CellHoriJustify eUno = table::CellHoriJustify_STANDARD; switch ( GetValue() )
{ case SvxCellHorJustify::Standard: eUno = table::CellHoriJustify_STANDARD; break; case SvxCellHorJustify::Left: eUno = table::CellHoriJustify_LEFT; break; case SvxCellHorJustify::Center: eUno = table::CellHoriJustify_CENTER; break; case SvxCellHorJustify::Right: eUno = table::CellHoriJustify_RIGHT; break; case SvxCellHorJustify::Block: eUno = table::CellHoriJustify_BLOCK; break; case SvxCellHorJustify::Repeat: eUno = table::CellHoriJustify_REPEAT; break;
}
rVal <<= eUno;
} break; case MID_HORJUST_ADJUST:
{ // ParagraphAdjust values, as in SvxAdjustItem // (same value for ParaAdjust and ParaLastLineAdjust)
style::ParagraphAdjust nAdjust = style::ParagraphAdjust_LEFT; switch ( GetValue() )
{ // ParagraphAdjust_LEFT is used for STANDARD and REPEAT case SvxCellHorJustify::Standard: case SvxCellHorJustify::Repeat: case SvxCellHorJustify::Left: nAdjust = style::ParagraphAdjust_LEFT; break; case SvxCellHorJustify::Center: nAdjust = style::ParagraphAdjust_CENTER; break; case SvxCellHorJustify::Right: nAdjust = style::ParagraphAdjust_RIGHT; break; case SvxCellHorJustify::Block: nAdjust = style::ParagraphAdjust_BLOCK; break;
}
rVal <<= static_cast<sal_Int16>(nAdjust); // as sal_Int16
} break;
} returntrue;
}
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.