insfnote.cxx (efeef26f) insfnote.cxx (69a74367)
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

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

74 rSh.Right(CRSR_SKIP_CHARS, sal_True, 1, sal_False );
75 SfxItemSet aSet( rSh.GetAttrPool(), RES_CHRATR_FONT, RES_CHRATR_FONT );
76 rSh.GetCurAttr( aSet );
77 SvxFontItem &rFont = (SvxFontItem &) aSet.Get( RES_CHRATR_FONT );
78 SvxFontItem aFont( rFont.GetFamily(), aFontName,
79 rFont.GetStyleName(), rFont.GetPitch(),
80 eCharSet, RES_CHRATR_FONT );
81 aSet.Put( aFont );
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

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

74 rSh.Right(CRSR_SKIP_CHARS, sal_True, 1, sal_False );
75 SfxItemSet aSet( rSh.GetAttrPool(), RES_CHRATR_FONT, RES_CHRATR_FONT );
76 rSh.GetCurAttr( aSet );
77 SvxFontItem &rFont = (SvxFontItem &) aSet.Get( RES_CHRATR_FONT );
78 SvxFontItem aFont( rFont.GetFamily(), aFontName,
79 rFont.GetStyleName(), rFont.GetPitch(),
80 eCharSet, RES_CHRATR_FONT );
81 aSet.Put( aFont );
82 rSh.SetAttr( aSet, nsSetAttrMode::SETATTR_DONTEXPAND );
82 rSh.SetAttrSet( aSet, nsSetAttrMode::SETATTR_DONTEXPAND );
83 rSh.ResetSelect(0, sal_False);
84 rSh.Left(CRSR_SKIP_CHARS, sal_False, 1, sal_False );
85 }
86 rSh.EndUndo( UNDO_END );
87 rSh.EndAction();
88 }
89 else
90 {

--- 263 unchanged lines hidden ---
83 rSh.ResetSelect(0, sal_False);
84 rSh.Left(CRSR_SKIP_CHARS, sal_False, 1, sal_False );
85 }
86 rSh.EndUndo( UNDO_END );
87 rSh.EndAction();
88 }
89 else
90 {

--- 263 unchanged lines hidden ---