/* -*- 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 .
*/
sal_UCS4 nDecimalValue = charValue.iterateCodePoints(&o3tl::temporary(sal_Int32(1)), -1); /* get the character name */
UErrorCode errorCode = U_ZERO_ERROR; // icu has a private uprv_getMaxCharNameLength function which returns the max possible // length of this property. Unicode 3.2 max char name length was 83 char buffer[100];
u_charName(nDecimalValue, U_UNICODE_CHAR_NAME, buffer, sizeof(buffer), &errorCode); if (U_SUCCESS(errorCode))
{
rDecimalValue = nDecimalValue;
rCharName = OUString::createFromAscii(buffer); returntrue;
} returnfalse;
}
OUString SvxCharView::RequestHelp(tools::Rectangle& rHelpRect)
{ // Gtk3 requires a rectangle be specified for the tooltip to display, X11 does not.
rHelpRect = tools::Rectangle(Point(), GetOutputSizePixel()); return GetCharInfoText();
}
bool SvxCharView::MouseButtonDown(const MouseEvent& rMEvt)
{ if (rMEvt.IsLeft())
{ if (!(rMEvt.GetClicks() % 2) && maHasInsert)
{
InsertCharToDoc();
}
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); const Color aWindowTextColor(rStyleSettings.GetFieldTextColor());
Color aHighlightColor(rStyleSettings.GetHighlightColor());
Color aHighlightTextColor(rStyleSettings.GetHighlightTextColor());
Color aFillColor(rStyleSettings.GetWindowColor());
Color aTextColor(rStyleSettings.GetWindowTextColor());
Color aShadowColor(rStyleSettings.GetShadowColor());
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.