Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi, 


Michael Meeks-2 wrote
I've been looking into  bug #60700
<https://bugs.freedesktop.org/show_bug.cgi?id=60700>   and have
currently
managed to figure out when those empty directories are created.

      When ? well - code-wise, I suggest you git grep for the name you find
in the zip package:

      git grep '"Configurations2'

      Regina's pointers to the framework/ code - which is almost certainly
the culprit might find why in fact we never write anything to them ;-)
[ just leave them lingering around empty ].

      That file attached has an accelerator/current.xml listed a quick:

      cd framework
      git grep '"current'

      hit:

void SAL_CALL XCUBasedAcceleratorConfiguration::storeToStorage(const
css::uno::Reference< css::embed::XStorage >& xStorage)
    throw(css::uno::Exception       ,
      css::uno::RuntimeException)

The first place that i found where these directories are created is in 
framework/source/uiconfiguration/uiconfigurationmanager.cxx: 
void UIConfigurationManager::impl_Initialize()
...
xElementTypeStorage = m_xDocConfigStorage->openStorageElement(
rtl::OUString::createFromAscii( UIELEMENTTYPENAMES[i] ), nModes ); 
...

Without this bit, an empty .odf does not end up containing those
directories.
On the one hand, there are other similar calls in this and other files, so
it may have just been a slip
up when writing these. On the other hand, i didn't have any good examples to
test this out.

Unfortunately, i have had some college homework and have not got around to
reading Regina's posts,
and, since no one responded to this for some time, i did not investigate
further.
I will do so now that there is at least one example and update you if i
figure it out.

Thank you for your help, 

Alex Ivan



--
View this message in context: 
http://nabble.documentfoundation.org/Need-help-regarding-BUG-60700-tp4041113p4044229.html
Sent from the Dev mailing list archive at Nabble.com.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.