taskcreator.cxx (07a3d7f1) taskcreator.cxx (796b7e2a)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 116 unchanged lines hidden (view full) ---

125
126 xCreator = css::uno::Reference< css::lang::XSingleServiceFactory >(
127 xSMGR->createInstance(sCreator), css::uno::UNO_QUERY_THROW);
128 }
129 catch(const css::uno::Exception&)
130 {}
131
132 // no catch here ... without an task creator service we can't open ANY document window within the office.
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 116 unchanged lines hidden (view full) ---

125
126 xCreator = css::uno::Reference< css::lang::XSingleServiceFactory >(
127 xSMGR->createInstance(sCreator), css::uno::UNO_QUERY_THROW);
128 }
129 catch(const css::uno::Exception&)
130 {}
131
132 // no catch here ... without an task creator service we can't open ANY document window within the office.
133 // Thats IMHO not a good idea. Then we should accept the stacktrace showing us the real problem.
133 // That's IMHO not a good idea. Then we should accept the stacktrace showing us the real problem.
134 // BTW: The used fallback creator service (IMPLEMENTATIONNAME_FWK_TASKCREATOR) is implemented in the same
135 // library then these class here ... Why we should not be able to create it ?
136 if ( ! xCreator.is())
137 xCreator = css::uno::Reference< css::lang::XSingleServiceFactory >(
138 xSMGR->createInstance(IMPLEMENTATIONNAME_FWK_TASKCREATOR), css::uno::UNO_QUERY_THROW);
139
140 css::uno::Sequence< css::uno::Any > lArgs(5);
141 css::beans::NamedValue aArg ;

--- 26 unchanged lines hidden ---
134 // BTW: The used fallback creator service (IMPLEMENTATIONNAME_FWK_TASKCREATOR) is implemented in the same
135 // library then these class here ... Why we should not be able to create it ?
136 if ( ! xCreator.is())
137 xCreator = css::uno::Reference< css::lang::XSingleServiceFactory >(
138 xSMGR->createInstance(IMPLEMENTATIONNAME_FWK_TASKCREATOR), css::uno::UNO_QUERY_THROW);
139
140 css::uno::Sequence< css::uno::Any > lArgs(5);
141 css::beans::NamedValue aArg ;

--- 26 unchanged lines hidden ---