[Bug 55410] on windows automatically fill in the default user's name into tools->options->user data

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 7 18:30:03 PDT 2015


https://bugs.documentfoundation.org/show_bug.cgi?id=55410

--- Comment #9 from Brent Ritzema <brentritztro96 at gmail.com> ---
Alright well I made that change to UserProfile.xcu... However it still is not
working. Maybe I am doing something wrong in desktopbackend.cxx? Here is what I
did just as a quick test:

css::uno::Any Default::getPropertyValue(OUString const & PropertyName)
    throw (
        css::beans::UnknownPropertyException,
css::lang::WrappedTargetException,
        css::uno::RuntimeException, std::exception)
{
    //Added these next 5 lines
    if ( PropertyName == "givenname")
    {
        css::uno::Any value = "brent";
        return css::uno::makeAny(value);
    }
    if ( PropertyName == "EnableATToolSupport" ||
         PropertyName == "ExternalMailer" ||
         PropertyName == "SourceViewFontHeight" ||
         PropertyName == "SourceViewFontName" ||
         PropertyName == "TemplatePathVariable" ||
         PropertyName == "WorkPathVariable" ||
         PropertyName == "ooInetFTPProxyName" ||
         PropertyName == "ooInetFTPProxyPort" ||
         PropertyName == "ooInetHTTPProxyName" ||
         PropertyName == "ooInetHTTPProxyPort" ||
         PropertyName == "ooInetHTTPSProxyName" ||
         PropertyName == "ooInetHTTPSProxyPort" ||
         PropertyName == "ooInetNoProxy" ||
         PropertyName == "ooInetProxyType" ||
         PropertyName == "givenname" ||
         PropertyName == "sn" )
    {

        return css::uno::makeAny(css::beans::Optional< css::uno::Any >());
    }
    throw css::beans::UnknownPropertyException(
        PropertyName, static_cast< cppu::OWeakObject * >(this));
}

When I go to the options my name still does not appear (I did delete the user
directory every time).

Any more help is appreciated :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20150408/b63900bf/attachment.html>


More information about the LibreOffice mailing list