SwPanelFactory.cxx (ff0525f2) SwPanelFactory.cxx (5cd5f659)
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

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

110 if (pBindings == NULL)
111 throw RuntimeException(
112 A2S("PanelFactory::createUIElement called without SfxBindings"),
113 NULL);
114
115#define DoesResourceEndWith(s) rsResourceURL.endsWithAsciiL(s,strlen(s))
116 if (DoesResourceEndWith("/PagePropertyPanel"))
117 {
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

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

110 if (pBindings == NULL)
111 throw RuntimeException(
112 A2S("PanelFactory::createUIElement called without SfxBindings"),
113 NULL);
114
115#define DoesResourceEndWith(s) rsResourceURL.endsWithAsciiL(s,strlen(s))
116 if (DoesResourceEndWith("/PagePropertyPanel"))
117 {
118 PagePropertyPanel* pPanel = PagePropertyPanel::Create( pParentWindow, xFrame, pBindings );
118 PagePropertyPanel* pPanel = PagePropertyPanel::Create( pParentWindow, pBindings );
119 xElement = sfx2::sidebar::SidebarPanelBase::Create(
120 rsResourceURL,
121 xFrame,
122 pPanel,
123 ::boost::bind(&PagePropertyPanel::ShowPageStyleFormatDialog, pPanel),
124 ui::LayoutSize(-1,-1,-1));
125 }
126#undef DoesResourceEndWith
127
128 return xElement;
129}
130
131} } // end of namespace sw::sidebar
132
133// eof
119 xElement = sfx2::sidebar::SidebarPanelBase::Create(
120 rsResourceURL,
121 xFrame,
122 pPanel,
123 ::boost::bind(&PagePropertyPanel::ShowPageStyleFormatDialog, pPanel),
124 ui::LayoutSize(-1,-1,-1));
125 }
126#undef DoesResourceEndWith
127
128 return xElement;
129}
130
131} } // end of namespace sw::sidebar
132
133// eof